Correct testing of source changes in Makefile
@@ -93,6 +93,10 @@ ifneq ($(filter release,$(TAGS)),)
CFLAGS += -O3
else ifneq ($(filter debug,$(TAGS)),)
CFLAGS += -g -O0
+ifneq ($(filter macosx,$(TAGS)),)
+CFLAGS += -fsanitize=address
+FFLAGS += -fsanitize=address
+endif
endif
# Include Configuration
@@ -162,7 +166,7 @@ $(OBJS)/vendor.o: $(INCLUDES)/vendor.c
@echo "==== Building vendor module ===="
$(CC) $(CFLAGS) -c $(INCLUDES)/vendor.c -o $(OBJS)/vendor.o $(IFLAGS)
-$(OBJS)/main.o: $(SOURCE)/**/*.c $(MODULES)/*.inc $(INCLUDES) $(WREN_LIB)
+$(OBJS)/main.o: $(SOURCE)/*.h $(SOURCE)/*.c $(MODULES)/*.c $(MODULES)/*.inc $(INCLUDES) $(WREN_LIB)
@mkdir -p $(OBJS)
@echo "==== Building core ($(TAGS)) module ===="
$(CC) $(CFLAGS) -c $(SOURCE)/main.c -o $(OBJS)/main.o $(IFLAGS)
