Add test and clean target

This commit is contained in:
Aoran Zeng 2023-08-30 09:54:35 +08:00
parent ea01f48171
commit 0f903c6501

View File

@ -6,3 +6,12 @@ TARGET = target
all:
@echo Compile
@gcc chsrc.c $(CFLAGS) -o $(TARGET)
test:
@gcc test_helper.c -o test
@./test
clean:
-@rm *.exe 2>/dev/null
-@rm $(TARGET) 2>/dev/null
-@rm ./test 2>/dev/null