chsrc/Makefile

24 lines
355 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
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
2023-09-05 09:32:42 +08:00
test: $(TARGET)
2023-09-02 20:06:05 +08:00
./$(TARGET) list mirror
./$(TARGET) list target
./$(TARGET) get ruby
./$(TARGET) get python
2023-09-05 09:32:42 +08:00
test_xy:
@gcc test_xy.c -o xy
@./xy
2023-08-30 09:54:35 +08:00
clean:
-@rm *.exe 2>/dev/null
-@rm $(TARGET) 2>/dev/null
2023-09-05 09:32:42 +08:00
-@rm ./xy 2>/dev/null