summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakub Sławiński2003-12-15 21:55:27 +0100
committerJoshua Judson Rosen2014-07-17 21:14:55 +0200
commit97e4bce33f2199dd3ea3831f96e2b6d34269d5a5 (patch)
tree0e91d6ac72e6306ae64f2e2fd2d902b2a3b8cebc /Makefile
downloadapf-97e4bce33f2199dd3ea3831f96e2b6d34269d5a5.tar.gz
v0.5.2
- Added: types of realm - Added: logging to a file - Fixed: major bug in communication between server and client - Fixed: deformed packets in udp protocol forwarding 04.12.2003 (v0.5.1): - Fixed: Some data transfer problems - Added: udp protocol tunneling/forwarding - Fixed: bug in parsing the config file - Improved: making connection between server and client - Lightly modified: verbose mode (added double v mode) 23.11.2003 (v0.5): - This is the first release - There are no known major bugs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..21e5bb4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+CC=gcc
+CFLAGS=-pedantic -Wall -O2
+programs=afserver afclient
+security=server.rsa client.rsa cacert.pem
+
+all: compi $(programs) ok1 secure
+
+afserver: afserver.c network.o file.o stats.o
+ $(CC) $(CFLAGS) -lssl afserver.c network.o file.o stats.o -o afserver
+
+afclient: afclient.c network.o stats.o
+ $(CC) $(CFLAGS) -lssl afclient.c network.o stats.o -o afclient
+
+network.o: network.c network.h
+ $(CC) $(CFLAGS) -c network.c
+
+file.o: file.c file.h
+ $(CC) $(CFLAGS) -c file.c
+
+stats.o: stats.c stats.h
+ $(CC) $(CFLAGS) -c stats.c
+
+secure: crea $(security) ok2
+
+server.rsa:
+ @openssl genrsa -out server.rsa 2048
+
+client.rsa:
+ @openssl genrsa -out client.rsa 2048
+
+cacert.pem:
+ @echo -e "\n Generating certificate...\n"
+ @echo -e "pl\nWar-Maz\nOlsztyn\nSHEG\nUtils productions\njeremian\njeremian@poczta.fm" | openssl req -new -x509 -key server.rsa -out cacert.pem -days 1095 > /dev/null 2>&1
+
+compi:
+ @echo -e "\nCompiling program...\n"
+
+crea:
+ @echo -e "\nCreating necessary files...\n"
+
+ok1:
+ @echo " OK!"
+
+ok2:
+ @echo " OK!"
+
+.PHONY: clean
+
+clean:
+ rm -rf a.out *~ *.o $(programs) $(security)