minix/external/bsd/file/lib/Makefile
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

44 lines
989 B
Makefile

# $NetBSD: Makefile,v 1.4 2013/08/13 19:29:45 drochner Exp $
#
USE_FORT?= yes # data driven bugs?
.include <bsd.own.mk>
.include "../Makefile.inc"
LIB= magic
LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
CPPFLAGS+=-I.
.if ${MACHINE_ARCH} == "i386"
# Set lint to exit on warnings
# XXX: Soon
#LINTFLAGS+= -w
.endif
SRCS= magic.c apprentice.c softmagic.c ascmagic.c compress.c \
is_tar.c readelf.c print.c fsmagic.c apptype.c funcs.c \
cdf.c readcdf.c cdf_time.c encoding.c
MAN= libmagic.3
MLINKS+= libmagic.3 magic_open.3 \
libmagic.3 magic_close.3 \
libmagic.3 magic_error.3 \
libmagic.3 magic_file.3 \
libmagic.3 magic_buffer.3 \
libmagic.3 magic_setflags.3 \
libmagic.3 magic_check.3 \
libmagic.3 magic_compile.3 \
libmagic.3 magic_load.3
INCS= magic.h
INCSDIR= /usr/include
COPTS.softmagic.c = -Wno-format-nonliteral
magic.c: magic.h
magic.h: magic.h.in
${TOOL_SED} -e "s/X.YY/514/" < ${.ALLSRC} > ${.TARGET}
CLEANFILES+= magic.h
.include <bsd.lib.mk>