fine tuned make file
This commit is contained in:
parent
4672dd14d8
commit
94311625d4
12
Makefile
12
Makefile
@ -1,15 +1,17 @@
|
||||
DEBUG:=0
|
||||
|
||||
LIBS:=ncurses readline history
|
||||
|
||||
CC:=gcc
|
||||
CFLAGS:=-Wall -Wextra -Wpedantic
|
||||
CFLAGS +=$(if $(DEBUG),-O0 -ggdb -Wall -Wpedantic,-O3 -flto=auto -fomit-frame-pointer)
|
||||
CFLAGS +=$(if $(SAN),-fsanitize=${SAN})
|
||||
CFLAGS += $(if $(SAN),-fsanitize=${SAN})
|
||||
CPPFLAGS:=-I config/ -I ${CHDRD} ${shell pkg-config --cflags ${LIBS}}
|
||||
LDLIBS=${shell pkg-config --libs ${LIBS}}
|
||||
LEX:=flex
|
||||
|
||||
ifeq (${DEBUG}, 1)
|
||||
CFLAGS += -O0 -ggdb -Wall -Wpedantic
|
||||
else
|
||||
CFLAGS += -O3 -flto=auto -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
LEXD:=source/
|
||||
LEXF:=$(shell find ${LEXD} -iname '*.l')
|
||||
GENLEX:=$(subst .l,.c,${LEXF})
|
||||
|
Loading…
x
Reference in New Issue
Block a user