diff --git a/Makefile b/Makefile index fae0308..2644b81 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # License : GPLv3 # Authors : Aoran Zeng # Created on : <2023-08-28> -# Last modified : <2023-09-20> +# Last modified : <2024-05-24> # --------------------------------------------------------------- CFLAGS = # -Wall @@ -37,12 +37,12 @@ test: $(TARGET) ./$(TARGET) get ruby ./$(TARGET) get python -.PHONY: xy -xy: - @$(CC) test_xy.c -o xy - @./xy +test_xy: + @mkdir -p build + @$(CC) test/xy.c -o build/xy + @./build/xy clean: -@rm *.exe 2>/dev/null -@rm $(TARGET) 2>/dev/null - -@rm ./xy 2>/dev/null + -@rm ./build/* 2>/dev/null diff --git a/test_xy.c b/test/xy.c similarity index 97% rename from test_xy.c rename to test/xy.c index 85056a7..63c3516 100644 --- a/test_xy.c +++ b/test/xy.c @@ -1,16 +1,16 @@ /** ------------------------------------------------------------ - * File : test_xy.c + * File : xy.c * License : MIT * Authors : Aoran Zeng * Created on : <2023-08-30> - * Last modified : <2024-04-18> + * Last modified : <2024-05-24> * * test_xy: * * 测试 xy.h * ------------------------------------------------------------*/ -#include "xy.h" +#include "../xy.h" int main (int argc, char const *argv[])