Makefile 692 B

123456789101112131415161718192021222324
  1. CXXFLAGS=-g -Wall -std=c++11
  2. all: toyserver toyclient ztlsoramserver ztlsoramclient
  3. toyserver: toyserver.o pirserver.o
  4. $(CXX) -Wall -o $@ $^
  5. toyclient: toyclient.o pirclient.o
  6. $(CXX) -Wall -o $@ $^
  7. ztlsoramserver: ZT_LSORAMserver.o pirserver.o
  8. $(MAKE) -C ZeroTrace/
  9. cp ZeroTrace/Sample_App/ZT.hpp .
  10. $(CXX) -std=c++11 ZT_LSORAMserver.cc pirserver.cc utils.cc -Wall -L=$(CURDIR) -lZT -lcrypto -Wl,--rpath=$(CURDIR) -o $@
  11. ztlsoramclient: ZT_LSORAMclient.o pirclient.o utils.o
  12. $(CXX) -Wall -o $@ $^ -lcrypto
  13. clean:
  14. -rm toyserver.o pirserver.o toyclient.o pirclient.o ZT_LSORAMserver.o ZT_LSORAMclient.o
  15. veryclean: clean
  16. -rm toyserver toyclient
  17. -rm ztlsoramserver ztlsoramclient