From 65a96128f7dba2cd65a4e3118f79c3543036111a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 27 Jul 2024 08:00:00 +0800 Subject: common.mk, sh/Makefile: s/$(NOLINKER)/-c/g I previously changed this in the main Makefile but forgot to port it over to the other Makefiles. --- common.mk | 2 +- sh/Makefile | 2 +- 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 -- cgit v1.2.3