diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-10-31 18:35:52 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-03 12:55:19 +0545 |
commit | a1af8f405cfa5bdb8c521768d662e322fc8dde63 (patch) | |
tree | 87086f1507a5623eb63f0ca72c44efc47baf56e9 /sim/Makefile.am | |
parent | 46a1e1f20b1192da31104f9ed436ea33328c79d4 (diff) | |
download | gdb-a1af8f405cfa5bdb8c521768d662e322fc8dde63.zip gdb-a1af8f405cfa5bdb8c521768d662e322fc8dde63.tar.gz gdb-a1af8f405cfa5bdb8c521768d662e322fc8dde63.tar.bz2 |
sim: move common flags to default AM_CPPFLAGS
Since all host files we compile use these settings, move them out of
libcommon.a and into the default AM_CPPFLAGS. This has the effect of
dropping the custom per-target automake rules. Currently it saves us
~150 lines, but since it's about ~8 lines per object, the overhead
will increase quite a bit as we merge more files into a single build.
This also changes the object output names, so we have to tweak the
rules that were pulling in the common objects when linking.
Diffstat (limited to 'sim/Makefile.am')
-rw-r--r-- | sim/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/Makefile.am b/sim/Makefile.am index d312502..d8730f2 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -44,6 +44,8 @@ AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) AM_CPPFLAGS = \ $(INCGNU) \ -I$(srcroot)/include \ + -I../bfd \ + -I.. \ $(SIM_INLINE) AM_CPPFLAGS_FOR_BUILD = \ |