diff --git a/Makefile b/Makefile index 6b8e83b..f8ff06b 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ UNITS=main lib/vec lib/sv parser/ast parser/parser OBJECTS:=$(patsubst %,$(DIST)/%.o, $(UNITS)) LDFLAGS= -GFLAGS=-Wall -Wextra -Wpedantic -std=c23 -I./src/ +GFLAGS=-Wall -Wextra -Wpedantic -std=c23 -I./include/ DFLAGS=-ggdb -fsanitize=address -fsanitize=undefined RFLAGS=-O3 @@ -26,7 +26,7 @@ DEPDIR=$(DIST)/deps $(OUT): $(OBJECTS) | $(DIST) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -$(DIST)/%.o: src/arl/%.c | $(DIST) $(DEPDIR) +$(DIST)/%.o: src/%.c | $(DIST) $(DEPDIR) $(CC) $(CFLAGS) $(DEPFLAGS) $(DEPDIR)/$*.d -c -o $@ $< $(DIST): diff --git a/src/arl/lib/base.h b/include/arl/lib/base.h similarity index 100% rename from src/arl/lib/base.h rename to include/arl/lib/base.h diff --git a/src/arl/lib/sv.h b/include/arl/lib/sv.h similarity index 100% rename from src/arl/lib/sv.h rename to include/arl/lib/sv.h diff --git a/src/arl/lib/vec.h b/include/arl/lib/vec.h similarity index 100% rename from src/arl/lib/vec.h rename to include/arl/lib/vec.h diff --git a/src/arl/parser/ast.h b/include/arl/parser/ast.h similarity index 100% rename from src/arl/parser/ast.h rename to include/arl/parser/ast.h diff --git a/src/arl/parser/parser.h b/include/arl/parser/parser.h similarity index 100% rename from src/arl/parser/parser.h rename to include/arl/parser/parser.h diff --git a/src/arl/lib/sv.c b/src/lib/sv.c similarity index 100% rename from src/arl/lib/sv.c rename to src/lib/sv.c diff --git a/src/arl/lib/vec.c b/src/lib/vec.c similarity index 100% rename from src/arl/lib/vec.c rename to src/lib/vec.c diff --git a/src/arl/main.c b/src/main.c similarity index 100% rename from src/arl/main.c rename to src/main.c diff --git a/src/arl/parser/ast.c b/src/parser/ast.c similarity index 100% rename from src/arl/parser/ast.c rename to src/parser/ast.c diff --git a/src/arl/parser/parser.c b/src/parser/parser.c similarity index 100% rename from src/arl/parser/parser.c rename to src/parser/parser.c