Edit Makefiles

This commit is contained in:
Lucàs
2023-04-07 20:46:57 +02:00
parent f2e325c0e7
commit 94d40754b6
3 changed files with 20 additions and 12 deletions
+17
View File
@@ -0,0 +1,17 @@
SRC_FOLDER=src/
TEST_FOLDER=tests/
all: compile
compile:
$(MAKE) -C $(SRC_FOLDER)
.PHONY: clean tests
tests: compile
./$(SRC_FOLDER)comp ./$(TEST_FOLDER)rectangles.c ./$(TEST_FOLDER)out/rectangles.ps
./$(SRC_FOLDER)comp ./$(TEST_FOLDER)progsimple.c ./$(TEST_FOLDER)out/progsimple.ps
clean:
$(MAKE) $@ -C $(SRC_FOLDER)