diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1995-03-16 14:01:13 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1995-03-16 14:01:13 -0800 |
commit | 59949f603139770dd3ad46bc21ac3095f60b1d42 (patch) | |
tree | 6e1aa4aa9689c73c24fa890609bfcc7b5ae35077 /gcc | |
parent | 7f2935c734c36f84ab62b20a04de465e19061333 (diff) | |
download | gcc-59949f603139770dd3ad46bc21ac3095f60b1d42.zip gcc-59949f603139770dd3ad46bc21ac3095f60b1d42.tar.gz gcc-59949f603139770dd3ad46bc21ac3095f60b1d42.tar.bz2 |
Add support for cpplib and building cppmain.
From-SVN: r9192
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/Makefile.in | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index df90521..cf1ca6e 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -492,6 +492,10 @@ OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \ # them before rtl.o is compiled. GEN= genemit genoutput genrecog genextract genflags gencodes genconfig genpeep +CCCP=cccp +# Uncomment this line if you want to use cppmain (w/cpplib) as cpp. +#CCCP=cppmain + # Files to be copied away after each stage in building. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \ insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \ @@ -504,7 +508,7 @@ STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \ bc-arity.h bc-opcode.h bc-opname.h \ stamp-bcarity stamp-bcopcode stamp-bcopname \ bi-arity bi-opcode bi-opname \ - $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross cccp \ + $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross $(CCCP) \ cc1obj enquire protoize unprotoize specs collect2 $(USE_COLLECT2) \ $(LANG_STAGESTUFF) @@ -1542,10 +1546,10 @@ bytecode.realclean: bytecode.clean # Remake cpp and protoize. # Making the preprocessor -cpp: cccp +cpp: $(CCCP) -rm -f cpp$(exeext) - ln cccp$(exeext) cpp$(exeext) > /dev/null 2>&1 \ - || cp cccp$(exeext) cpp$(exeext) + ln $(CCCP)$(exeext) cpp$(exeext) > /dev/null 2>&1 \ + || cp $(CCCP)$(exeext) cpp$(exeext) cccp: cccp.o cexp.o version.o $(LIBDEPS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS) cexp.o: $(srcdir)/cexp.c $(CONFIG_H) @@ -1563,6 +1567,21 @@ cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \ -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'` +cppmain: cppmain.o cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o \ + version.o $(LIBDEPS) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cppmain \ + cppmain.o cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o \ + version.o $(LIBS) + +cpplib.o: cpplib.c $(CONFIG_H) pcp.h version.c config.status + $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ + -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ + -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \ + -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ + -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \ + -DTOOL_INCLUDE_DIR=\"$(tooldir)/include\" \ + -c `echo $(srcdir)/cpplib.c | sed 's,^\./,,'` + # Note for the stamp targets, we run the program `true' instead of # having an empty command (nothing following the semicolon). |