Following the "arch" move, this moves the object files corresponding
to the cli/*.c source files to the "cli" build directory.
ChangeLog
2017-11-27 Tom Tromey <tom@tromey.com>
* Makefile.in (SUBDIR_CLI_OBS): Redefine.
(%.o): Remove cli rule.
(CONFIG_SRC_SUBDIR): Add cli.
+2017-11-27 Tom Tromey <tom@tromey.com>
+
+ * Makefile.in (SUBDIR_CLI_OBS): Redefine.
+ (%.o): Remove cli rule.
+ (CONFIG_SRC_SUBDIR): Add cli.
+
2017-11-27 Tom Tromey <tom@tromey.com>
* configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
#
# CLI sub directory definitons
#
-SUBDIR_CLI_OBS = \
- cli-cmds.o \
- cli-decode.o \
- cli-dump.o \
- cli-interp.o \
- cli-logging.o \
- cli-script.o \
- cli-setshow.o \
- cli-utils.o
-
SUBDIR_CLI_SRCS = \
cli/cli-cmds.c \
cli/cli-decode.c \
cli/cli-setshow.c \
cli/cli-utils.c
+SUBDIR_CLI_OBS = $(patsubst %.c,%.o,$(SUBDIR_CLI_SRCS))
+
SUBDIR_CLI_DEPS =
SUBDIR_CLI_LDFLAGS =
SUBDIR_CLI_CFLAGS =
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
-CONFIG_SRC_SUBDIR = arch
+CONFIG_SRC_SUBDIR = arch cli
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
# -I. for config files.
$(SHELL) $(srcdir)/../mkinstalldirs $@
# Rules for compiling .c files in the various source subdirectories.
-%.o: $(srcdir)/cli/%.c
- $(COMPILE) $<
- $(POSTCOMPILE)
-
%.o: ${srcdir}/common/%.c
$(COMPILE) $<
$(POSTCOMPILE)