SUBDIR_UNITTESTS_OBS = $(patsubst %.c,%.o,$(SUBDIR_UNITTESTS_SRCS))
+SUBDIR_TARGET_SRCS = target/waitstatus.c
+SUBDIR_TARGET_OBS = $(patsubst %.c,%.o,$(SUBDIR_TARGET_SRCS))
+
+
# Opcodes currently live in one of two places. Either they are in the
# opcode library, typically ../opcodes, or they are in a header file
# in INCLUDE_DIR.
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
-CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests guile python
+CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests guile python target
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
# -I. for config files.
# See configure.ac.
SER_HARDWIRE = @SER_HARDWIRE@
-# The `remote' debugging target is supported for most architectures,
-# but not all (e.g. 960)
-REMOTE_OBS = \
- ax-gdb.o \
- ax-general.o \
- ctf.o \
- dcache.o \
- remote.o \
- remote-fileio.o \
- remote-notif.o \
- tracefile.o \
- tracefile-tfile.o \
- tracepoint.o
-
# This is remote-sim.o if a simulator is to be linked in.
SIM_OBS = @SIM_OBS@
arch-utils.c \
auto-load.c \
auxv.c \
+ ax-gdb.c \
+ ax-general.c \
bcache.c \
bfd-target.c \
block.c \
cp-namespace.c \
cp-support.c \
cp-valprint.c \
+ ctf.c \
d-lang.c \
d-namespace.c \
d-valprint.c \
dbxread.c \
+ dcache.c \
+ debug.c \
demangle.c \
dictionary.c \
disasm.c \
f-lang.c \
f-typeprint.c \
f-valprint.c \
+ filename-seen-cache.c \
filesystem.c \
findcmd.c \
findvar.c \
record-full.c \
regcache.c \
reggroups.c \
+ registry.c \
+ remote.c \
+ remote-fileio.c \
+ remote-notif.c \
reverse.c \
rust-lang.c \
selftest-arch.c \
target-descriptions.c \
target-memory.c \
thread.c \
+ thread-fsm.c \
tid-parse.c \
top.c \
+ tracefile.c \
+ tracefile-tfile.c \
+ tracepoint.c \
trad-frame.c \
tramp-frame.c \
target-float.c \
SFILES = \
ada-exp.y \
arch/i386.c \
- ax-gdb.c \
- ax-general.c \
c-exp.y \
cp-name-parser.y \
- ctf.c \
d-exp.y \
dtrace-probe.c \
elfread.c \
m2-exp.y \
p-exp.y \
proc-service.list \
- remote.c \
- remote-fileio.c \
- remote-notif.c \
rust-exp.y \
ser-base.c \
ser-unix.c \
stap-probe.c \
stub-termcap.c \
symfile-mem.c \
- tracepoint.c \
ui-file.h \
common/agent.c \
common/btrace-common.c \
common/vec.c \
common/xml-utils.c \
mi/mi-common.c \
- target/waitstatus.c \
+ $(SUBDIR_TARGET_SRCS) \
$(COMMON_SFILES) \
$(SUBDIR_GCC_COMPILE_SRCS)
job-control.o \
common-regcache.o \
common-utils.o \
- debug.o \
environ.o \
errors.o \
exec.o \
fileio.o \
- filename-seen-cache.o \
filestuff.o \
format.o \
gdb_tilde_expand.o \
new-op.o \
print-utils.o \
ptid.o \
- registry.o \
rsp-low.o \
run-time-clock.o \
selftest.o \
signals.o \
signals-state-save-restore.o \
- thread-fsm.o \
vec.o \
version.o \
- waitstatus.o \
xml-builtin.o \
xml-utils.o \
$(patsubst %.c,%.o,$(COMMON_SFILES)) \
+ $(SUBDIR_TARGET_OBS) \
$(SUBDIR_GCC_COMPILE_OBS)
TSOBS = inflow.o
$(COMPILE) $<
$(POSTCOMPILE)
-%.o: ${srcdir}/target/%.c
- $(COMPILE) $<
- $(POSTCOMPILE)
-
# Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
# object file generate by gdb/agent.c.
common-agent.o: $(srcdir)/common/agent.c
rm -f Makefile
rm -rf $(DEPDIR)
for i in $(CONFIG_SRC_SUBDIR); do \
- rmdir $$i/$(DEPDIR); \
+ if test -d $$i/$(DEPDIR); then rmdir $$i/$(DEPDIR); fi \
done
maintainer-clean: local-maintainer-clean do-maintainer-clean distclean
bsd-kvm.c \
bsd-uthread.c \
darwin-nat.c \
- dcache.c \
- dcache.c \
dicos-tdep.c \
exec.c \
fbsd-nat.c \
all_object_files = gdb.o $(LIBGDB_OBS) gdbtk-main.o \
test-cp-name-parser.o
+# All the .deps files to include.
+all_deps_files = $(foreach dep,$(patsubst %.o,%.Po,$(all_object_files)),\
+ $(dir $(dep))/$(DEPDIR)/$(notdir $(dep)))
+
# Ensure that generated files are created early. Use order-only
# dependencies if available. They require GNU make 3.80 or newer,
# and the .VARIABLES variable was introduced at the same time.
endif
# Dependencies.
--include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
+-include $(all_deps_files)
# Disable implicit make rules.
include $(srcdir)/disable-implicit-rules.mk