Remove building with NOCRYPTO option
[minix.git] / external / bsd / file / lib / Makefile
blob4292753ce2b7a5720202b16e95eb910a2b29ff3f
1 # $NetBSD: Makefile,v 1.6 2013/12/01 20:15:42 christos Exp $
4 USE_FORT?= yes # data driven bugs?
6 .include <bsd.own.mk>
8 .include "../Makefile.inc"
10 LIB= magic
11 LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
12 CPPFLAGS+=-I.
14 .if ${MACHINE_ARCH} == "i386"
15 # Set lint to exit on warnings
16 # XXX: Soon
17 #LINTFLAGS+= -w
18 .endif
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
23 MAN= libmagic.3
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
33 INCS= magic.h
34 INCSDIR= /usr/include
36 COPTS.softmagic.c = -Wno-format-nonliteral
38 magic.c: magic.h
39 magic.h: magic.h.in
40 ${TOOL_SED} -e "s/X.YY/${VERSION:S/.//g}/" < ${.ALLSRC} > ${.TARGET}
41 CLEANFILES+= magic.h
43 .include <bsd.lib.mk>