From ed2ee11fec4dbc6c015a829656c15d7c7ecdc799 Mon Sep 17 00:00:00 2001 From: Blake Ramsdell Date: Sun, 23 Sep 2007 02:42:02 -0700 Subject: [PATCH] Added big boy Makefile and updated README accordingly. --- printcert/Makefile | 13 +++++++++++++ printcert/README.txt | 14 ++++++++------ printcert/bldmac | 5 ----- 3 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 printcert/Makefile delete mode 100755 printcert/bldmac diff --git a/printcert/Makefile b/printcert/Makefile new file mode 100644 index 0000000..573adb2 --- /dev/null +++ b/printcert/Makefile @@ -0,0 +1,13 @@ +IARG=-I$(PATH_TO_A2C)/runtime/C +A2C_LIB=$(PATH_TO_A2C)/runtime/C/A2C_Runtime.lib +CFLAGS=$(IARG) + +all: check + +printcert: printcert.c util.c rfc3280.c $(A2C_LIB) + +check: printcert + cd test && ./runtests && cd .. + +clean: + rm -f printcert diff --git a/printcert/README.txt b/printcert/README.txt index d88a523..3f62cf6 100644 --- a/printcert/README.txt +++ b/printcert/README.txt @@ -6,16 +6,18 @@ email addresses in a certificate. Specifically, it prints out: * Any email address found in an rfc822Name element in a subjectAltName extension. -To build it, I use the "bldmac" script on my Mac. I imagine that this will -work for any gcc environment. Windows people, well, sorry. I'd certainly take -any contribution of a DSP / DSW file if you'd like to provide one. +To build it, there is a Makefile. I imagine that this will work for any gcc +environment. Non-Cygwin Windows people, well, sorry. I'd certainly take any +contribution of a DSP / DSW file if you'd like to provide one. You will need to have built the A2C library, and $PATH_TO_A2C needs to be set. -When you've gotten it built, you can run the unit tests by changing to the -test directory and running "runtests" +When you've gotten it built, you can run the unit tests by making the "all" +or "check" target. -~/Source/OpenSource/bcr-a2csamples/printcert/test$ ./runtests +~/Source/OpenSource/bcr-a2csamples/printcert$ make all +cc -I/Users/blake/Source/OpenSource/a2c/runtime/C printcert.c util.c rfc3280.c /Users/blake/Source/OpenSource/a2c/runtime/C/A2C_Runtime.lib -o printcert +cd test && ./runtests && cd .. +PASS AliceDSSSignByCarlNoInherit +PASS WildID diff --git a/printcert/bldmac b/printcert/bldmac deleted file mode 100755 index 0a15386..0000000 --- a/printcert/bldmac +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -IARG=-I$PATH_TO_A2C/runtime/C -A2C_LIB=$PATH_TO_A2C/runtime/C/A2C_Runtime.lib - -gcc -o printcert $IARG printcert.c rfc3280.c util.c $A2C_LIB -- 2.11.4.GIT