diff options
author | Tom Tromey <tromey@redhat.com> | 2013-07-10 18:13:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-07-10 18:13:52 +0000 |
commit | 94e36acc3c80011966791d3773596e5f14264eab (patch) | |
tree | 05d7a346b8a83d684f4ad38e4363ae9a99afabe1 /gdb/Makefile.in | |
parent | 868d18401395bae6d5fa180155d140b8416d738d (diff) | |
download | gdb-94e36acc3c80011966791d3773596e5f14264eab.zip gdb-94e36acc3c80011966791d3773596e5f14264eab.tar.gz gdb-94e36acc3c80011966791d3773596e5f14264eab.tar.bz2 |
* Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
(ada-exp.o): New target.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 4694adc..a51afcb 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -165,6 +165,8 @@ GDB_WERROR_CFLAGS = $(WERROR_CFLAGS) GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \ | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"` +GDB_WARN_CFLAGS_NO_DEFS = `echo " $(GDB_WARN_CFLAGS) " \ + | sed "s/ -Wold-style-definition / -Wno-old-style-definition /g"` RDYNAMIC = @RDYNAMIC@ @@ -1581,6 +1583,17 @@ printcmd.o: $(srcdir)/printcmd.c $(COMPILE.post) $(srcdir)/printcmd.c $(POSTCOMPILE) +# ada-exp.c can appear in srcdir, for releases; or in ., for +# development builds. +ADA_EXP_C = `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi` + +# Some versions of flex give output that triggers +# -Wold-style-definition. +ada-exp.o: ada-exp.c + $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_DEFS) \ + $(COMPILE.post) $(ADA_EXP_C) + $(POSTCOMPILE) + # Message files. Based on code in gcc/Makefile.in. # Rules for generating translated message descriptions. Disabled by |