aboutsummaryrefslogtreecommitdiff
path: root/utils/hashdir/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hashdir/Makefile')
-rw-r--r--utils/hashdir/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/hashdir/Makefile b/utils/hashdir/Makefile
new file mode 100644
index 00000000..2031f136
--- /dev/null
+++ b/utils/hashdir/Makefile
@@ -0,0 +1,28 @@
+# $Id$
+
+OPENSSL_DIR = ../../openssl/openssl
+
+CFLAGS = -g -I${OPENSSL_DIR}/include
+
+# -H -Wl,-t
+
+BIN = hashdir
+OBJ = hashdir.o
+LIB = ${OPENSSL_DIR}/libcrypto.a
+
+all: ${BIN}
+
+clean::
+ rm -f ${BIN} ${OBJ}
+
+${BIN}: ${OBJ} ${LIB} Makefile
+ ${CC} -g -o $@ ${OBJ} ${LIB}
+
+INPUT = ../../rcynic/rcynic-data/authenticated
+OUTPUT = test.out
+
+test: ${BIN}
+ if test -d ${INPUT}; then rm -rf ${OUTPUT} && mkdir ${OUTPUT} && ./hashdir ${INPUT} ${OUTPUT}; else :; fi
+
+clean::
+ rm -rf ${OUTPUT}