From 121aabb9f20ec3e70c91203fadbdcc77bc306b12 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 29 Mar 2026 10:07:30 +1100 Subject: refactor(Makefile): Use INCLUDES varible to store including directories --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5ed5f9d..c461f0c 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ SANFLAGS = -fsanitize=address,undefined -g -O1 SRC = $(shell find src -name "*.c") ifeq ($(USE_HOSTED),1) -SRC += $(wildcard bridges/*.c) +INCLUDES += -Iinclude/bridges +CFLAGS += -DUSE_HOSTED +SRC += $(wildcard include/bridges/*.c) endif OBJ = $(patsubst %.c,$(OUTDIR)/%.o,$(SRC)) @@ -29,7 +31,6 @@ $(OUTDIR)/%.o: %.c mkdir -p $(dir $@) $(CC) $(CFLAGS) -c $< -o $@ - clean: rm -rf $(OUTDIR) -- cgit v1.2.3