+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.
#
# 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 \
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.
#
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.
$(COMPILE) $<
$(POSTCOMPILE)
-%.o: $(srcdir)/compile/%.c
- $(COMPILE) $<
- $(POSTCOMPILE)
-
%.o: $(srcdir)/gdbtk/generic/%.c
$(COMPILE) $(all_gdbtk_cflags) $<
$(POSTCOMPILE)