feat: update makefile

This commit is contained in:
iridiumR 2023-03-30 17:00:42 +08:00
parent 4171428076
commit 6c0a67601b
No known key found for this signature in database
GPG key ID: 49735733EB1A32C8

View file

@ -7,18 +7,22 @@ DBGOBJ = $(SRC:.c=.do)
EXE = dish
DBGEXE = ddish
a:all
all:release debug
debug: CFLAGS = -g -O0 -DDEBUG
release: CFLAGS = -Wall -O3
r:release
release: $(OBJ)
$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LINK)
d:debug
debug: $(DBGOBJ)
$(CC) $(CFLAGS) -o $(DBGEXE) $(DBGOBJ) $(LINK)
c: clean
clean:
rm -f *.o *.do *.ro
rm -f *.o *.do *.ro dish ddish
$(OBJ):$(SRC)
$(CC) $(CFLAGS) -c $(SRC)