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
21 test_strip_components.c \
25 # Build the test program
36 DPADD=${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
37 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
39 LDADD= -larchive -lz -lbz2
40 CFLAGS+= -static -g -O2 -Wall
42 CFLAGS+= -I${TAR_SRCDIR}
44 # Uncomment to link against dmalloc
45 #LDADD+= -L/usr/local/lib -ldmalloc
46 #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
49 check test: bsdtar_test
50 ./bsdtar_test -p ${.OBJDIR}/../bsdtar -r ${.CURDIR}
52 list.h: ${TESTS} Makefile
53 (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h
61 rm -f archive.h ../archive.h
62 -chmod -R +w /tmp/bsdtar_test.*
63 rm -rf /tmp/bsdtar_test.*
65 .include <bsd.prog.mk>