Home | History | Annotate | Line # | Download | only in bin
Makefile revision 1.2
      1  1.2  christos #	$NetBSD: Makefile,v 1.2 2013/03/23 16:15:57 christos Exp $
      2  1.1  christos 
      3  1.1  christos .include <bsd.own.mk>
      4  1.1  christos .include <bsd.sys.mk>
      5  1.1  christos 
      6  1.1  christos .include "../Makefile.inc"
      7  1.1  christos 
      8  1.1  christos .if ${MKSHARE} != "no"
      9  1.1  christos FILESDIR=	${MFILESDIR}
     10  1.1  christos FILES=		${MFILES}
     11  1.1  christos .endif
     12  1.1  christos 
     13  1.1  christos PROG=		file
     14  1.1  christos LDADD+=		-lmagic -lz
     15  1.1  christos DPADD+=		${LIBMAGIC} ${LIBZ}
     16  1.1  christos MAN=		file.1 magic.5
     17  1.1  christos 
     18  1.1  christos CLEANFILES+=	magic.mgc
     19  1.1  christos .if ${MKSHARE} != "no"
     20  1.1  christos realall:	file magic.mgc
     21  1.1  christos .endif
     22  1.1  christos 
     23  1.2  christos LIBMAGIC!= cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
     24  1.2  christos CPPFLAGS+=-I${LIBMAGIC}
     25  1.2  christos 
     26  1.1  christos .if ${MKSHARE} != "no"
     27  1.1  christos magic.mgc: ${TOOL_MKMAGIC}
     28  1.1  christos 	${_MKTARGET_CREATE}
     29  1.1  christos 	${TOOL_MKMAGIC} -C -m ${DIST}/magic/magdir
     30  1.1  christos 	@mv magdir.mgc ${.TARGET}
     31  1.1  christos 
     32  1.1  christos .else
     33  1.1  christos magic.mgc:
     34  1.1  christos .endif
     35  1.1  christos 
     36  1.1  christos .include <bsd.prog.mk>
     37