Makefile 648 B

12345678910111213141516171819202122232425
  1. CFLAGS=-g -Wall -std=gnu99
  2. TARGETS=slitheen-proxy
  3. all: $(TARGETS)
  4. slitheen-proxy.o flow.o rserv.o ptwist168.o util.o crypto.o relay.o:: ptwist.h rserv.h flow.h slitheen.h util.h crypto.h relay.h
  5. rserv: rserv.o ptwist168.o
  6. gcc -g -o $@ $^ -lssl -lcrypto
  7. slitheen-proxy: slitheen-proxy.o flow.o rserv.o ptwist168.o crypto.o relay.o relay.h crypto.h ptwist.h rserv.h flow.h slitheen.h
  8. gcc -g -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 util.h
  14. #
  15. #%.o: %.c $(DEPS)
  16. # gcc -g -Wall -std=c99 -c -o $@ $<