diff options
author | Rob Austein <sra@hactrn.net> | 2015-07-01 16:30:51 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-07-01 16:30:51 -0400 |
commit | c45562762aab7e874eac71792f9eebb5185ee47d (patch) | |
tree | 99c2943914bc095ee1a6ba4b83d8fc0c98fd8f61 /GNUmakefile | |
parent | 4f7d9f0bcc0de535083bdc240f1f5c1037955990 (diff) |
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.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 8 insertions, 2 deletions
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] |