diff options
author | Tom Tromey <tom@tromey.com> | 2017-11-21 12:35:05 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-11-27 16:53:23 -0700 |
commit | a26aa30cc535c9bde457cdd00daf0c82f25da0af (patch) | |
tree | 96f0d0c5cbe8cb6607688374f0a9172326ea9233 /gdb | |
parent | 6f3cdf9a3bfa2c0a22fa9dc40b45578e2ea7957d (diff) | |
download | gdb-a26aa30cc535c9bde457cdd00daf0c82f25da0af.zip gdb-a26aa30cc535c9bde457cdd00daf0c82f25da0af.tar.gz gdb-a26aa30cc535c9bde457cdd00daf0c82f25da0af.tar.bz2 |
Move compile object files to compile subdirectory
Move the object files corresponding to compile/*.c to the compile
subdirectory in the build tree.
ChangeLog
2017-11-27 Tom Tromey <tom@tromey.com>
* Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
(%.o): Remove compile rule.
(CONFIG_SRC_SUBDIR): Add compile.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/Makefile.in | 17 |
2 files changed, 9 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fbf419..51d255c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2017-11-27 Tom Tromey <tom@tromey.com> + * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine. + (%.o): Remove compile rule. + (CONFIG_SRC_SUBDIR): Add compile. + +2017-11-27 Tom Tromey <tom@tromey.com> + * Makefile.in (SUBDIR_MI_OBS): Redefine. (%.o): Remove mi rule. (CONFIG_SRC_SUBDIR): Add mi. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index d9c292f..626dc91 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -327,15 +327,6 @@ SUBDIR_TUI_CFLAGS = -DTUI=1 # # GCC Compile support sub-directory definitions # -SUBDIR_GCC_COMPILE_OBS = \ - compile.o \ - compile-c-support.o \ - compile-c-symbols.o \ - compile-c-types.o \ - compile-loc2c.o \ - compile-object-load.o \ - compile-object-run.o - SUBDIR_GCC_COMPILE_SRCS = \ compile/compile.c \ compile/compile-c-support.c \ @@ -347,6 +338,8 @@ SUBDIR_GCC_COMPILE_SRCS = \ compile/compile-object-run.c \ compile/compile-object-run.h +SUBDIR_GCC_COMPILE_OBS = $(patsubst %.c,%.o,$(filter %.c,$(SUBDIR_GCC_COMPILE_SRCS))) + # # Guile sub directory definitons for guile support. # @@ -622,7 +615,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@ CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@ -CONFIG_SRC_SUBDIR = arch cli mi +CONFIG_SRC_SUBDIR = arch cli mi compile CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR)) # -I. for config files. @@ -1917,10 +1910,6 @@ $(CONFIG_DEP_SUBDIR): $(COMPILE) $< $(POSTCOMPILE) -%.o: $(srcdir)/compile/%.c - $(COMPILE) $< - $(POSTCOMPILE) - %.o: $(srcdir)/gdbtk/generic/%.c $(COMPILE) $(all_gdbtk_cflags) $< $(POSTCOMPILE) |