NetBSD/usr.bin/file/Makefile

37 lines
783 B
Makefile
Raw Normal View History

2000-05-15 02:53:37 +04:00
# $NetBSD: Makefile,v 1.24 2000/05/14 22:53:37 christos Exp $
.include <bsd.own.mk>
MFILESDIR= /usr/share/misc
2000-05-15 02:53:37 +04:00
MFILES= magic magic.mime
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 \
1997-01-28 03:49:36 +03:00
print.c compress.c readelf.c internat.c
1999-11-01 20:39:26 +03:00
CPPFLAGS+= -DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR}
1998-09-20 19:36:46 +04:00
CPPFLAGS+= -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
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)
.else
magic:
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>