summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/Makefile
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-06-26 11:58:26 +0000
committerdes <des@FreeBSD.org>2008-06-26 11:58:26 +0000
commit128419b4722dd066a3cabb3f07788f35ba9790b0 (patch)
treed0f449ca2e389c02b5fc576749f9623f3c474c96 /lib/libarchive/test/Makefile
parent3ac85717e48dd195448daba2007df75feac6879e (diff)
downloadFreeBSD-src-128419b4722dd066a3cabb3f07788f35ba9790b0.zip
FreeBSD-src-128419b4722dd066a3cabb3f07788f35ba9790b0.tar.gz
Some tests won't build at WARNS level 6 due to aliasing violations.
Add missing -I. so the tests will build when ${.OBJDIR} != ${.CURDIR}. ${.OBJDIR} does not need to be spelled out.
Diffstat (limited to 'lib/libarchive/test/Makefile')
-rw-r--r--lib/libarchive/test/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libarchive/test/Makefile b/lib/libarchive/test/Makefile
index ed4dfe8..b1d2a33 100644
--- a/lib/libarchive/test/Makefile
+++ b/lib/libarchive/test/Makefile
@@ -72,7 +72,7 @@ TESTS= \
# Build the test program using all libarchive sources + the test sources.
SRCS= ${LA_SRCS} \
${TESTS} \
- ${.OBJDIR}/list.h \
+ list.h \
main.c \
read_open_memory.c
@@ -84,19 +84,19 @@ DPADD=${LIBBZ2} ${LIBZ}
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
LDADD= -lz -lbz2
CFLAGS+= -static -g
-CFLAGS+= -I${LA_SRCDIR}
+CFLAGS+= -I${LA_SRCDIR} -I.
# Uncomment to link against dmalloc
#LDADD+= -L/usr/local/lib -ldmalloc
#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
-WARNS=6
+#WARNS=6
# Build libarchive_test and run it.
check test: libarchive_test
./libarchive_test -v -r ${.CURDIR}
# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
-${.OBJDIR}/list.h: ${TESTS} Makefile
+list.h: ${TESTS} Makefile
(cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h
CLEANFILES += *.out *.o *.core *~ list.h
OpenPOWER on IntegriCloud