diff options
author | bde <bde@FreeBSD.org> | 1998-05-15 09:30:13 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-05-15 09:30:13 +0000 |
commit | 680f5e79ae06d9d63ae284a61703de677b872dd1 (patch) | |
tree | 0e8fdd7d7baa5b9a09eb07ba8c76debb3b4254d7 /share/mk/bsd.lib.mk | |
parent | d464adb4c03446481b775185f820a5c71f68ed29 (diff) | |
download | FreeBSD-src-680f5e79ae06d9d63ae284a61703de677b872dd1.zip FreeBSD-src-680f5e79ae06d9d63ae284a61703de677b872dd1.tar.gz |
Support Objective C almost as well as C++.
Notes:
- We no longer use -fgnu-runtime in bsd.lib.mk, since it is the default
and bsd.lib.mk is the wrong place to override it.
- Gnu C doesn't have a special compiler driver for Objective C like it
does for C++. The defaults are suitable for Gnu C. Use `OBJCLIBS='
in /etc/make.conf for POC.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 2a3118c..ee90118 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.69 1998/03/07 13:13:41 bde Exp $ +# $Id: bsd.lib.mk,v 1.70 1998/03/12 20:02:13 eivind Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -84,6 +84,18 @@ STRIP?= -s ${FC} ${PICFLAG} -DPIC ${FFLAGS} -o ${.TARGET} -c ${.IMPSRC} @${LD} -O ${.TARGET} -x -r ${.TARGET} +.m.o: + ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} -o ${.TARGET} + @${LD} -O ${.TARGET} -x -r ${.TARGET} + +.m.po: + ${OBJC} ${OBJCFLAGS} -pg -c ${.IMPSRC} -o ${.TARGET} + @${LD} -O ${.TARGET} -X -r ${.TARGET} + +.m.so: + ${OBJC} ${PICFLAG} -DPIC ${OBJCFLAGS} -c ${.IMPSRC} -o ${.TARGET} + @${LD} -O ${.TARGET} -x -r ${.TARGET} + .s.o: ${CC} -x assembler-with-cpp ${CFLAGS:M-[BID]*} ${AINC} -c \ ${.IMPSRC} -o ${.TARGET} @@ -111,14 +123,6 @@ STRIP?= -s ${CC} -fpic -DPIC ${CFLAGS:M-[BID]*} ${AINC} -c ${.IMPSRC} -o ${.TARGET} @${LD} -O ${.TARGET} -x -r ${.TARGET} -.m.o: - ${CC} ${CFLAGS} -fgnu-runtime -c ${.IMPSRC} -o ${.TARGET} - @${LD} -O ${.TARGET} -x -r ${.TARGET} - -.m.po: - ${CC} ${CFLAGS} -fgnu-runtime -pg -c ${.IMPSRC} -o ${.TARGET} - @${LD} -O ${.TARGET} -X -r ${.TARGET} - .if !defined(INTERNALLIB) || defined(INTERNALSTATICLIB) .if !defined(NOPROFILE) && !defined(INTERNALLIB) _LIBS=lib${LIB}.a lib${LIB}_p.a |