Makefile 727 B

12345678910111213141516171819202122232425
  1. CFLAGS=-g -ggdb -Wall -std=gnu99
  2. TARGETS=slitheen-proxy
  3. all: $(TARGETS)
  4. slitheen-proxy.o flow.o rserv.o ptwist168.o crypto.o relay.o cryptothread.o util.o:: ptwist.h rserv.h flow.h slitheen.h crypto.h relay.h cryptothread.h util.h
  5. rserv: rserv.o ptwist168.o
  6. gcc -g -ggdb -o $@ $^ -lssl -lcrypto
  7. slitheen-proxy: slitheen-proxy.o flow.o rserv.o ptwist168.o crypto.o relay.o cryptothread.o util.o relay.h crypto.h ptwist.h rserv.h flow.h slitheen.h cryptothread.h
  8. gcc -g -ggdb -o $@ $^ -I/home/slitheen/Documents/include/openssl libssl.a libcrypto.a -lpcap -lpthread -ldl
  9. clean:
  10. -rm *.o
  11. veryclean: clean
  12. -rm $(TARGETS)
  13. #DEPS=ptwist.h rserv.h flow.h slitheen.h
  14. #
  15. #%.o: %.c $(DEPS)
  16. # gcc -g -Wall -std=c99 -c -o $@ $<