From f8d0d61b62394051605cdb56f4f5e5fc76842fe8 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 30 Aug 1997 23:23:18 +0000 Subject: 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! :-) --- share/mk/bsd.prog.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'share/mk/bsd.prog.mk') 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 +.endif + .include .include -- cgit v1.1