aboutsummaryrefslogtreecommitdiffstats
path: root/tpm-util/duplicate/sampleMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'tpm-util/duplicate/sampleMakefile')
-rw-r--r--tpm-util/duplicate/sampleMakefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/tpm-util/duplicate/sampleMakefile b/tpm-util/duplicate/sampleMakefile
index d3745d8..f54ee2b 100644
--- a/tpm-util/duplicate/sampleMakefile
+++ b/tpm-util/duplicate/sampleMakefile
@@ -6,8 +6,8 @@ AR = ar
LDDFLAGS += -fPIC
ARFLAGS = -rc
-TSS_DIR?=/tpm2-tss
-OPENSSL_DIR?=/usr/local/bin/openssl
+TSS_DIR?=/tpm2-tss2
+OPENSSL_DIR?=/usr/local/ssl
OUTPUT=ossl_tpm_duplicate
@@ -18,10 +18,9 @@ OBJS= util.o \
main.o
-CFLAGS += -g -fPIC -I./include -I${TSS_DIR}/include/ -I$(TSS_DIR)/sysapi/include #-I${OPENSSL_DIR}/include/
+CFLAGS += -g -fPIC -I./include -I${TSS_DIR}/include -I$(TSS_DIR)/sysapi/include -I${OPENSSL_DIR}/include
-
-LDFLAGS += -ldl -L/usr/local/lib/ -lsapi -ltcti-device -ltcti-tabrmd
+LDFLAGS += -ldl -L/usr/local/lib -L${OPENSSL_DIR}/lib -ltss2-tcti-tabrmd -ltss2-mu
LIBS = -lpthread -lcrypto -lssl