aboutsummaryrefslogtreecommitdiff
path: root/utils/print_roa/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/print_roa/Makefile')
-rw-r--r--utils/print_roa/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/print_roa/Makefile b/utils/print_roa/Makefile
new file mode 100644
index 00000000..6f1e71a6
--- /dev/null
+++ b/utils/print_roa/Makefile
@@ -0,0 +1,27 @@
+# $Id$
+
+OPENSSL_DIR = ../../openssl/openssl
+
+CFLAGS = -g -I${OPENSSL_DIR}/include
+
+# -H -Wl,-t
+
+NAME = print_roa
+
+BIN = ${NAME}
+OBJ = ${NAME}.o
+LIB = ${OPENSSL_DIR}/libcrypto.a
+
+all: ${BIN}
+
+clean:
+ rm -f ${BIN} ${OBJ}
+
+${BIN}: ${OBJ} ${LIB} Makefile
+ ${CC} -g -o $@ ${OBJ} ${LIB}
+
+ROA_DIR = ../../rpkid/testbed.dir/publication
+
+test: all
+ -date -u +'now: %Y%m%d%H%M%SZ'
+ if test -d ${ROA_DIR}; then find ${ROA_DIR} -type f -name '*.roa' -print -exec ./${BIN} {} \; ; else :; fi