Browse Source

Fix Makefile to look for libZT in the right place

Ian Goldberg 2 years ago
parent
commit
cc9a1c9633
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -11,7 +11,7 @@ toyclient: toyclient.o pirclient.o
 ztlsoramserver: ZT_LSORAMserver.o pirserver.o
 	$(MAKE) -C ZeroTrace/
 	cp ZeroTrace/Sample_App/ZT.hpp .
-	$(CXX) -std=c++11 ZT_LSORAMserver.cc pirserver.cc utils.cc -Wall -L=$(CURDIR) -lZT -lcrypto -Wl,--rpath=$(CURDIR) -o $@
+	$(CXX) -std=c++11 ZT_LSORAMserver.cc pirserver.cc utils.cc -Wall -L=$(CURDIR)/ZeroTrace -lZT -lcrypto -Wl,--rpath=$(CURDIR)/ZeroTrace -o $@
 
 ztlsoramclient: ZT_LSORAMclient.o pirclient.o utils.o
 	$(CXX) -Wall -o  $@ $^ -lcrypto
@@ -19,7 +19,7 @@ ztlsoramclient: ZT_LSORAMclient.o pirclient.o utils.o
 ztoramserver: ZT_ORAMserver.o pirserver.o
 	$(MAKE) -C ZeroTrace/
 	cp ZeroTrace/Sample_App/ZT.hpp .
-	$(CXX) -std=c++11 ZT_ORAMserver.cc pirserver.cc utils.cc -Wall -L=$(CURDIR) -lZT -lcrypto -Wl,--rpath=$(CURDIR) -o $@
+	$(CXX) -std=c++11 ZT_ORAMserver.cc pirserver.cc utils.cc -Wall -L=$(CURDIR)/ZeroTrace -lZT -lcrypto -Wl,--rpath=$(CURDIR)/ZeroTrace -o $@
 
 ztoramclient: ZT_LSORAMclient.o pirclient.o utils.o
 	$(CXX) -Wall -o  $@ $^ -lcrypto