[Pdbg] [PATCH 08/10] Makefile: Redefine sources required for gdbserver

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


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index e7c9a35..be9b657 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,12 +65,6 @@ DT_headers = $(DT:.dts=.dt.h)
 optcmd_test_SOURCES = src/optcmd.c src/parsers.c src/tests/optcmd_test.c
 optcmd_test_CFLAGS = -Wall -g
 
-if HAVE_RAGEL
-extra_sources = src/gdb_parser.c
-else
-extra_sources = src/gdb_parser_precompile.c
-endif
-
 pdbg_SOURCES = \
 	src/cfam.c \
 	src/htm.c \
@@ -106,8 +100,11 @@ pdbg_CFLAGS = -I$(top_srcdir)/libpdbg -Wall -Werror -DGIT_SHA1=\"${GIT_SHA1}\" \
 	      $(ARCH_FLAGS)
 
 if GDBSERVER
-pdbg_SOURCES += \
-	$(extra_sources)
+if HAVE_RAGEL
+pdbg_SOURCES += src/gdb_parser.c
+else
+pdbg_SOURCES += src/gdb_parser_precompile.c
+endif
 else
 pdbg_CFLAGS += -DDISABLE_GDBSERVER
 endif
-- 
2.17.2



More information about the Pdbg mailing list