NetBSD/usr.bin/file/Makefile

46 lines
1.0 KiB
Makefile
Raw Normal View History

2001-05-30 00:22:05 +04:00
# $NetBSD: Makefile,v 1.34 2001/05/29 20:22:05 kleink Exp $
.include <bsd.own.mk>
WFORMAT= 1
MFILESDIR= /usr/share/misc
MFILES= magic magic.mgc magic.mime
2000-05-15 02:53:37 +04:00
MAGIC= ${MFILESDIR}/magic
.if ${MKSHARE} != "no"
FILESDIR= ${MFILESDIR}
FILES= ${MFILES}
.endif
1993-03-21 12:45:37 +03:00
PROG= file
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
2000-09-22 20:34:59 +04:00
print.c compress.c readelf.c
CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -I${.CURDIR}
CPPFLAGS+= -DQUICK -DBUILTIN_ELF -DELFCORE
1994-12-22 15:29:38 +03:00
MAN= file.1 magic.5
1993-03-21 12:45:37 +03:00
CLEANFILES+= mkmagic magic magic.mgc
2001-05-30 00:22:05 +04:00
.if ${MKSHARE} != "no"
realall: file magic magic.mgc
2001-05-30 00:22:05 +04:00
.endif
MAGDIRF:sh= echo ${.CURDIR}/magdir/[0-9a-z]*
MAGFILES= ${.CURDIR}/Header \
${.CURDIR}/Localstuff \
${.CURDIR}/magdir/netbsd \
${MAGDIRF}
1997-03-25 00:57:01 +03:00
.if ${MKSHARE} != "no"
magic: ${MAGFILES}
cat ${MAGFILES} > ${.TARGET}
magic.mgc: mkmagic magic
${.OBJDIR}/mkmagic magic
.else
magic:
.endif
1993-03-21 12:45:37 +03:00
mkmagic: apprentice.c print.c
${HOST_LINK.c} -o mkmagic -DHAVE_CONFIG_H -DQUICK -DCOMPILE_ONLY \
-I${.CURDIR} ${.CURDIR}/apprentice.c ${.CURDIR}/print.c
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>