Makefile 575 B

123456789101112131415161718192021
  1. TARGETS=client smtp
  2. all: $(TARGETS)
  3. .c.o: ptwist.h slitheen.h crypto.h
  4. gcc -g -ggdb -c $< -o $@ -I../sslout/include
  5. slitheen.o crypto.o ptwist168.o :: ptwist.h slitheen.h crypto.h
  6. client: slitheen.o ptwist168.o crypto.o crypto.h ptwist.h slitheen.h
  7. gcc -g -ggdb -o $@ $^ client.c -I../sslout/include -L../sslout/lib -lssl -lcrypto -ldl -lpthread
  8. smtp: slitheen.o ptwist168.o crypto.o crypto.h ptwist.h slitheen.h
  9. gcc -g -ggdb -o $@ $^ smtpClient.c -I../sslout/include -L../sslout/lib -lssl -lcrypto -ldl -lpthread
  10. clean:
  11. -rm *.o
  12. veryclean: clean
  13. -rm $(TARGETS)