Makefile 725 B

12345678910111213141516171819202122232425
  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. -rm enclave.signed.so libZT.so
  16. veryclean: clean
  17. -rm toyserver toyclient
  18. -rm ztlsoramserver ztlsoramclient