aboutsummaryrefslogtreecommitdiff
path: root/utils/find_roa
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-12-29 00:33:44 +0000
committerRob Austein <sra@hactrn.net>2010-12-29 00:33:44 +0000
commit6b34f4c5976637fbcd3652f499ece7daff24dadf (patch)
treeef81d0980bd79681f044e62a57b2e11ef38000e4 /utils/find_roa
parent73e5d62ba08c2eda82be9d5e5ebc6a817850e9cc (diff)
Autoconf now knows how to build rcynic and utils against either our
private OpenSSL or system OpenSSL. Not (yet) hacked for POW and pywrap, nor tested (yet) on any other platform. Mechanism we're using to find our private OpenSSL directory now is kind of icky, may need to switch to some kind of double indirection scheme using AC_SUBST_FILE to hide the nasty bits. svn path=/configure; revision=3580
Diffstat (limited to 'utils/find_roa')
-rw-r--r--utils/find_roa/Makefile.in21
1 files changed, 10 insertions, 11 deletions
diff --git a/utils/find_roa/Makefile.in b/utils/find_roa/Makefile.in
index 7d22c936..559d1370 100644
--- a/utils/find_roa/Makefile.in
+++ b/utils/find_roa/Makefile.in
@@ -1,26 +1,25 @@
# $Id$
-OPENSSL_DIR = ../../openssl/openssl
-
-CFLAGS = -g -I${OPENSSL_DIR}/include -Wall
-
-# -H -Wl,-t
-
NAME = find_roa
BIN = ${NAME}
+SRC = ${NAME}.c
OBJ = ${NAME}.o
-LIB = ${OPENSSL_DIR}/libcrypto.a
+
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
all: ${BIN}
clean:
- rm -rf ${BIN} ${OBJ} hashed-pem-dir
+ rm -f ${BIN} ${OBJ}
+
+${BIN}: ${SRC}
+ ${CC} ${CFLAGS} -o $@ ${SRC} ${LDFLAGS} -lcrypto ${LIBS}
-${BIN}: ${OBJ} ${LIB} Makefile
- ${CC} -g -o $@ ${OBJ} ${LIB}
-TEST_ARGS = ../../rcynic/rcynic-data/authenticated 10.3.0.44 10.2.0.6 10.0.0.0/24
+TEST_ARGS = @top_srcdir@/rcynic/rcynic-data/authenticated 10.3.0.44 10.2.0.6 10.0.0.0/24
test: ${BIN}
# ./${BIN} ${TEST_ARGS}