aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-02-21 20:04:25 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-02-21 20:04:25 +0000
commit8caa75eee413f6e49ae0ec53e784ab31893ba4c7 (patch)
tree0af4e20453fce1a4d78bd11438565de722f579e1 /gdb/common
parentea666128f4008af9a9cfe7250cb3d0112f72e3aa (diff)
downloadgdb-8caa75eee413f6e49ae0ec53e784ab31893ba4c7.zip
gdb-8caa75eee413f6e49ae0ec53e784ab31893ba4c7.tar.gz
gdb-8caa75eee413f6e49ae0ec53e784ab31893ba4c7.tar.bz2
gdb/
* common/Makefile.in (CFLAGS): New. (COMPILE): Add $(CFLAGS).
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/common/Makefile.in b/gdb/common/Makefile.in
index a87f2d1..9230b87 100644
--- a/gdb/common/Makefile.in
+++ b/gdb/common/Makefile.in
@@ -23,6 +23,10 @@ AUTOHEADER = @AUTOHEADER@
RANLIB = @RANLIB@
COMMON_CPU_OBJ = @COMMON_CPU_OBJ@
+# CFLAGS is specifically reserved for setting from the command line
+# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
+CFLAGS = @CFLAGS@
+
BFD_DIR = ../../bfd
BFD_SRC = $(srcdir)/$(BFD_DIR)
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
@@ -37,7 +41,8 @@ all: libcommon.a
signals.o: $(srcdir)/signals.c
$(COMPILE) $(srcdir)/signals.c
-COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) -c
+COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) \
+ @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) $(CFLAGS) -c
# Implicit rules