2012-05-02 13:23:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2011/08/14 09:06:12 christos Exp $
|
2012-03-31 20:24:03 +02:00
|
|
|
#
|
|
|
|
|
2012-10-26 15:22:39 +02:00
|
|
|
USE_FORT?= yes # data driven bugs?
|
2012-03-31 20:24:03 +02:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
LIB= magic
|
|
|
|
LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2012-05-02 13:23:57 +02:00
|
|
|
COPTS.softmagic.c = -Wno-format-nonliteral
|
|
|
|
|
2012-03-31 20:24:03 +02:00
|
|
|
.include <bsd.lib.mk>
|