minix/external/bsd/file/bin/Makefile

37 lines
635 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 2013/03/23 16:15:57 christos Exp $
2012-03-31 20:24:03 +02:00
.include <bsd.own.mk>
.include <bsd.sys.mk>
.include "../Makefile.inc"
.if ${MKSHARE} != "no"
FILESDIR= ${MFILESDIR}
FILES= ${MFILES}
.endif
PROG= file
LDADD+= -lmagic -lz
2012-03-31 20:24:03 +02:00
DPADD+= ${LIBMAGIC} ${LIBZ}
MAN= file.1 magic.5
CLEANFILES+= magic.mgc
.if ${MKSHARE} != "no"
realall: file magic.mgc
.endif
LIBMAGIC!= cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
CPPFLAGS+=-I${LIBMAGIC}
2012-03-31 20:24:03 +02:00
.if ${MKSHARE} != "no"
2012-05-02 13:23:57 +02:00
magic.mgc: ${TOOL_MKMAGIC}
2012-03-31 20:24:03 +02:00
${_MKTARGET_CREATE}
2012-05-02 13:23:57 +02:00
${TOOL_MKMAGIC} -C -m ${DIST}/magic/magdir
2012-03-31 20:24:03 +02:00
@mv magdir.mgc ${.TARGET}
.else
magic.mgc:
.endif
.include <bsd.prog.mk>