NetBSD/usr.bin/file/Makefile

39 lines
846 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2001/03/27 08:45:02 pooka 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
1999-11-01 20:39:26 +03:00
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+= magic magic.mgc
2000-01-23 21:00:38 +03:00
realall: file magic
MAGDIRF:sh= echo $(.CURDIR)/magdir/[0-9a-z]*
1998-09-20 19:27:15 +04:00
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)
$(.OBJDIR)/$(PROG) -C -m $(.TARGET)
.else
magic:
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>