[Pdbg] [PATCH 07/10] Makefile: Define arch dependent sources explicitly

Amitay Isaacs amitay at ozlabs.org
Wed Nov 7 13:14:53 AEDT 2018


This enables "make dist" to include all the arch sources.

Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 485cd95..e7c9a35 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,7 +80,6 @@ pdbg_SOURCES = \
 	src/mem.c \
 	src/optcmd.c \
 	src/optcmd.h \
-	src/options_ at ARCH@.c \
 	src/options.h \
 	src/parsers.c \
 	src/parsers.h \
@@ -93,6 +92,16 @@ pdbg_SOURCES = \
 	src/scom.c \
 	src/thread.c
 
+if TARGET_ARM
+pdbg_SOURCES += src/options_arm.c
+else
+if TARGET_PPC
+pdbg_SOURCES += src/options_ppc.c
+else
+pdbg_SOURCES += src/options_def.c
+endif
+endif
+
 pdbg_CFLAGS = -I$(top_srcdir)/libpdbg -Wall -Werror -DGIT_SHA1=\"${GIT_SHA1}\" \
 	      $(ARCH_FLAGS)
 
-- 
2.17.2



More information about the Pdbg mailing list