Hi,
I took the patch at
http://darwinsource.opendarwin.org/10.4.5.x86/gnumake-110/patches/patch-default.c
added preprocessor checks for __APPLE__ and removed the hack for the
NeXT IDE. There have been a few compliants on Apple lists about the lack
of Objective-C support in non-Apple versions of GNU make.

Okay? Should the __APPLE__ checks be removed?

Peter
Index: ChangeLog
2006-04-10  Peter O'Gorman  <[EMAIL PROTECTED]> (tiny change)

	* default.c (default_suffixes, default_suffix_rules, 
	default_variables) [darwin]: Defaults for objective-C.

from  Paul D. Smith  <[EMAIL PROTECTED]>
Index: default.c
===================================================================
RCS file: /sources/make/make/default.c,v
retrieving revision 1.47
diff -u -r1.47 default.c
--- default.c 11 Feb 2006 22:16:04 -0000 1.47
+++ default.c 9 Apr 2006 08:42:50 -0000
@@ -44,6 +44,10 @@
   = ".out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S \
 .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
 .w .ch .web .sh .elc .el .obj .exe .dll .lib";
+#elif defined(__APPLE__)
+  = ".out .a .ln .o .c .cc .C .cpp .p .f .F .m .r .y .l .ym .lm .s .S \
+.mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
+.w .ch .web .sh .elc .el";
 #else
   = ".out .a .ln .o .c .cc .C .cpp .p .f .F .r .y .l .s .S \
 .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
@@ -192,6 +196,10 @@
     "$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@",
     ".f",
     "$(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@",
+#ifdef __APPLE__
+    ".m",
+    "$(LINK.m) $^ $(LOADLIBES) $(LDLIBS) -o $@",
+#endif
     ".p",
     "$(LINK.p) $^ $(LOADLIBES) $(LDLIBS) -o $@",
     ".F",
@@ -221,6 +229,10 @@
     "$(COMPILE.cpp) $(OUTPUT_OPTION) $<",
     ".f.o",
     "$(COMPILE.f) $(OUTPUT_OPTION) $<",
+#ifdef __APPLE__
+    ".m.o",
+    "$(COMPILE.m) $(OUTPUT_OPTION) $<",
+#endif
     ".p.o",
     "$(COMPILE.p) $(OUTPUT_OPTION) $<",
     ".F.o",
@@ -249,7 +261,12 @@
 #endif
     ".l.c",
     "@$(RM) $@ \n $(LEX.l) $< > $@",
-
+#ifdef __APPLE__
+    ".ym.m",
+    "$(YACC.m) $< \n mv -f y.tab.c $@",
+    ".lm.m",
+    "@$(RM) $@ \n $(LEX.m) $< > $@",
+#endif
     ".F.f",
     "$(PREPROCESS.F) $(OUTPUT_OPTION) $<",
     ".r.f",
@@ -468,6 +485,10 @@
     "LINK.o", "$(CC) $(LDFLAGS) $(TARGET_ARCH)",
     "COMPILE.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
     "LINK.c", "$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
+#ifdef __APPLE__
+    "COMPILE.m", "$(COMPILE.c)",
+    "LINK.m", "$(LINK.c)",
+#endif
     "COMPILE.cc", "$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",
     "COMPILE.C", "$(COMPILE.cc)",
     "COMPILE.cpp", "$(COMPILE.cc)",
@@ -476,6 +497,10 @@
     "LINK.cpp", "$(LINK.cc)",
     "YACC.y", "$(YACC) $(YFLAGS)",
     "LEX.l", "$(LEX) $(LFLAGS) -t",
+#ifdef __APPLE__
+    "YACC.m", "$(YACC) $(YFLAGS)",
+    "LEX.m", "$(LEX) $(LFLAGS) -t",
+#endif
     "COMPILE.f", "$(FC) $(FFLAGS) $(TARGET_ARCH) -c",
     "LINK.f", "$(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)",
     "COMPILE.F", "$(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c",

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to