summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-02 13:13:27 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-02 13:13:27 -0500
commit097e4e408e8ebf4ffe5b95263732d9e52207fcc5 (patch)
treecdbc92f253e73ca9ae76d7a821a903e3a1b4370d
parentaa2c7727b1ee7b3747681f6b78f9ef0d36beb749 (diff)
only one CFLAGS, please
-rwxr-xr-xmkmf.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/mkmf.sh b/mkmf.sh
index fbf1a3bb..3172ea26 100755
--- a/mkmf.sh
+++ b/mkmf.sh
@@ -25,8 +25,7 @@ if [ -f src/${STANDARD}/DEPS.mk ]; then
fi
if grep -q 'CFLAGS' src/${STANDARD}/DEPS.mk; then
- #grep 'CFLAGS' src/${STANDARD}/DEPS.mk > .cflags.mk
- grep 'CFLAGS' src/${STANDARD}/DEPS.mk | sed -e 's/CFLAGS/STD_CFLAGS/' >> .cflags.mk
+ grep 'CFLAGS' src/${STANDARD}/DEPS.mk | sed -e 's/CFLAGS/STD_CFLAGS/' > .cflags.mk
fi
fi
@@ -106,7 +105,7 @@ if [ $(cat .dep/to-build) = ${STANDARD} ]; then
cat .dep/*.o.mk >> .deps.mk
- printf '$(OBJDIR)/$(ARCH)-$(WORDSIZE).o: src/internal/$(ARCH)-$(WORDSIZE).s\n\t-@mkdir -p $(OBJDIR)\n\t$(CC) $(CFLAGS) -c $? -o $@\n\n' >> .deps.mk
+ printf '$(OBJDIR)/$(ARCH)-$(WORDSIZE).o: src/9899-1990/nonstd/$(ARCH)-$(WORDSIZE).s\n\t-@mkdir -p $(OBJDIR)\n\t$(CC) $(CFLAGS) -c $? -o $@\n\n' >> .deps.mk
printf 'all:' >> .deps.mk
for i in .dep/lib*.a.mk; do