Also support per-program LDFLAGS and LDSTATIC.

This commit is contained in:
erh 2003-09-13 03:44:20 +00:00
parent 09e452d82a
commit 552531a249
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.232 2003/09/13 02:52:05 erh Exp $
# $NetBSD: bsd.lib.mk,v 1.233 2003/09/13 03:44:20 erh Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@ -17,6 +17,8 @@ COPTS+= ${COPTS.lib${LIB}}
CPPFLAGS+= ${CPPFLAGS.lib${LIB}}
CXXFLAGS+= ${CXXFLAGS.lib${LIB}}
LDADD+= ${LDADD.lib${LIB}}
LDFLAGS+= ${LDFLAGS.lib${LIB}}
LDSTATIC+= ${LDSTATIC.lib${LIB}}
##### Build and install rules
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.185 2003/09/13 02:52:05 erh Exp $
# $NetBSD: bsd.prog.mk,v 1.186 2003/09/13 03:44:21 erh Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@ -17,10 +17,12 @@ realinstall: proginstall scriptsinstall
clean: cleanprog
##### PROG specific flags.
COPTS+= ${COPTS.${PROG}}
COPTS+= ${COPTS.${PROG}}
CPPFLAGS+= ${CPPFLAGS.${PROG}}
CXXFLAGS+= ${CXXFLAGS.${PROG}}
LDADD+= ${LDADD.${PROG}}
LDFLAGS+= ${LDFLAGS.${PROG}}
LDSTATIC+= ${LDSTATIC.${PROG}}
##### Default values
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}