We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2370357 commit 567414dCopy full SHA for 567414d
1 file changed
tools/Makefile
@@ -54,11 +54,13 @@ install:
54
cp -av bin/win/* ../sduino/hardware/sduino/tools/win
55
56
# rules for compiling stm8gal
57
+# To pass the extra CFLAGS and LDFLAGS we need a temporary (modified) Makefile
58
stm8gal-linux32:
- sed '/FLAGS/ s/ = / += /' stm8gal/Makefile > stm8gal/Makefile.linux32
59
- CFLAGS=-m32 LDFLAGS=-m32 make -C stm8gal -f Makefile.linux32 clean all
+ TMPMF=$$(mktemp); \
60
+ sed '/FLAGS/ s/ = / += /' stm8gal/Makefile > $$TMPMF; \
61
+ CFLAGS=-m32 LDFLAGS=-m32 make -C stm8gal -f $$TMPMF clean all; \
62
+ rm -f $$TMPMF
63
install -s -D stm8gal/stm8gal $(BINDIR)/linux32/stm8gal
- rm -f stm8gal/Makefile.linux32
64
65
stm8gal-linux64:
66
make -C stm8gal clean all
0 commit comments