Skip to content

Commit 0b5b97a

Browse files
authored
Merge pull request #16 from fjtrujy/master
Add optimisation flags
2 parents 5bd3d58 + 8b96ed8 commit 0b5b97a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
DEBUG = 0
12

23
ifndef CC
34
CC = gcc
45
endif
56

67
CFLAGS = -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include
78

9+
ifeq ($(DEBUG), 1)
10+
CFLAGS += -O0 -g
11+
else
12+
CFLAGS += -O2
13+
endif
14+
815
ifneq "MINGW" "$(findstring MINGW,$(MSYSTEM))"
916
LIBS = -lpthread
1017
else

0 commit comments

Comments
 (0)