diff options
Diffstat (limited to 'tpm-util/duplicate')
-rw-r--r-- | tpm-util/duplicate/sampleMakefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tpm-util/duplicate/sampleMakefile b/tpm-util/duplicate/sampleMakefile index 5139954..d3745d8 100644 --- a/tpm-util/duplicate/sampleMakefile +++ b/tpm-util/duplicate/sampleMakefile @@ -6,7 +6,7 @@ AR = ar LDDFLAGS += -fPIC ARFLAGS = -rc -TSS_DIR?=/home/pramod/tpm2-tss +TSS_DIR?=/tpm2-tss OPENSSL_DIR?=/usr/local/bin/openssl OUTPUT=ossl_tpm_duplicate @@ -15,19 +15,19 @@ OBJS= util.o \ marshal.o \ crypto_aux.o \ tpm_duplication_aux.o \ - main.o + main.o CFLAGS += -g -fPIC -I./include -I${TSS_DIR}/include/ -I$(TSS_DIR)/sysapi/include #-I${OPENSSL_DIR}/include/ -#LDFLAGS += -L${OPENSSL_DIR}/lib -ldl -L/usr/local/lib/ -lsapi -ltcti-device -ltcti-tabrmd -LDFLAGS += -ldl -L/usr/local/lib/ -lsapi -ltcti-device -ltcti-tabrmd + +LDFLAGS += -ldl -L/usr/local/lib/ -lsapi -ltcti-device -ltcti-tabrmd LIBS = -lpthread -lcrypto -lssl %.o : %.c $(CC) -c $(CFLAGS) $< -o $@ - + $(OUTPUT): $(OBJS) $(CC) $(OBJS) $(LDFLAGS) ${LIBS} -o $(OUTPUT) @@ -39,4 +39,4 @@ install: @set -e; for i in $(OUTPUT); do mv $$i ../../bin/$$i ; done clean: - rm -f *.o $(OUTPUT) *.so + rm -f *.o $(OUTPUT) *.so |