File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / structs / test / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:25:53 2012 UTC (12 years, 10 months ago) by misho
Branches: libpdel, MAIN
CVS tags: v0_5_3, HEAD
libpdel

# $Id: Makefile,v 1.1.1.1 2012/02/21 23:25:53 misho Exp $

PROG=		structs_test
SRCS=		main.c
NOMAN=

CFLAGS+=	-pthread
CFLAGS+=	-I${PREFIX}/include

# Libraries

LDADD+=		-L${PREFIX}/lib -lpdel
DPADD+=		${PREFIX}/lib/libpdel.a

LDADD+=		-L${PREFIX}/lib -lexpat
DPADD+=		${PREFIX}/lib/libexpat.a

LDADD+=		-lcrypto
DPADD+=		${LIBCRYPTO}

LDADD+=		-lpcap
DPADD+=		${LIBPCAP}

LDADD+=		-lssl
DPADD+=		${LIBSSL}

LDADD+=		-lnetgraph
DPADD+=		${LIBNETGRAPH}

LDADD+=		-lradius
DPADD+=		${LIBRADIUS}

# test target
test:
	./structs_test -ncx < structs_test.xml > structs_test.nrm
	./structs_test -ecx < structs_test.xml > structs_test.bin
	./structs_test -dx < structs_test.bin | diff -u structs_test.nrm -
	./structs_test -tcx < structs_test.xml > structs_test.xmlrpc
	./structs_test -Tcx < structs_test.xmlrpc | diff -u structs_test.nrm -
	./structs_test -c < structs_test.xml

CLEANFILES+=	structs_test.bin structs_test.nrm structs_test.xmlrpc

.include "${.CURDIR}/../../Makefile.inc"
.include <bsd.prog.mk>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>