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