use gcc not ld, don't compile surface.c yet
This commit is contained in:
parent
84a53a85fb
commit
422a770028
2 changed files with 4 additions and 4 deletions
4
Makefile
4
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 $^
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue