summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-29 10:07:30 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-29 10:07:30 +1100
commit121aabb9f20ec3e70c91203fadbdcc77bc306b12 (patch)
tree2981b95ac70f911aa8f5de3903c0f5a9d6114e1a
parentc57380ed3e5c54c9325806a8b5135c7654c34b6f (diff)
refactor(Makefile): Use INCLUDES varible to store including directories
-rw-r--r--Makefile5
1 files 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)