summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorJ08nY2017-04-05 21:07:44 +0200
committerJ08nY2017-04-05 21:07:44 +0200
commit6ef98279d0a9b9dfebbe2620e50da9cbea0cbd56 (patch)
treea4328f8f7fecb013341340c563a2fa02134664c6 /src/Makefile
parent9718963a643f0ae15120ceea2d26899892ab1ed4 (diff)
downloadecgen-6ef98279d0a9b9dfebbe2620e50da9cbea0cbd56.tar.gz
ecgen-6ef98279d0a9b9dfebbe2620e50da9cbea0cbd56.tar.zst
ecgen-6ef98279d0a9b9dfebbe2620e50da9cbea0cbd56.zip
Update README and Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 40843c6..a149946 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,8 +7,14 @@
CC ?= gcc
-CFLAGS = -O3 -Wall
-LDFLAGS = -L../lib/parson -L../lib/sha1
+CFLAGS = -Wall
+DEBUG ?= 1
+ifeq (DEBUG, 1)
+ CFLAGS += -g -DDEBUG
+else
+ CFLAGS += -O3 -DNDEBUG
+endif
+LDFLAGS = -L../lib/parson -L../lib/sha1 -L../lib/pari
INCLUDES = -I. -I../lib
LIBS = -lrt -lpari -lparson