diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-01 14:16:58 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-10 01:15:28 -0500 |
commit | 1546cb45407f5228e8d4bdd948b7d0bc6c4d1b76 (patch) | |
tree | 1448cd5d161b4accc69ee8e0a5cdae51a3da2619 /sim/mips | |
parent | b7375a2dda6ca3b136a3835a78c18c9663aeb483 (diff) | |
download | gdb-1546cb45407f5228e8d4bdd948b7d0bc6c4d1b76.zip gdb-1546cb45407f5228e8d4bdd948b7d0bc6c4d1b76.tar.gz gdb-1546cb45407f5228e8d4bdd948b7d0bc6c4d1b76.tar.bz2 |
sim: mips: move arch-specific file compilation to top-level
The arch-specific compiler flags are duplicated, but they'll be cleaned
up once we move all subdir compiles to the top-level.
Diffstat (limited to 'sim/mips')
-rw-r--r-- | sim/mips/local.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sim/mips/local.mk b/sim/mips/local.mk index f255ffc..c25e50b 100644 --- a/sim/mips/local.mk +++ b/sim/mips/local.mk @@ -16,6 +16,11 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see <http://www.gnu.org/licenses/>. +AM_CPPFLAGS_%C% = \ + @SIM_MIPS_SUBTARGET@ \ + -DWITH_TARGET_WORD_BITSIZE=@SIM_MIPS_BITSIZE@ -DWITH_TARGET_WORD_MSB=WITH_TARGET_WORD_BITSIZE-1 \ + -DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=@SIM_MIPS_FPU_BITSIZE@ + %C%_GEN_OBJ = if SIM_MIPS_GEN_MODE_SINGLE %C%_GEN_OBJ += \ @@ -69,9 +74,6 @@ $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h noinst_LIBRARIES += %D%/libsim.a -%D%/%.o: %D%/%.c - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) - %D%/%.o: common/%.c $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) |