Commit c6887326 by Kresten Krab Thorup

new #define used to control inclusion of gstdarg or stdarg for the runtime.

new #define used to control inclusion
        of gstdarg or stdarg for the runtime. .

From-SVN: r4227
parent a31efb86
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
.SUFFIXES: .m .SUFFIXES: .m
OPTIMIZE= -O OPTIMIZE= -O
CFLAGS = $(GCC_CFLAGS) -DIN_OBJC
VPATH = $(srcdir)/objc VPATH = $(srcdir)/objc
...@@ -39,11 +40,12 @@ AR_FLAGS = rc ...@@ -39,11 +40,12 @@ AR_FLAGS = rc
SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config SUBDIR_INCLUDES = -I. -I.. -I$(srcdir) -I$(srcdir)/config
.c.o: .c.o:
$(GCC_FOR_TARGET) $(OPTIMIZE) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $< $(GCC_FOR_TARGET) $(OPTIMIZE) \
-c $(CFLAGS) $(SUBDIR_INCLUDES) $<
.m.o: .m.o:
$(GCC_FOR_TARGET) $(OPTIMIZE) -fgnu-runtime \ $(GCC_FOR_TARGET) $(OPTIMIZE) -fgnu-runtime \
-c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $< -c $(CFLAGS) $(SUBDIR_INCLUDES) $<
# If we were not invoked from the parent dir, # If we were not invoked from the parent dir,
# invoke make in the parent dir and have reinvoke this makefile. # invoke make in the parent dir and have reinvoke this makefile.
...@@ -74,11 +76,11 @@ copy-headers: $(OBJC_H) ...@@ -74,11 +76,11 @@ copy-headers: $(OBJC_H)
done done
sendmsg.o: sendmsg.c fflags 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... ## Next to are for heuristics on forwarding mechanism...
_forward: _forward.c _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 -$(GCC_FOR_TARGET) ./_forward.o -o _forward
if [ \! -f ./_forward ]; then touch ./_forward; fi if [ \! -f ./_forward ]; then touch ./_forward; fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment