chsrc/Makefile

25 lines
409 B
Makefile
Raw Normal View History

2023-08-28 22:21:33 +08:00
CFLAGS =
2023-09-02 20:06:05 +08:00
TARGET = chsrc
TEST_TARGET = test_$(TARGET)
2023-08-28 22:21:33 +08:00
#=======================
all:
@echo Compile
@gcc chsrc.c $(CFLAGS) -o $(TARGET)
2023-08-30 09:54:35 +08:00
test:
2023-09-03 14:58:13 +08:00
@gcc test_xy.c -o $(TEST_TARGET)
@./$(TEST_TARGET)
2023-08-30 09:54:35 +08:00
2023-09-02 20:06:05 +08:00
test_cmd: $(TARGET)
./$(TARGET) list mirror
./$(TARGET) list target
./$(TARGET) get ruby
./$(TARGET) get python
2023-08-30 09:54:35 +08:00
clean:
-@rm *.exe 2>/dev/null
-@rm $(TARGET) 2>/dev/null
-@rm ./test 2>/dev/null