aboutsummaryrefslogtreecommitdiff
path: root/openssl/tests/Makefile.in
blob: 7dbfcf9f9265959fe92352ab3e1913a7dc090abc (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
39
# $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 -rf ${BIN} ${OBJ} ${BIN}.dSYM

${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
	rm -rf Makefile

install deinstall uninstall:
	@true