From 422a7700284d76e7597c38c70116722bbd911ee4 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sun, 28 Sep 2025 13:18:48 +1000 Subject: [PATCH] use gcc not ld, don't compile surface.c yet --- Makefile | 4 ++-- config.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 56a363a..7a0ad5c 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,8 @@ all: tests .PHONY: tests tests: $(BIN) $(BIN)/ct_test -$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o surface.o) - $(LD) -o $@ $(filter %.o, $^) +$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o termio.o) + $(LD) $(LDFLAGS) -o $@ $(filter %.o, $^) $(BUILD)/%.o: $(SRC)/%.c $(CC) $(CFLAGS) -o $@ -c $^ diff --git a/config.mk b/config.mk index 0e551a9..5ddb16a 100644 --- a/config.mk +++ b/config.mk @@ -6,8 +6,8 @@ CFLAGS := -Wall -Wextra -O CDEBUG := -g # === Linker Configuration === -LD := ld -LDFLAGS := +LD := gcc +LDFLAGS := -lc # === GNU Make Configuration === # GMAKE_JOBS defaults to the number of available logical processors