aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
commit65a96128f7dba2cd65a4e3118f79c3543036111a (patch)
tree6b8a5ed3610f5ba5713ceea2ff5fa821a0fc8f01
parentAdd codeberg CI (diff)
downloadfases-master.tar.gz
fases-master.zip
common.mk, sh/Makefile: s/$(NOLINKER)/-c/gHEADmaster
I previously changed this in the main Makefile but forgot to port it over to the other Makefiles.
-rw-r--r--common.mk2
-rw-r--r--sh/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index e5a0592..ca4f661 100644
--- a/common.mk
+++ b/common.mk
@@ -17,7 +17,7 @@ config:
[ ! -e $< ] || $(CC) $(CFLAGS) $< ../common/common.c -o $@
.c.o:
- [ ! -e $< ] || $(CC) $(CFLAGS) $(NOLINKER) $< -o $@
+ [ ! -e $< ] || $(CC) $(CFLAGS) -c $< -o $@
# Cleaning
clean:
diff --git a/sh/Makefile b/sh/Makefile
index 6c07f68..b3543a7 100644
--- a/sh/Makefile
+++ b/sh/Makefile
@@ -27,4 +27,4 @@ sh.o:
echo "#define COMPILETIME \"$$(date)\"" >> version.h
echo >> version.h
echo "#endif" >> version.h
- for s in *.c; do $(CC) $(CFLAGS) $(NOLINKER) $$s -o $${s%.c}.o; done
+ for s in *.c; do $(CC) $(CFLAGS) -c $$s -o $${s%.c}.o; done