1 1.4.4.2 martin # $NetBSD: Makefile,v 1.4.4.2 2020/04/13 08:05:34 martin Exp $ 2 1.4.4.2 martin 3 1.4.4.2 martin NOMAN= 4 1.4.4.2 martin 5 1.4.4.2 martin .include <bsd.own.mk> 6 1.4.4.2 martin LIBARCHIVE=${NETBSDSRCDIR}/external/bsd/libarchive/dist 7 1.4.4.2 martin 8 1.4.4.2 martin TESTSDIR= ${TESTSBASE}/usr.bin/tar 9 1.4.4.2 martin 10 1.4.4.2 martin BINDIR= ${TESTSDIR} 11 1.4.4.2 martin PROGS+= h_tar 12 1.4.4.2 martin TESTS_SH+= t_tar 13 1.4.4.2 martin 14 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/test_utils -I${LIBARCHIVE}/tar -I. 15 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/tar/test -I${LIBARCHIVE}/../include 16 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/libarchive 17 1.4.4.2 martin 18 1.4.4.2 martin .PATH: ${LIBARCHIVE}/tar/test ${LIBARCHIVE}/test_utils 19 1.4.4.2 martin 20 1.4.4.2 martin DPADD+= ${LIBARCHIVE} ${LIBEXPAT} ${LIBBZ2} ${LIBLZMA} ${LIBZ} \ 21 1.4.4.2 martin ${LIBCRYPTO} ${LIBPTHREAD} 22 1.4.4.2 martin LDADD+= -larchive -lexpat -lbz2 -llzma -lz -lcrypto -lpthread 23 1.4.4.2 martin 24 1.4.4.2 martin SRCS.h_tar= \ 25 1.4.4.2 martin test_main.c \ 26 1.4.4.2 martin test_utils.c \ 27 1.4.4.2 martin test_0.c \ 28 1.4.4.2 martin test_basic.c \ 29 1.4.4.2 martin test_copy.c \ 30 1.4.4.2 martin test_empty_mtree.c \ 31 1.4.4.2 martin test_extract_tar_Z.c \ 32 1.4.4.2 martin test_extract_tar_bz2.c \ 33 1.4.4.2 martin test_extract_tar_grz.c \ 34 1.4.4.2 martin test_extract_tar_gz.c \ 35 1.4.4.2 martin test_extract_tar_lrz.c \ 36 1.4.4.2 martin test_extract_tar_lz.c \ 37 1.4.4.2 martin test_extract_tar_lz4.c \ 38 1.4.4.2 martin test_extract_tar_lzma.c \ 39 1.4.4.2 martin test_extract_tar_lzo.c \ 40 1.4.4.2 martin test_extract_tar_xz.c \ 41 1.4.4.2 martin test_extract_tar_zstd.c \ 42 1.4.4.2 martin test_format_newc.c \ 43 1.4.4.2 martin test_help.c \ 44 1.4.4.2 martin test_leading_slash.c \ 45 1.4.4.2 martin test_missing_file.c \ 46 1.4.4.2 martin test_option_C_mtree.c \ 47 1.4.4.2 martin test_option_C_upper.c \ 48 1.4.4.2 martin test_option_H_upper.c \ 49 1.4.4.2 martin test_option_L_upper.c \ 50 1.4.4.2 martin test_option_O_upper.c \ 51 1.4.4.2 martin test_option_T_upper.c \ 52 1.4.4.2 martin test_option_U_upper.c \ 53 1.4.4.2 martin test_option_X_upper.c \ 54 1.4.4.2 martin test_option_a.c \ 55 1.4.4.2 martin test_option_acls.c \ 56 1.4.4.2 martin test_option_b.c \ 57 1.4.4.2 martin test_option_b64encode.c \ 58 1.4.4.2 martin test_option_exclude.c \ 59 1.4.4.2 martin test_option_exclude_vcs.c \ 60 1.4.4.2 martin test_option_fflags.c \ 61 1.4.4.2 martin test_option_gid_gname.c \ 62 1.4.4.2 martin test_option_grzip.c \ 63 1.4.4.2 martin test_option_j.c \ 64 1.4.4.2 martin test_option_k.c \ 65 1.4.4.2 martin test_option_keep_newer_files.c \ 66 1.4.4.2 martin test_option_lrzip.c \ 67 1.4.4.2 martin test_option_lz4.c \ 68 1.4.4.2 martin test_option_lzma.c \ 69 1.4.4.2 martin test_option_lzop.c \ 70 1.4.4.2 martin test_option_n.c \ 71 1.4.4.2 martin test_option_newer_than.c \ 72 1.4.4.2 martin test_option_nodump.c \ 73 1.4.4.2 martin test_option_older_than.c \ 74 1.4.4.2 martin test_option_passphrase.c \ 75 1.4.4.2 martin test_option_q.c \ 76 1.4.4.2 martin test_option_r.c \ 77 1.4.4.2 martin test_option_s.c \ 78 1.4.4.2 martin test_option_uid_uname.c \ 79 1.4.4.2 martin test_option_uuencode.c \ 80 1.4.4.2 martin test_option_xattrs.c \ 81 1.4.4.2 martin test_option_xz.c \ 82 1.4.4.2 martin test_option_z.c \ 83 1.4.4.2 martin test_option_zstd.c \ 84 1.4.4.2 martin test_patterns.c \ 85 1.4.4.2 martin test_print_longpath.c \ 86 1.4.4.2 martin test_stdio.c \ 87 1.4.4.2 martin test_strip_components.c \ 88 1.4.4.2 martin test_symlink_dir.c \ 89 1.4.4.2 martin test_version.c \ 90 1.4.4.2 martin test_windows.c 91 1.4.4.2 martin 92 1.4.4.2 martin FILESDIR= ${TESTSDIR} 93 1.4.4.2 martin FILES=\ 94 1.4.4.2 martin test_extract.tar.Z.uu \ 95 1.4.4.2 martin test_extract.tar.bz2.uu \ 96 1.4.4.2 martin test_extract.tar.grz.uu \ 97 1.4.4.2 martin test_extract.tar.gz.uu \ 98 1.4.4.2 martin test_extract.tar.lrz.uu \ 99 1.4.4.2 martin test_extract.tar.lz.uu \ 100 1.4.4.2 martin test_extract.tar.lz4.uu \ 101 1.4.4.2 martin test_extract.tar.lzma.uu \ 102 1.4.4.2 martin test_extract.tar.lzo.uu \ 103 1.4.4.2 martin test_extract.tar.xz.uu \ 104 1.4.4.2 martin test_extract.tar.zst.uu \ 105 1.4.4.2 martin test_leading_slash.tar.uu \ 106 1.4.4.2 martin test_option_keep_newer_files.tar.Z.uu \ 107 1.4.4.2 martin test_option_passphrase.zip.uu \ 108 1.4.4.2 martin test_option_s.tar.Z.uu \ 109 1.4.4.2 martin test_patterns_2.tar.uu \ 110 1.4.4.2 martin test_patterns_3.tar.uu \ 111 1.4.4.2 martin test_patterns_4.tar.uu \ 112 1.4.4.2 martin test_print_longpath.tar.Z.uu 113 1.4.4.2 martin 114 1.4.4.2 martin .include <bsd.test.mk> 115 1.4.4.2 martin 116 1.4.4.2 martin test_main.o test_main.d: list.h 117 1.4.4.2 martin 118 1.4.4.2 martin CLEANFILES+=list.h 119 1.4.4.2 martin 120 1.4.4.2 martin list.h: ${SRCS.h_tar} Makefile 121 1.4.4.2 martin ${TOOL_GREP} -h '^DEFINE_TEST(' ${.ALLSRC} > ${.TARGET} 122