aboutsummaryrefslogtreecommitdiff
path: root/openssl/tests/Makefile.in
blob: 92cbb4bb70d8c38316ac52524ada9db504a6903e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id$

NAME = resource-set-test

BIN = ${NAME}
SRC = ${NAME}.c
OBJ = ${NAME}.o

CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

abs_top_srcdir	 = @abs_top_srcdir@
abs_top_builddir = @abs_top_builddir@

OPENSSL	= ${abs_top_builddir}/openssl/openssl/apps/openssl

all: ${BIN}

clean:
	rm -f ${BIN} ${OBJ}

${BIN}: ${SRC}
	${CC} ${CFLAGS} -o $@ ${SRC} ${LDFLAGS} ${LIBS}

# This test needs more work

test: ${BIN} test.cer
	./${BIN} -v -a AS:17 -i IPv4:10.0.0.44 -d test.cer

test.cer: test.conf
	${OPENSSL} req -new -x509 -config test.conf -keyout test.key -out test.cer -outform DER

distclean: clean
	rm -f test.key test.cer

install deinstall uninstall:
	@true