989e2c6000
This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
36 lines
721 B
Makefile
36 lines
721 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= ippool
|
|
SRCS= ${GENHDRS} ippool_y.c ippool_l.c kmem.c ippool.c
|
|
MAN= ippool.5 ippool.8
|
|
CFLAGS+= -I.
|
|
|
|
GENHDRS= ippool_l.h ippool_y.h
|
|
DPSRCS+= ${GENHDRS}
|
|
|
|
CLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c
|
|
|
|
NO_PIE= yes
|
|
|
|
ippool_y.c: ippool_y.y
|
|
${YACC} -d ${.ALLSRC}
|
|
sed -e 's/yy/ippool_yy/g' \
|
|
-e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
|
|
y.tab.c > ${.TARGET}
|
|
sed -e 's/yy/ippool_yy/g' \
|
|
y.tab.h > ${.TARGET:.c=.h}
|
|
|
|
ippool_y.h: ippool_y.c
|
|
|
|
ippool_l.c: lexer.c
|
|
sed -e 's/yy/ippool_yy/g' \
|
|
-e 's/y.tab.h/ippool_y.h/' \
|
|
-e 's/lexer.h/ippool_l.h/' \
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
ippool_l.h: lexer.h
|
|
sed -e 's/yy/ippool_yy/g' \
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|