summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.dep.mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-05-15 09:30:13 +0000
committerbde <bde@FreeBSD.org>1998-05-15 09:30:13 +0000
commit680f5e79ae06d9d63ae284a61703de677b872dd1 (patch)
tree0e8fdd7d7baa5b9a09eb07ba8c76debb3b4254d7 /share/mk/bsd.dep.mk
parentd464adb4c03446481b775185f820a5c71f68ed29 (diff)
downloadFreeBSD-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.dep.mk')
-rw-r--r--share/mk/bsd.dep.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 12a51e0..4914a39 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.dep.mk,v 1.21 1998/05/08 06:31:05 bde Exp $
+# $Id: bsd.dep.mk,v 1.22 1998/05/11 15:37:13 bde Exp $
#
# The include file <bsd.dep.mk> handles Makefile dependencies.
#
@@ -94,6 +94,12 @@ ${DEPENDFILE}: ${SRCS}
${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BID]*} \
${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}
.endif
+.if ${SRCS:M*.m} != ""
+ ${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \
+ ${OBJCFLAGS:M-nostdinc*} ${OBJCFLAGS:M-[BID]*} \
+ ${OBJCFLAGS:M-Wno-import*} \
+ ${.ALLSRC:M*.m}
+.endif
.if target(_EXTRADEPEND)
cd ${.CURDIR}; ${MAKE} _EXTRADEPEND
.endif
OpenPOWER on IntegriCloud