summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-30 23:23:18 +0000
committerpeter <peter@FreeBSD.org>1997-08-30 23:23:18 +0000
commitf8d0d61b62394051605cdb56f4f5e5fc76842fe8 (patch)
tree14b6908e8ec592568611d92dc1b94759bd1e9bfa /share/mk/bsd.prog.mk
parent699c94cfae8cdb7c2e52e1258fe30ec4449c9d32 (diff)
downloadFreeBSD-src-f8d0d61b62394051605cdb56f4f5e5fc76842fe8.zip
FreeBSD-src-f8d0d61b62394051605cdb56f4f5e5fc76842fe8.tar.gz
A first cut at some rules for building elf shared libs. Of particular
note, using "-Wl,-f" to generate a library objects list doesn't work anymore since the hack to ld hasn't been incorporated into binutils-2.8. (and the -f switch is used for something else already) This is disabled by default, don't panic! :-)
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index febc393..805ab54 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.prog.mk,v 1.53 1997/07/31 06:12:04 asami Exp $
+# $Id: bsd.prog.mk,v 1.54 1997/08/05 03:49:49 asami Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -65,8 +65,14 @@ clean: _SUBDIR
.if defined(PROG) && !defined(NOEXTRADEPEND)
_EXTRADEPEND:
+.if ${BINFORMAT} == aout
echo ${PROG}: `${CC} -Wl,-f ${CFLAGS} ${LDFLAGS} ${LDDESTDIR} \
${LDADD:S/^/-Wl,/}` >> ${DEPENDFILE}
+.else
+.if defined(DPADD) && ${DPADD} != ""
+ echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
+.endif
+.endif
.endif
.if !target(install)
@@ -140,5 +146,9 @@ maninstall:
all-man:
.endif
+.if ${BINFORMAT} != aout
+.include <bsd.libnames.mk>
+.endif
+
.include <bsd.dep.mk>
.include <bsd.obj.mk>
OpenPOWER on IntegriCloud