Makefile 587 B

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