From a1af8f405cfa5bdb8c521768d662e322fc8dde63 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 31 Oct 2022 18:35:52 +0545 Subject: 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. --- sim/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/Makefile.am') 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 = \ -- cgit v1.1