summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/include/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/include/Makefile.in b/c/src/lib/include/Makefile.in
index 01f24139ea..568e6ecb60 100644
--- a/c/src/lib/include/Makefile.in
+++ b/c/src/lib/include/Makefile.in
@@ -31,6 +31,10 @@ RPC_H_FILES=$(RPC_H_PIECES:%=$(srcdir)/rpc/%.h)
RDBG_H_PIECES= servrpc rdbg $(RTEMS_CPU)/rdbg_f $(RTEMS_CPU)/reg
RDBG_H_FILES=$(RDBG_H_PIECES:%=$(srcdir)/rdbg/%.h)
+# We only build the rdbg library if HAS_NETWORKING and HAS_RDBG was defined
+RDBG_H_PIECES_yes_yes_V = servrpc rdbg $(RTEMS_CPU)/rdbg_f $(RTEMS_CPU)/reg
+RDBG_H_FILES=$($(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V):%=$(srcdir)/rdbg/%.h)
+
SRCS=$(H_FILES) $(SYS_H_FILES) \
$(MOTOROLA_H_FILES) $(RTEMSCPLUSPLUS_H_FILES) \
$(RPC_H_FILES) $(RDBG_H_FILES)