NetBSD/lib/libmagic/Makefile

43 lines
987 B
Makefile
Raw Normal View History

2007-05-28 16:06:17 +04:00
# $NetBSD: Makefile,v 1.6 2007/05/28 12:06:20 tls Exp $
2003-03-26 01:43:09 +03:00
#
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # data driven bugs?
2003-03-26 01:43:09 +03:00
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/dist/file
.PATH: ${DIST}/src ${DIST}/doc
LIB= magic
2007-05-28 16:06:17 +04:00
LIBDPLIBS+= z ${.CURDIR}/../libz
2003-03-26 01:43:09 +03:00
.if ${MACHINE_ARCH} == "i386"
# Set lint to exit on warnings
# XXX: Soon
#LINTFLAGS+= -w
.endif
2003-03-26 01:43:09 +03:00
SRCS= magic.c apprentice.c softmagic.c ascmagic.c compress.c \
is_tar.c readelf.c print.c fsmagic.c apptype.c funcs.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
2003-03-26 01:43:09 +03:00
INCS= magic.h
INCSDIR= /usr/include
MFILESDIR?= /usr/share/misc
MAGIC?= ${MFILESDIR}/magic
2003-03-26 01:43:09 +03:00
CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \
-DELFCORE
CPPFLAGS+= -I${.CURDIR} -I${DIST}/src
.include <bsd.lib.mk>