mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Make optimization flags configurable
This commit is contained in:
parent
9422a38b0d
commit
f257cda04a
4
Makefile
4
Makefile
|
@ -6,8 +6,10 @@ STRIP ?= strip
|
||||||
PKG_CONFIG ?= pkg-config
|
PKG_CONFIG ?= pkg-config
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
|
|
||||||
CFLAGS ?= -O3
|
CFLAGS_OPTIMIZATION ?= -O3
|
||||||
|
|
||||||
CFLAGS += -Wall -Wextra -Wno-unused-parameter
|
CFLAGS += -Wall -Wextra -Wno-unused-parameter
|
||||||
|
CFLAGS += $(CFLAGS_OPTIMIZATION)
|
||||||
|
|
||||||
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
|
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
|
||||||
CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
|
CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
|
||||||
|
|
Loading…
Reference in a new issue