feat: update makefile
This commit is contained in:
parent
4171428076
commit
6c0a67601b
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -7,18 +7,22 @@ DBGOBJ = $(SRC:.c=.do)
|
||||||
EXE = dish
|
EXE = dish
|
||||||
DBGEXE = ddish
|
DBGEXE = ddish
|
||||||
|
|
||||||
|
a:all
|
||||||
all:release debug
|
all:release debug
|
||||||
debug: CFLAGS = -g -O0 -DDEBUG
|
debug: CFLAGS = -g -O0 -DDEBUG
|
||||||
release: CFLAGS = -Wall -O3
|
release: CFLAGS = -Wall -O3
|
||||||
|
|
||||||
|
r:release
|
||||||
release: $(OBJ)
|
release: $(OBJ)
|
||||||
$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LINK)
|
$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LINK)
|
||||||
|
|
||||||
|
d:debug
|
||||||
debug: $(DBGOBJ)
|
debug: $(DBGOBJ)
|
||||||
$(CC) $(CFLAGS) -o $(DBGEXE) $(DBGOBJ) $(LINK)
|
$(CC) $(CFLAGS) -o $(DBGEXE) $(DBGOBJ) $(LINK)
|
||||||
|
|
||||||
|
c: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.do *.ro
|
rm -f *.o *.do *.ro dish ddish
|
||||||
|
|
||||||
$(OBJ):$(SRC)
|
$(OBJ):$(SRC)
|
||||||
$(CC) $(CFLAGS) -c $(SRC)
|
$(CC) $(CFLAGS) -c $(SRC)
|
||||||
|
|
Loading…
Reference in a new issue