aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-03-26 15:06:43 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-03-26 21:09:19 -0400
commit2f3dfa7f90806fe1bbaeb16d22d0740a5cde69a2 (patch)
treed07589445b6be9a30f611b82778f725a6670edcf /gdbserver
parentf61e97cc86a4003e4c731e356985fdd291d7cb69 (diff)
downloadgdb-2f3dfa7f90806fe1bbaeb16d22d0740a5cde69a2.zip
gdb-2f3dfa7f90806fe1bbaeb16d22d0740a5cde69a2.tar.gz
gdb-2f3dfa7f90806fe1bbaeb16d22d0740a5cde69a2.tar.bz2
gdb, gdbserver, gdbsupport: reformat some Makefile variables, one entry per line
Reformat some variables definitions. I think it makes them easier to read, and it also makes diffs clearer. Change-Id: I82f63ba0e6d0fe268eb1f1ad5ab22c3cd016ab02 Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/Makefile.in50
1 files changed, 38 insertions, 12 deletions
diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index c712089..3aa7aa7 100644
--- a/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -114,7 +114,9 @@ INTL = @LIBINTL@
INTL_DEPS = @LIBINTL_DEP@
INTL_CFLAGS = @INCINTL@
-INCSUPPORT = -I$(srcdir)/.. -I..
+INCSUPPORT = \
+ -I$(srcdir)/.. \
+ -I..
# All the includes used for CFLAGS and for lint.
# -I. for config files.
@@ -125,9 +127,15 @@ INCSUPPORT = -I$(srcdir)/.. -I..
# in those directories should be included with the subdirectory.
# e.g.: "target/wait.h".
#
-INCLUDE_CFLAGS = -I. -I${srcdir} \
- -I$(srcdir)/../gdb/regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \
- -I$(srcdir)/../gdb $(INCGNU) $(INCSUPPORT) \
+INCLUDE_CFLAGS = \
+ -I. \
+ -I${srcdir} \
+ -I$(srcdir)/../gdb/regformats \
+ -I$(srcdir)/.. \
+ -I$(INCLUDE_DIR) \
+ -I$(srcdir)/../gdb \
+ $(INCGNU) \
+ $(INCSUPPORT) \
$(INTL_CFLAGS)
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
@@ -155,10 +163,21 @@ WIN32APILIBS = @WIN32APILIBS@
MAYBE_LIBICONV = @MAYBE_LIBICONV@
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
-INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \
- ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS} $(PTHREAD_CFLAGS)
-INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
-INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
+INTERNAL_CFLAGS_BASE = \
+ ${GLOBAL_CFLAGS} \
+ ${PROFILE_CFLAGS} \
+ ${INCLUDE_CFLAGS} \
+ ${CPPFLAGS} \
+ $(PTHREAD_CFLAGS)
+
+INTERNAL_WARN_CFLAGS = \
+ ${INTERNAL_CFLAGS_BASE} \
+ $(WARN_CFLAGS)
+
+INTERNAL_CFLAGS = \
+ ${INTERNAL_WARN_CFLAGS} \
+ $(WERROR_CFLAGS) \
+ -DGDBSERVER
# LDFLAGS is specifically reserved for setting from the command line
# when running make.
@@ -472,17 +491,24 @@ MAKEOVERRIDES =
regdat_sh = $(srcdir)/../gdb/regformats/regdat.sh
-UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
+UST_CFLAGS = \
+ $(ustinc) \
+ -DCONFIG_UST_GDB_INTEGRATION
# Undo gnulib replacements for the IPA shared library build.
# The gnulib headers are still needed, but gnulib is not linked
# into the IPA lib so replacement apis don't work.
-UNDO_GNULIB_CFLAGS = -Drpl_strerror_r=strerror_r -Drpl_free=free \
- -Drpl_malloc=malloc -Drpl_realloc=realloc
+UNDO_GNULIB_CFLAGS = \
+ -Drpl_strerror_r=strerror_r \
+ -Drpl_free=free \
+ -Drpl_malloc=malloc \
+ -Drpl_realloc=realloc
# Note, we only build the IPA if -fvisibility=hidden is supported in
# the first place.
-IPAGENT_CFLAGS = $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
+IPAGENT_CFLAGS = \
+ $(INTERNAL_CFLAGS) \
+ $(UST_CFLAGS) \
$(UNDO_GNULIB_CFLAGS) \
-fPIC -DIN_PROCESS_AGENT \
-fvisibility=hidden