aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 06d3642..6451d3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,12 +10,19 @@ CC ?= gcc
CFLAGS = -Wall
DEBUG ?= 0
TEST ?= 0
+FAST ?= 0
ifeq ($(DEBUG), 1)
- CFLAGS += -DDEBUG -g -Werror -pedantic
+ CFLAGS += -DDEBUG -g -Og -Werror -pedantic
else ifeq ($(TEST), 1)
- CFLAGS += --coverage -g -O0
+ CFLAGS += -DNDEBUG --coverage -g -O0
+else ifeq ($(FAST), 1)
+ ifeq ($(CC), gcc)
+ CFLAGS += -DNDEBUG -O3 -march=native -pipe
+ else
+ CFLAGS += -DNDEBUG -O3
+ endif
else
- CFLAGS += -DNDEBUG -O3
+ CFLAGS += -DNDEBUG -O2
endif
LDFLAGS = -L../lib/parson -L../lib/sha1 -L../lib/pari