Fixes #162 - Introduce a DEBUG compilation mode

This commit is contained in:
Stefan Arentz 2017-09-23 11:57:40 +00:00
parent fd6818e2ab
commit a38375554d
1 changed files with 10 additions and 2 deletions

View File

@ -23,8 +23,16 @@
UNAME := $(shell uname)
CC?=cc
CFLAGS=-std=gnu11 -O3 -flto -Wall -Wextra -Werror -Wno-unused-parameter -I/usr/include
LDFLAGS=-L/usr/local/lib -flto
CFLAGS=-std=gnu11 -Wall -Wextra -Werror -Wno-unused-parameter -I/usr/include
LDFLAGS=-L/usr/local/lib
ifndef DEBUG
CFLAGS += -O3 -flto
LDFLAGS += -flto
else
CFLAGS += -Og -g
LDFLAGS += -g
endif
LUA_LIBS=-llua
ifeq ($(UNAME), Linux)