Makefile revision 171429
1# $FreeBSD: head/lib/libarchive/test/Makefile 171429 2007-07-13 15:12:52Z kientzle $ 2 3TESTS= \ 4 test_acl_basic.c \ 5 test_acl_pax.c \ 6 test_archive_api_feature.c \ 7 test_bad_fd.c \ 8 test_entry.c \ 9 test_read_compress_program.c \ 10 test_read_data_large.c \ 11 test_read_extract.c \ 12 test_read_format_ar.c \ 13 test_read_format_cpio_bin.c \ 14 test_read_format_cpio_bin_Z.c \ 15 test_read_format_cpio_bin_bz2.c \ 16 test_read_format_cpio_bin_gz.c \ 17 test_read_format_cpio_odc.c \ 18 test_read_format_cpio_svr4_gzip.c \ 19 test_read_format_cpio_svr4c_Z.c \ 20 test_read_format_empty.c \ 21 test_read_format_gtar_gz.c \ 22 test_read_format_gtar_sparse.c \ 23 test_read_format_iso_gz.c \ 24 test_read_format_isorr_bz2.c \ 25 test_read_format_pax_bz2.c \ 26 test_read_format_tar.c \ 27 test_read_format_tbz.c \ 28 test_read_format_tgz.c \ 29 test_read_format_tz.c \ 30 test_read_format_zip.c \ 31 test_read_large.c \ 32 test_read_position.c \ 33 test_read_truncated.c \ 34 test_tar_filenames.c \ 35 test_write_compress_program.c \ 36 test_write_disk.c \ 37 test_write_disk_perms.c \ 38 test_write_disk_secure.c \ 39 test_write_format_ar.c \ 40 test_write_format_cpio.c \ 41 test_write_format_cpio_empty.c \ 42 test_write_format_shar_empty.c \ 43 test_write_format_tar.c \ 44 test_write_format_tar_empty.c \ 45 test_write_open_memory.c 46 47SRCS= ${TESTS} \ 48 list.h \ 49 main.c \ 50 read_open_memory.c 51 52CLEANFILES+= list.h 53 54NO_MAN=yes 55 56PROG=libarchive_test 57DPADD=${LIBARCHIVE} ${LIBBZ2} ${LIBZ} 58LDADD= -larchive -lz -lbz2 59CFLAGS+= -static -g 60CFLAGS+= -I${.OBJDIR} 61 62# Uncomment to link against dmalloc 63#LDADD+= -L/usr/local/lib -ldmalloc 64#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC 65#WARNS=6 66 67test: libarchive_test 68 ./libarchive_test -k 69 70list.h: ${TESTS} Makefile 71 (cd ${.CURDIR}; cat ${TESTS}) | grep DEFINE_TEST > list.h 72 73clean: 74 rm -f *.out 75 rm -f *.o 76 rm -f *.core 77 rm -f *~ 78 rm -f list.h 79 -chmod -R +w /tmp/libarchive_test.* 80 rm -rf /tmp/libarchive_test.* 81 82.include <bsd.prog.mk> 83