1 # $NetBSD: Makefile,v 1.6 2013/12/01 20:15:42 christos Exp $
4 USE_FORT?
= yes
# data driven bugs?
8 .
include "../Makefile.inc"
11 LIBDPLIBS
+= z
${NETBSDSRCDIR}/lib
/libz
14 .if
${MACHINE_ARCH} == "i386"
15 # Set lint to exit on warnings
20 SRCS
= magic.c apprentice.c softmagic.c ascmagic.c compress.c \
21 is_tar.c readelf.c
print.c fsmagic.c apptype.c funcs.c \
22 cdf.c readcdf.c cdf_time.c encoding.c
24 MLINKS
+= libmagic
.3 magic_open
.3 \
25 libmagic
.3 magic_close
.3 \
26 libmagic
.3 magic_error
.3 \
27 libmagic
.3 magic_file
.3 \
28 libmagic
.3 magic_buffer
.3 \
29 libmagic
.3 magic_setflags
.3 \
30 libmagic
.3 magic_check
.3 \
31 libmagic
.3 magic_compile
.3 \
32 libmagic
.3 magic_load
.3
36 COPTS.softmagic.c
= -Wno-format-nonliteral
40 ${TOOL_SED} -e
"s/X.YY/${VERSION:S/.//g}/" < ${.ALLSRC
} > ${.TARGET
}