summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)