summaryrefslogtreecommitdiffstats
path: root/tpm-util/import/sampleMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'tpm-util/import/sampleMakefile')
-rw-r--r--tpm-util/import/sampleMakefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/tpm-util/import/sampleMakefile b/tpm-util/import/sampleMakefile
new file mode 100644
index 0000000..55c180a
--- /dev/null
+++ b/tpm-util/import/sampleMakefile
@@ -0,0 +1,38 @@
+
+CC = gcc
+#CC = g++
+LD = ld
+AR = ar
+LDDFLAGS += -fPIC
+ARFLAGS = -rc
+
+TSS_DIR?=/home/pramod/tpm2-tss
+
+OUTPUT=ossl_tpm_import
+
+OBJS= util.o \
+ tpm_wrapper.o \
+ main.o
+
+
+CFLAGS += -g -fPIC -I./include -I${TSS_DIR}/include/ -I$(TSS_DIR)/sysapi/include
+
+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)
+
+.PHONY: all
+all: $(OUTPUT)
+
+install:
+ @set -e; for i in $(OUTPUT); do mv $$i ../../bin/$$i ; done
+
+clean:
+ rm -f *.o $(OUTPUT) *.so