aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Cunningham <cc@local.lan>2026-02-16 19:33:19 -0800
committerChristian Cunningham <cc@local.lan>2026-02-16 19:33:19 -0800
commitc4abc6fd218963eb1862181e1e70aedad4aef52e (patch)
treefc81d02c3d0770ade247f3a57ee18270fa52a502 /Makefile
parent69406994a70e15a2978fd1ad4e35f40db2af468b (diff)
Fix on some platforms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a5e3b60..17e06bb 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,7 @@ CFLAGS+=-Wall
LDFLAGS=
LDFLAGS+=$(shell $(PKGCONF) --libs $(PKGS))
+
default: clean build
.PHONY: clean build test run
@@ -83,11 +84,11 @@ build: $(PROGS)
$(BUILD_DIR)$(PROG_DIR)%: $(SRC_OBJ_DIR)%.o $(LIB_OBJS)
@echo LD --\> $@
- @gcc -o $@ $(LDFLAGS) $^
+ @gcc -o $@ $^ $(LDFLAGS)
build/test: $(TEST_OBJS) $(LIB_OBJS)
@echo LD --\> $@
- @gcc -o $@ $(LDFLAGS) $^
+ @gcc -o $@ $^ $(LDFLAGS)
$(SRC_OBJ_DIR)%.o: $(SRC_DIR)%.c
@echo CC $< --\> $@