Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e0504f

Browse files
committed
Add debug target
1 parent 2d23563 commit 6e0504f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ch9/oom_killer_try/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ CC := ${CROSS_COMPILE}gcc
88
all: ${ALL}
99
oom_killer_try: oom_killer_try.c
1010
${CC} -O2 oom_killer_try.c -o oom_killer_try -Wall
11+
oom_killer_try_dbg: oom_killer_try.c
12+
${CC} -O0 -g -ggdb -DDEBUG oom_killer_try.c -o oom_killer_try_dbg -Wall
1113
clean:
1214
rm -v -f ${ALL}

0 commit comments

Comments
 (0)