From 6c0a67601bfe1c1d68e0e7076478d7488430f563 Mon Sep 17 00:00:00 2001 From: iridiumR Date: Thu, 30 Mar 2023 17:00:42 +0800 Subject: [PATCH] feat: update makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1201a22..b75b31b 100644 --- a/Makefile +++ b/Makefile @@ -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)