diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-26 23:20:46 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-10 01:15:26 -0500 |
commit | bc438b3e5931e7af87bf51b1365d9401cd69d519 (patch) | |
tree | 97a671822dee0e75c31038258f8fd84815a059b1 /sim/common | |
parent | 54e26255ca9e1e39b1c5d091809c3afe350c3d01 (diff) | |
download | fsf-binutils-gdb-bc438b3e5931e7af87bf51b1365d9401cd69d519.zip fsf-binutils-gdb-bc438b3e5931e7af87bf51b1365d9401cd69d519.tar.gz fsf-binutils-gdb-bc438b3e5931e7af87bf51b1365d9401cd69d519.tar.bz2 |
sim: build: add basic framework for compiling arch objects in top-level
The code so far has been assuming that we only compile common/ objects.
Now that we're ready to compile arch-specific objects, refactor some of
the flags & checks a bit to support both.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/defs.h | 2 | ||||
-rw-r--r-- | sim/common/local.mk | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sim/common/defs.h b/sim/common/defs.h index bbaee4e..0f4062c 100644 --- a/sim/common/defs.h +++ b/sim/common/defs.h @@ -35,7 +35,7 @@ #undef PACKAGE_VERSION /* Include common sim's various configure tests. */ -#ifndef SIM_COMMON_BUILD +#ifndef SIM_TOPDIR_BUILD #include "../config.h" #else #include "config.h" diff --git a/sim/common/local.mk b/sim/common/local.mk index debb55d..32b5db6 100644 --- a/sim/common/local.mk +++ b/sim/common/local.mk @@ -20,7 +20,8 @@ AM_CPPFLAGS += \ -I$(srcdir)/%D% \ - -DSIM_COMMON_BUILD + -DSIM_TOPDIR_BUILD +AM_CPPFLAGS_%C% = -DSIM_COMMON_BUILD AM_CPPFLAGS_FOR_BUILD += -I$(srcdir)/%D% ## This makes sure common parts are available before building the arch-subdirs |