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
|
.PHONY: tests
|
||||||
tests: $(BIN) $(BIN)/ct_test
|
tests: $(BIN) $(BIN)/ct_test
|
||||||
|
|
||||||
$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o surface.o)
|
$(BIN)/ct_test: $(BUILD) $(addprefix $(BUILD)/, ct_test.o term.o termio.o)
|
||||||
$(LD) -o $@ $(filter %.o, $^)
|
$(LD) $(LDFLAGS) -o $@ $(filter %.o, $^)
|
||||||
|
|
||||||
$(BUILD)/%.o: $(SRC)/%.c
|
$(BUILD)/%.o: $(SRC)/%.c
|
||||||
$(CC) $(CFLAGS) -o $@ -c $^
|
$(CC) $(CFLAGS) -o $@ -c $^
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ CFLAGS := -Wall -Wextra -O
|
||||||
CDEBUG := -g
|
CDEBUG := -g
|
||||||
|
|
||||||
# === Linker Configuration ===
|
# === Linker Configuration ===
|
||||||
LD := ld
|
LD := gcc
|
||||||
LDFLAGS :=
|
LDFLAGS := -lc
|
||||||
|
|
||||||
# === GNU Make Configuration ===
|
# === GNU Make Configuration ===
|
||||||
# GMAKE_JOBS defaults to the number of available logical processors
|
# GMAKE_JOBS defaults to the number of available logical processors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue