Browse Source

Add DEBUG variable that can specify to create a debugging build

tags/v1.0
Bernhard Fröhlich 5 years ago
parent
commit
06ea7667ca
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Makefile

+ 5
- 3
Makefile View File

@@ -10,12 +10,14 @@ STRIP	= strip
10 10
 PREFIX	= /usr/local
11 11
 BINDIR	= $(PREFIX)/bin
12 12
 
13
+ifeq ($(DEBUG),1)
13 14
 # for debugging
14
-#CFLAGS	+= -g -Wall
15
-#LDFLAGS	+= -pg
16
-
15
+CFLAGS	+= -g -Wall
16
+LDFLAGS	+= -pg
17
+else
17 18
 # for release
18 19
 CFLAGS	+= -O2
20
+endif
19 21
 
20 22
 # we need to link to libc/msvcrt
21 23
 ifeq ($(OS),Windows_NT)

Loading…
Cancel
Save