diff --git a/Makefile b/Makefile index 7ee0810..b6d58a7 100644 --- a/Makefile +++ b/Makefile @@ -16,16 +16,15 @@ TEST_SRC = $(filter-out src/main.c, $(SRC) $(wildcard test/*.c)) $(TARGETNAME): $(TARGET) $(TARGET): $(SRC) - mkdir -p build + mkdir -p $(BUILDFOLDER) cc -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(INC) -lm -lftdi1 $(TEST_TARGETNAME): $(TEST_TARGET) $(TEST_TARGET): $(TEST_SRC) - echo $(TEST_SRC) mkdir -p $(TEST_BUILDFOLDER) cc -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(INC) -lm -lftdi1 -lcunit clean: - rm -fr ./src/*.o ./build/* + rm -fr ./src/*.o $(BUILDFOLDER)* rm -fr $(TEST_BUILDFOLDER)*