Home | History | Annotate | Line # | Download | only in bin
Makefile revision 1.4
      1  1.4  christos #	$NetBSD: Makefile,v 1.4 2019/12/17 18:59:39 christos Exp $
      2  1.1  christos 
      3  1.1  christos .include <bsd.own.mk>
      4  1.1  christos 
      5  1.1  christos .include "../Makefile.inc"
      6  1.1  christos 
      7  1.1  christos .if ${MKSHARE} != "no"
      8  1.1  christos FILESDIR=	${MFILESDIR}
      9  1.1  christos FILES=		${MFILES}
     10  1.1  christos .endif
     11  1.1  christos 
     12  1.1  christos PROG=		file
     13  1.4  christos LDADD+=		-lmagic
     14  1.4  christos DPADD+=		${LIBMAGIC} 
     15  1.4  christos PROGDPLIBS	+= ${DPLIBS}
     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