new #define used to control inclusion of gstdarg or stdarg for the runtime.
authorKresten Krab Thorup <krab@gcc.gnu.org>
Mon, 26 Apr 1993 07:38:11 +0000 (07:38 +0000)
committerKresten Krab Thorup <krab@gcc.gnu.org>
Mon, 26 Apr 1993 07:38:11 +0000 (07:38 +0000)
new #define used to control inclusion
        of gstdarg or stdarg for the runtime. .

From-SVN: r4227

gcc/objc/Makefile.in

index 5bd7bc4f47c47a52e10c01e1b96f722893e311cb..656fcddcad4a41f89e4ac2a68ea0e44f9b72ad53 100644 (file)
@@ -29,6 +29,7 @@
 .SUFFIXES: .m
 
 OPTIMIZE= -O
+CFLAGS = $(GCC_CFLAGS) -DIN_OBJC
 
 VPATH = $(srcdir)/objc
 
@@ -39,11 +40,12 @@ AR_FLAGS = rc
 SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config
 
 .c.o:
-       $(GCC_FOR_TARGET) $(OPTIMIZE) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
+       $(GCC_FOR_TARGET) $(OPTIMIZE) \
+               -c $(CFLAGS) $(SUBDIR_INCLUDES) $<
 
 .m.o:
        $(GCC_FOR_TARGET) $(OPTIMIZE)  -fgnu-runtime \
-               -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
+               -c $(CFLAGS) $(SUBDIR_INCLUDES) $<
 
 # If we were not invoked from the parent dir,
 # invoke make in the parent dir and have reinvoke this makefile.
@@ -74,11 +76,11 @@ copy-headers: $(OBJC_H)
        done
 
 sendmsg.o: sendmsg.c fflags
-       $(GCC_FOR_TARGET) `cat fflags` -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $(srcdir)/objc/sendmsg.c
+       $(GCC_FOR_TARGET) `cat fflags` -c $(CFLAGS) $(SUBDIR_INCLUDES) $(srcdir)/objc/sendmsg.c
 
 ## Next to are for heuristics on forwarding mechanism... 
 _forward: _forward.c
-       -$(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $(srcdir)/objc/_forward.c
+       -$(GCC_FOR_TARGET) -c $(CFLAGS) $(SUBDIR_INCLUDES) $(srcdir)/objc/_forward.c
        -$(GCC_FOR_TARGET) ./_forward.o -o _forward
        if [ \! -f ./_forward ]; then touch ./_forward; fi