3 # Where to find the tar sources (for the internal unit tests)
4 TAR_SRCDIR=${.CURDIR}/..
7 # Some tar sources are pulled in for white-box tests
22 test_strip_components.c \
26 # Build the test program
37 DPADD=${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
38 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
40 LDADD= -larchive -lz -lbz2
41 CFLAGS+= -static -g -O2 -Wall
43 CFLAGS+= -I${TAR_SRCDIR}
45 # Uncomment to link against dmalloc
46 #LDADD+= -L/usr/local/lib -ldmalloc
47 #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
50 check test: bsdtar_test
51 ./bsdtar_test -p ${.OBJDIR}/../bsdtar -r ${.CURDIR}
53 list.h: ${TESTS} Makefile
54 (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h
62 rm -f archive.h ../archive.h
63 -chmod -R +w /tmp/bsdtar_test.*
64 rm -rf /tmp/bsdtar_test.*
66 .include <bsd.prog.mk>