1 1.4.4.2 martin # $NetBSD: Makefile,v 1.4.4.2 2020/04/13 08:05:33 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/cpio 9 1.4.4.2 martin 10 1.4.4.2 martin BINDIR= ${TESTSDIR} 11 1.4.4.2 martin PROGS+= h_cpio 12 1.4.4.2 martin TESTS_SH+= t_cpio 13 1.4.4.2 martin 14 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/test_utils -I${LIBARCHIVE}/cpio -I. 15 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/cpio/test -I${LIBARCHIVE}/../include 16 1.4.4.2 martin CPPFLAGS+=-I${LIBARCHIVE}/libarchive -I${LIBARCHIVE}/libarchive_fe 17 1.4.4.2 martin CPPFLAGS+=-DPLATFORM_CONFIG_H='"config_netbsd.h"' 18 1.4.4.2 martin 19 1.4.4.2 martin .PATH: ${LIBARCHIVE}/cpio/test ${LIBARCHIVE}/test_utils ${LIBARCHIVE}/cpio \ 20 1.4.4.2 martin ${LIBARCHIVE}/libarchive_fe 21 1.4.4.2 martin 22 1.4.4.2 martin DPADD+= ${LIBARCHIVE} ${LIBEXPAT} ${LIBBZ2} ${LIBLZMA} ${LIBZ} \ 23 1.4.4.2 martin ${LIBCRYPTO} ${LIBPTHREAD} 24 1.4.4.2 martin LDADD+= -larchive -lexpat -lbz2 -llzma -lz -lcrypto -lpthread 25 1.4.4.2 martin 26 1.4.4.2 martin SRCS.h_cpio= \ 27 1.4.4.2 martin test_main.c \ 28 1.4.4.2 martin test_utils.c \ 29 1.4.4.2 martin cmdline.c \ 30 1.4.4.2 martin err.c \ 31 1.4.4.2 martin test_0.c \ 32 1.4.4.2 martin test_basic.c \ 33 1.4.4.2 martin test_cmdline.c \ 34 1.4.4.2 martin test_extract_cpio_Z.c \ 35 1.4.4.2 martin test_extract_cpio_bz2.c \ 36 1.4.4.2 martin test_extract_cpio_grz.c \ 37 1.4.4.2 martin test_extract_cpio_gz.c \ 38 1.4.4.2 martin test_extract_cpio_lrz.c \ 39 1.4.4.2 martin test_extract_cpio_lz.c \ 40 1.4.4.2 martin test_extract_cpio_lz4.c \ 41 1.4.4.2 martin test_extract_cpio_lzma.c \ 42 1.4.4.2 martin test_extract_cpio_lzo.c \ 43 1.4.4.2 martin test_extract_cpio_xz.c \ 44 1.4.4.2 martin test_extract_cpio_zstd.c \ 45 1.4.4.2 martin test_format_newc.c \ 46 1.4.4.2 martin test_gcpio_compat.c \ 47 1.4.4.2 martin test_missing_file.c \ 48 1.4.4.2 martin test_option_0.c \ 49 1.4.4.2 martin test_option_B_upper.c \ 50 1.4.4.2 martin test_option_C_upper.c \ 51 1.4.4.2 martin test_option_J_upper.c \ 52 1.4.4.2 martin test_option_L_upper.c \ 53 1.4.4.2 martin test_option_Z_upper.c \ 54 1.4.4.2 martin test_option_a.c \ 55 1.4.4.2 martin test_option_b64encode.c \ 56 1.4.4.2 martin test_option_c.c \ 57 1.4.4.2 martin test_option_d.c \ 58 1.4.4.2 martin test_option_f.c \ 59 1.4.4.2 martin test_option_grzip.c \ 60 1.4.4.2 martin test_option_help.c \ 61 1.4.4.2 martin test_option_l.c \ 62 1.4.4.2 martin test_option_lrzip.c \ 63 1.4.4.2 martin test_option_lz4.c \ 64 1.4.4.2 martin test_option_lzma.c \ 65 1.4.4.2 martin test_option_lzop.c \ 66 1.4.4.2 martin test_option_m.c \ 67 1.4.4.2 martin test_option_passphrase.c \ 68 1.4.4.2 martin test_option_t.c \ 69 1.4.4.2 martin test_option_u.c \ 70 1.4.4.2 martin test_option_version.c \ 71 1.4.4.2 martin test_option_xz.c \ 72 1.4.4.2 martin test_option_y.c \ 73 1.4.4.2 martin test_option_z.c \ 74 1.4.4.2 martin test_option_zstd.c \ 75 1.4.4.2 martin test_owner_parse.c \ 76 1.4.4.2 martin test_passthrough_dotdot.c \ 77 1.4.4.2 martin test_passthrough_reverse.c 78 1.4.4.2 martin 79 1.4.4.2 martin FILESDIR= ${TESTSDIR} 80 1.4.4.2 martin FILES=\ 81 1.4.4.2 martin test_extract.cpio.Z.uu \ 82 1.4.4.2 martin test_extract.cpio.bz2.uu \ 83 1.4.4.2 martin test_extract.cpio.grz.uu \ 84 1.4.4.2 martin test_extract.cpio.gz.uu \ 85 1.4.4.2 martin test_extract.cpio.lrz.uu \ 86 1.4.4.2 martin test_extract.cpio.lz.uu \ 87 1.4.4.2 martin test_extract.cpio.lz4.uu \ 88 1.4.4.2 martin test_extract.cpio.lzma.uu \ 89 1.4.4.2 martin test_extract.cpio.lzo.uu \ 90 1.4.4.2 martin test_extract.cpio.xz.uu \ 91 1.4.4.2 martin test_extract.cpio.zst.uu \ 92 1.4.4.2 martin test_gcpio_compat_ref.bin.uu \ 93 1.4.4.2 martin test_gcpio_compat_ref.crc.uu \ 94 1.4.4.2 martin test_gcpio_compat_ref.newc.uu \ 95 1.4.4.2 martin test_gcpio_compat_ref.ustar.uu \ 96 1.4.4.2 martin test_gcpio_compat_ref_nosym.bin.uu \ 97 1.4.4.2 martin test_gcpio_compat_ref_nosym.crc.uu \ 98 1.4.4.2 martin test_gcpio_compat_ref_nosym.newc.uu \ 99 1.4.4.2 martin test_gcpio_compat_ref_nosym.ustar.uu \ 100 1.4.4.2 martin test_option_f.cpio.uu \ 101 1.4.4.2 martin test_option_m.cpio.uu \ 102 1.4.4.2 martin test_option_passphrase.zip.uu \ 103 1.4.4.2 martin test_option_t.cpio.uu \ 104 1.4.4.2 martin test_option_t.stdout.uu \ 105 1.4.4.2 martin test_option_tv.stdout.uu 106 1.4.4.2 martin 107 1.4.4.2 martin .include <bsd.test.mk> 108 1.4.4.2 martin 109 1.4.4.2 martin test_main.o test_main.d: list.h 110 1.4.4.2 martin 111 1.4.4.2 martin CLEANFILES+=list.h 112 1.4.4.2 martin 113 1.4.4.2 martin list.h: ${SRCS.h_cpio} Makefile 114 1.4.4.2 martin ${TOOL_GREP} -h '^DEFINE_TEST(' ${.ALLSRC} > ${.TARGET} 115