mirror of
https://github.com/st3fan/ewm.git
synced 2025-01-18 01:29:44 +00:00
Fixes #162 - Introduce a DEBUG compilation mode
This commit is contained in:
parent
fd6818e2ab
commit
a38375554d
12
src/Makefile
12
src/Makefile
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user