Deleted Added
full compact
Makefile (201248) Makefile (204596)
1# $FreeBSD: head/lib/libarchive/test/Makefile 201248 2009-12-30 06:12:03Z kientzle $
1# $FreeBSD: head/lib/libarchive/test/Makefile 204596 2010-03-02 18:44:08Z uqs $
2
3# Where to find the libarchive sources
4LA_SRCDIR=${.CURDIR}/..
5.PATH: ${LA_SRCDIR}
6
7# Get a list of all libarchive source files
8LA_SRCS!=make -f ${LA_SRCDIR}/Makefile -V SRCS
9

--- 122 unchanged lines hidden (view full) ---

132
133# Uncomment to build and test lzma and xz support via liblzma
134#CFLAGS+= -I/usr/local/include -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
135#LDADD+= -L/usr/local/lib -llzma
136
137# Uncomment to link against dmalloc
138#LDADD+= -L/usr/local/lib -ldmalloc
139#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
2
3# Where to find the libarchive sources
4LA_SRCDIR=${.CURDIR}/..
5.PATH: ${LA_SRCDIR}
6
7# Get a list of all libarchive source files
8LA_SRCS!=make -f ${LA_SRCDIR}/Makefile -V SRCS
9

--- 122 unchanged lines hidden (view full) ---

132
133# Uncomment to build and test lzma and xz support via liblzma
134#CFLAGS+= -I/usr/local/include -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
135#LDADD+= -L/usr/local/lib -llzma
136
137# Uncomment to link against dmalloc
138#LDADD+= -L/usr/local/lib -ldmalloc
139#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
140#WARNS=6
141
142# Build libarchive_test and run it.
143check test: libarchive_test
144 ./libarchive_test -r ${.CURDIR}
145
146# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
147list.h: ${TESTS} Makefile
148 (cd ${.CURDIR}; cat test_*.c) | grep DEFINE_TEST > list.h
149
150CLEANFILES += *.out *.o *.core *~ list.h .dirstamp .depend
151CLEANDIRS += .deps .libs
152
153cleantest:
154 -chmod -R +w /tmp/libarchive_test.*
155 rm -rf /tmp/libarchive_test.*
156
157.include <bsd.prog.mk>
140
141# Build libarchive_test and run it.
142check test: libarchive_test
143 ./libarchive_test -r ${.CURDIR}
144
145# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
146list.h: ${TESTS} Makefile
147 (cd ${.CURDIR}; cat test_*.c) | grep DEFINE_TEST > list.h
148
149CLEANFILES += *.out *.o *.core *~ list.h .dirstamp .depend
150CLEANDIRS += .deps .libs
151
152cleantest:
153 -chmod -R +w /tmp/libarchive_test.*
154 rm -rf /tmp/libarchive_test.*
155
156.include <bsd.prog.mk>