Home | History | Annotate | Line # | Download | only in ippool
      1 #	$NetBSD: Makefile,v 1.1 2012/03/23 21:29:45 christos Exp $
      2 
      3 PROG=		ippool
      4 SRCS=		ippool_y.c ippool_l.c kmem.c ippool.c
      5 MAN=		ippool.5 ippool.8
      6 MLINKS=		ippool.5 ippool.conf.5
      7 CPPFLAGS+=	-I.
      8 
      9 DPSRCS+=	ippool_l.h ippool_y.h
     10 
     11 CLEANFILES+=	ippool_y.c ippool_y.h
     12 CLEANFILES+=	ippool_l.c ippool_l.h
     13 
     14 ippool_y.c: ippool_y.y
     15 	${_MKTARGET_CREATE}
     16 	${YACC} -d ${.ALLSRC}
     17 	${TOOL_SED} -e 's/yy/ippool_yy/g' \
     18 	    -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
     19 	    y.tab.c > ${.TARGET}
     20 	${TOOL_SED} -e 's/yy/ippool_yy/g' \
     21 	    y.tab.h > ${.TARGET:.c=.h}
     22 
     23 ippool_y.h: ippool_y.c
     24 
     25 ippool_l.c: lexer.c
     26 	${_MKTARGET_CREATE}
     27 	${TOOL_SED} -e 's/yy/ippool_yy/g' \
     28 	    -e 's/y.tab.h/ippool_y.h/' \
     29 	    -e 's/lexer.h/ippool_l.h/' \
     30 	    ${.ALLSRC} > ${.TARGET}
     31 
     32 ippool_l.h: lexer.h
     33 	${_MKTARGET_CREATE}
     34 	${TOOL_SED} -e 's/yy/ippool_yy/g' \
     35 	    ${.ALLSRC} > ${.TARGET}
     36 
     37 .include <bsd.prog.mk>
     38