Return to Makefile CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / libpdel / tmpl / test |
1.1 ! misho 1: # $Id: Makefile,v 1.4 2004/06/03 21:17:30 archie Exp $ ! 2: ! 3: PROG= tmpl ! 4: SRCS+= main.c ! 5: NOMAN= ! 6: CFLAGS+= -pthread ! 7: CFLAGS+= -I${PREFIX}/include ! 8: ! 9: #CFLAGS+= -DTMPL_DEBUG=1 ! 10: ! 11: CLEANFILES+= test.out test.diff ! 12: ! 13: # Libraries ! 14: ! 15: LDADD+= -L${PREFIX}/lib -lpdel ! 16: DPADD+= ${PREFIX}/lib/libpdel.a ! 17: ! 18: LDADD+= -L${PREFIX}/lib -lexpat ! 19: DPADD+= ${PREFIX}/lib/libexpat.a ! 20: ! 21: LDADD+= -lcrypto ! 22: DPADD+= ${LIBCRYPTO} ! 23: ! 24: LDADD+= -lssl ! 25: DPADD+= ${LIBSSL} ! 26: ! 27: LDADD+= -lnetgraph ! 28: DPADD+= ${LIBNETGRAPH} ! 29: ! 30: LDADD+= -lradius ! 31: DPADD+= ${LIBRADIUS} ! 32: ! 33: # Tests ! 34: ! 35: test: ! 36: rm -f test.out ! 37: ${MAKE} test.out ! 38: ${MAKE} test-input ! 39: ! 40: test-input: ! 41: ${.CURDIR}/${PROG} test-input.in ! 42: ! 43: test.out: ${PROG} test.in ! 44: ${.CURDIR}/${PROG} -n test.in > ${.TARGET} ! 45: @if ! diff -q ${.TARGET}.sav ${.TARGET}; then \ ! 46: echo ERROR: Test output does not match saved output; \ ! 47: echo ERROR: The difference is saved in test.diff; \ ! 48: diff -u ${.TARGET}.sav ${.TARGET} > test.diff; \ ! 49: exit 1; \ ! 50: fi ! 51: ! 52: .include "${.CURDIR}/../../Makefile.inc" ! 53: .include <bsd.prog.mk>