Move the object files corresponding to tui/*.c to the tui subdirectory
in the build tree.
ChangeLog
2017-11-27 Tom Tromey <tom@tromey.com>
* Makefile.in (SUBDIR_TUI_OBS): Redefine.
(CONFIG_SRC_SUBDIR): Add tui.
(%.o): Remove tui rule.
+2017-11-27 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (SUBDIR_TUI_OBS): Redefine.
+ (CONFIG_SRC_SUBDIR): Add tui.
+ (%.o): Remove tui rule.
+
2017-11-27 Tom Tromey <tom@tromey.com>
* Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
#
# TUI sub directory definitions
#
-SUBDIR_TUI_OBS = \
- tui.o \
- tui-command.o \
- tui-data.o \
- tui-disasm.o \
- tui-file.o \
- tui-hooks.o \
- tui-interp.o \
- tui-io.o \
- tui-layout.o \
- tui-out.o \
- tui-regs.o \
- tui-source.o \
- tui-stack.o \
- tui-win.o \
- tui-windata.o \
- tui-wingeneral.o \
- tui-winsource.o
-
SUBDIR_TUI_SRCS = \
tui/tui.c \
tui/tui-command.c \
tui/tui-wingeneral.c \
tui/tui-winsource.c
+SUBDIR_TUI_OBS = $(patsubst %.c,%.o,$(SUBDIR_TUI_SRCS))
+
SUBDIR_TUI_DEPS =
SUBDIR_TUI_LDFLAGS =
SUBDIR_TUI_CFLAGS = -DTUI=1
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
-CONFIG_SRC_SUBDIR = arch cli mi compile
+CONFIG_SRC_SUBDIR = arch cli mi compile tui
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
# -I. for config files.
$(COMPILE) $<
$(POSTCOMPILE)
-%.o: $(srcdir)/tui/%.c
- $(COMPILE) $<
- $(POSTCOMPILE)
-
%.o: ${srcdir}/unittests/%.c
$(COMPILE) $<
$(POSTCOMPILE)