diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-25 02:49:56 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-25 02:49:56 +0000 |
commit | e2d3326da9456ae846b41aa50865fe0f36e1cb77 (patch) | |
tree | cc3f78e16bd61883bd851c64c73ab8ccd716a823 /gcc/Makefile.in | |
parent | b99476d8779c76e61aa96b78a3123d3550a65e19 (diff) | |
download | gcc-e2d3326da9456ae846b41aa50865fe0f36e1cb77.tar.gz |
* Makefile.in (PREPROCESSOR_DEFINES): New macro.
(protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
(unprotoize.o): Ditto.
(test-protoize-simple): Don't define STD_PROTO_DIR.
* protoize.c: Use PARAMS rather than PROTO. Minor whitespace
changes to make 'test-protoize-simple' pass.
(STD_PROTO_DIR): Remove define.
(STANDARD_EXEC_PREFIX): Supply default define.
(standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
(target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
(target_version): New variable, init to DEFAULT_TARGET_VERSION.
(GET_ENV_PATH_LIST): New macro.
(default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
(do_processing): Initialize default_syscalls_dir using new
macros. Use it to initialize syscalls_absolute_filename.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a5cc9decdd1..bc424b13de1 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1949,16 +1949,18 @@ cexp.o: $(srcdir)/cexp.c $(CONFIG_H) system.h $(srcdir)/cexp.c: $(srcdir)/cexp.y cd $(srcdir); $(BISON) -o cexp.c cexp.y +PREPROCESSOR_DEFINES = \ + -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ + -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ + -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ + -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ + -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" # We use $(libsubdir)/$(unlibsubdir) to match the # -iprefix argument which gcc will pass if GCC_EXEC_PREFIX is used. cccp.o: cccp.c $(CONFIG_H) intl.h pcp.h version.c config.status system.h \ mbchar.h prefix.h Makefile.in $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ - -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ - -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ + $(PREPROCESSOR_DEFINES) \ -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'` LIBCPP_OBJS = cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o cppfiles.o \ @@ -1988,11 +1990,7 @@ cppfiles.o: cppfiles.c $(CONFIG_H) cpplib.h intl.h system.h cppinit.o: cppinit.c $(CONFIG_H) cpplib.h intl.h system.h \ cpphash.h prefix.h output.h Makefile $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ - -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ - -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ + $(PREPROCESSOR_DEFINES) \ -c `echo $(srcdir)/cppinit.c | sed 's,^\./,,'` # Note for the stamp targets, we run the program `true' instead of @@ -2011,23 +2009,13 @@ unprotoize$(exeext): unprotoize.o $(PROTO_OBJS) $(LIBDEPS) protoize.o: protoize.c $(srcdir)/../include/getopt.h $(CONFIG_H) system.h \ Makefile $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ - -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ - -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ - -DSTD_PROTO_DIR=\"$(libsubdir)\" \ + $(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \ $(srcdir)/protoize.c unprotoize.o: unprotoize.c protoize.c $(srcdir)/../include/getopt.h \ $(CONFIG_H) system.h Makefile $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ - -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ - -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ - -DSTD_PROTO_DIR=\"$(libsubdir)\" \ + $(DRIVER_DEFINES) $(PREPROCESSOR_DEFINES) \ $(srcdir)/unprotoize.c # This info describes the target machine, so compile with GCC just built. @@ -2045,22 +2033,26 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES) cp $(srcdir)/protoize.c tmp-proto.c chmod u+w tmp-proto.c ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \ - $(CFLAGS) $(INCLUDES) \ + $(GCC_CFLAGS) $(INCLUDES) \ -DGCC_INCLUDE_DIR=0 \ -DGPLUSPLUS_INCLUDE_DIR=0 \ -DCROSS_INCLUDE_DIR=0 \ -DTOOL_INCLUDE_DIR=0 \ - -DSTD_PROTO_DIR=0" tmp-proto.c + -DSTANDARD_EXEC_PREFIX=0 \ + -DDEFAULT_TARGET_MACHINE=0 \ + -DDEFAULT_TARGET_VERSION=0" tmp-proto.c @echo '**********' Expect 400 lines of differences. -diff $(srcdir)/protoize.c tmp-proto.c > tmp-proto.diff -wc -l tmp-proto.diff ./unprotoize -N -x getopt.h -c "-B./ -Wall -Wwrite-strings \ - $(CFLAGS) $(INCLUDES) \ + $(GCC_CFLAGS) $(INCLUDES) \ -DGCC_INCLUDE_DIR=0 \ -DGPLUSPLUS_INCLUDE_DIR=0 \ -DCROSS_INCLUDE_DIR=0 \ -DTOOL_INCLUDE_DIR=0 \ - -DSTD_PROTO_DIR=0" tmp-proto.c + -DSTANDARD_EXEC_PREFIX=0 \ + -DDEFAULT_TARGET_MACHINE=0 \ + -DDEFAULT_TARGET_VERSION=0" tmp-proto.c @echo Expect zero differences. diff $(srcdir)/protoize.c tmp-proto.c | cat -rm -f tmp-proto.[cs] tmp-proto$(objext) |