From c45562762aab7e874eac71792f9eebb5185ee47d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 1 Jul 2015 16:30:51 -0400 Subject: Add p11util program to do things like fiddling with the BPKDF2 iteration count, setting PINs, and so forth. Factor some SQL utility code out to a separate file so we can reuse it for p11util. --- GNUmakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 10299f7..c7e69c3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,10 +48,10 @@ else CFLAGS += -DUSE_PTHREADS=0 endif -all: libpkcs11.so +all: libpkcs11.so p11util clean: - rm -rf pkcs11.o pkcs11.so libpkcs11.so* schema.h attributes.h + rm -rf pkcs11.o pkcs11.so libpkcs11.so* p11util p11util.o schema.h attributes.h distclean: clean rm -f TAGS @@ -71,6 +71,12 @@ pkcs11.so: pkcs11.o ${LIBS} libpkcs11.so: pkcs11.so objcopy -w -G 'C_*' $< $@ +p11util.o: p11util.c sql_common.h schema.h + ${CC} ${CFLAGS} -c $< + +p11util: p11util.o ${LIBS} + ${CC} ${CFLAGS} -o $@ -g $^ + tags: TAGS TAGS: *.[ch] -- cgit v1.2.3