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