Makefile.in (EXTRA_C_OBJS): New variable.
authorPer Bothner <bothner@gcc.gnu.org>
Tue, 29 Jul 1997 22:07:34 +0000 (15:07 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 29 Jul 1997 22:07:34 +0000 (15:07 -0700)
* Makefile.in (EXTRA_C_OBJS):  New variable.
(INTERNAL_CFLAGS):  Add @extra_c_flags@.
C_OBJS, OBJC_OBS:  Add $(EXTRA_C_OBJS).

From-SVN: r14555

gcc/Makefile.in

index 8d21fdcc12e3d9ac8b30e88c59a3d13c3ada666d..251d45bb92865f5ea82255eff73b626f2967c5fd 100644 (file)
@@ -304,6 +304,9 @@ EXTRA_OBJS = @extra_objs@
 # the gcc driver.
 EXTRA_GCC_OBJS =@host_extra_gcc_objs@
 
+# List of extra object files that should be compiled and linked with cc1.
+EXTRA_C_OBJS =@extra_c_objs@
+
 # List of additional header files to install.
 # Often this is edited directly by `configure'.
 EXTRA_HEADERS =@extra_headers_list@
@@ -439,7 +442,7 @@ all.indirect: $(ALL)
 
 # IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
 # ??? IN_GCC should be obsolete now.
-INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
+INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@
 
 # This is the variable actually used when we compile.
 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) \
@@ -535,7 +538,11 @@ FLAGS_TO_PASS = \
 # Lists of files for various purposes.
 
 # Language-specific object files for C.
-C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o \
+C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o $(EXTRA_C_OBJS) \
+   c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
+
+# Language-specific object files for Objective C.
+OBJC_OBJS = objc-parse.o objc-act.o c-lex.o c-pragma.o $(EXTRA_C_OBJS) \
    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
 
 # Files specific to the C interpreter bytecode compiler(s).