diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-29 10:07:30 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-29 10:07:30 +1100 |
| commit | 121aabb9f20ec3e70c91203fadbdcc77bc306b12 (patch) | |
| tree | 2981b95ac70f911aa8f5de3903c0f5a9d6114e1a | |
| parent | c57380ed3e5c54c9325806a8b5135c7654c34b6f (diff) | |
refactor(Makefile): Use INCLUDES varible to store including directories
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |
