diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 09c9034..0000000 --- a/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -CC=gcc -CFLAGS=-pedantic -Wall -O2 -programs=afserver afclient -security=server.rsa cacert.pem -serdepends=afserver.c network.o file.o stats.o buflist.o -clidepends=afclient.c network.o stats.o buflist.o modules.o - -all: compi $(programs) ok1 secure - -afserver: $(serdepends) - $(CC) $(CFLAGS) -lssl -lz $(serdepends) -o afserver - -afclient: $(clidepends) - $(CC) $(CFLAGS) -rdynamic -lssl -lz -ldl $(clidepends) -o afclient - -%.o: %.c %.h - $(CC) $(CFLAGS) -c $*.c - -exmodule: exmodule.c - $(CC) -fPIC $(CFLAGS) -c $@.c - $(CC) $(CFLAGS) -shared -o $@ $@.o - -secure: crea $(security) ok2 - -server.rsa: - @openssl genrsa -rand Makefile -out server.rsa 2048 - -client.rsa: - @openssl genrsa -rand server.rsa -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) exmodule |