Browse Source

Make optimization flags configurable

master
Sijmen J. Mulder 5 years ago
parent
commit
f257cda04a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Makefile

+ 3
- 1
Makefile View File

@@ -6,8 +6,10 @@ STRIP ?= strip
PKG_CONFIG ?= pkg-config
INSTALL ?= install

CFLAGS ?= -O3
CFLAGS_OPTIMIZATION ?= -O3

CFLAGS += -Wall -Wextra -Wno-unused-parameter
CFLAGS += $(CFLAGS_OPTIMIZATION)

ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)


Loading…
Cancel
Save