From 680f5e79ae06d9d63ae284a61703de677b872dd1 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 15 May 1998 09:30:13 +0000 Subject: 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. --- share/mk/bsd.dep.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'share/mk/bsd.dep.mk') 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 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 -- cgit v1.1