diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-03-08 01:41:35 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-03-13 11:15:46 -0500 |
commit | c6c7769d9dd166c45bd9d422e91ca537752c0382 (patch) | |
tree | 487321af5a03f0644e8d22048484d642b54a5bf8 /sim/d10v | |
parent | 367c5eb75095f4b9bc4c1b310a092bcac45da137 (diff) | |
download | gdb-c6c7769d9dd166c45bd9d422e91ca537752c0382.zip gdb-c6c7769d9dd166c45bd9d422e91ca537752c0382.tar.gz gdb-c6c7769d9dd166c45bd9d422e91ca537752c0382.tar.bz2 |
sim: introduce {COMPILE,LINK}_FOR_BUILD
These use the same pattern as seen in the opcodes/ dir and in automake
in general (ish). This helps simplify the boilerplate for building and
linking build-time code, and fixes some inconsistency in flag usage.
For rules that were compiling+linking in a single step, split them into
separate steps so we can apply the correct set of options. This matches
automake behavior too.
Diffstat (limited to 'sim/d10v')
-rw-r--r-- | sim/d10v/ChangeLog | 5 | ||||
-rw-r--r-- | sim/d10v/Makefile.in | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog index cddd70c..c1deba1 100644 --- a/sim/d10v/ChangeLog +++ b/sim/d10v/ChangeLog @@ -1,3 +1,8 @@ +2021-03-13 Mike Frysinger <vapier@gentoo.org> + + * Makefile.in (gencode.o, d10v-opc.o): Call COMPILE_FOR_BUILD. + (gencode): Call LINK_FOR_BUILD. + 2021-03-08 Mike Frysinger <vapier@gentoo.org> * Makefile.in (gencode): Delete $(BUILD_LIB). diff --git a/sim/d10v/Makefile.in b/sim/d10v/Makefile.in index cb5159b..c2907fc 100644 --- a/sim/d10v/Makefile.in +++ b/sim/d10v/Makefile.in @@ -43,13 +43,13 @@ table.c: gencode simops.h ./gencode >$@ gencode.o: gencode.c $(INCLUDE) - $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(WARN_CFLAGS) -c $(srcdir)/gencode.c + $(COMPILE_FOR_BUILD) $(WARN_CFLAGS) -c $(srcdir)/gencode.c d10v-opc.o: $(srcdir)/../../opcodes/d10v-opc.c - $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(WARN_CFLAGS) -c $(srcdir)/../../opcodes/d10v-opc.c + $(COMPILE_FOR_BUILD) $(WARN_CFLAGS) -c $(srcdir)/../../opcodes/d10v-opc.c gencode: gencode.o d10v-opc.o - $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o gencode gencode.o d10v-opc.o + $(LINK_FOR_BUILD) gencode.o d10v-opc.o clean-extra: rm -f table.c simops.h gencode |