Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v rcsdiff: /ftp/cvs/cvsroot/src/share/mk/bsd.prog.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.236 retrieving revision 1.243 diff -u -p -r1.236 -r1.243 --- src/share/mk/bsd.prog.mk 2008/10/02 17:54:53 1.236 +++ src/share/mk/bsd.prog.mk 2009/11/27 11:44:36 1.243 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.236 2008/10/02 17:54:53 joerg Exp $ +# $NetBSD: bsd.prog.mk,v 1.243 2009/11/27 11:44:36 tsutsui Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 .ifndef HOSTPROG @@ -27,11 +27,6 @@ clean: cleanprog echo "source ${__gdbinit}" >> .gdbinit .endfor -cleanextra: .PHONY -.if defined(CLEANFILES) && !empty(CLEANFILES) - rm -f ${CLEANFILES} -.endif - cleanobjs: .PHONY cleanprog: .PHONY cleanobjs cleanextra @@ -51,9 +46,19 @@ CLEANFILES+=strings @rm -f x.cc .endif +.if defined(MKPIE) && (${MKPIE} != "no") +CFLAGS+= ${PIE_CFLAGS} +AFLAGS+= ${PIE_AFLAGS} +LDFLAGS+= ${PIE_LDFLAGS} +.endif + ##### Default values +.if empty(CPPFLAGS:M-nostdinc) CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} +.endif +.if empty(CXXFLAGS:M-nostdinc++) CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++} +.endif CFLAGS+= ${COPTS} OBJCFLAGS+= ${OBJCOPTS} MKDEP_SUFFIXES?= .o .ln @@ -94,7 +99,7 @@ LIBCRT0= ${DESTDIR}/usr/lib/crt0.o fetch form fl g2c gcc gnumalloc gssapi hdb heimntlm hx509 intl ipsec \ kadm5clnt kadm5srv kafs krb5 kvm l lber ldap ldap_r \ m magic menu objc ossaudio pam pcap pci pmc posix pthread pthread_dbg \ - puffs radius resolv rmt roken rpcsvc rt rump rumpuser sdp skey sl ss \ + puffs radius resolv rmt roken rpcsvc rt rump rumpuser skey sl ss \ ssh ssl termcap usbhid util wrap y z bind9 dns lwres isccfg isccc isc \ \ rumpfs_cd9660fs rumpfs_efs rumpfs_ext2fs rumpfs_ffs rumpfs_hfs \ @@ -441,6 +446,9 @@ scriptsinstall:: .PHONY: scriptsinstall ##### Pull in related .mk logic +LINKSOWN?= ${BINOWN} +LINKSGRP?= ${BINGRP} +LINKSMODE?= ${BINMODE} .include .include .include @@ -449,6 +457,11 @@ scriptsinstall:: .include .include +cleanextra: .PHONY +.if defined(CLEANFILES) && !empty(CLEANFILES) + rm -f ${CLEANFILES} +.endif + ${TARGETS}: # ensure existence .endif # HOSTPROG