Build: Fix missing CFLAGS (used for sqlite3 amalgamation only)

master v3.2.0-RC0
heck 4 weeks ago
parent c3a8a75c48
commit 67e830123c
  1. 5
      Makefile.conf

@ -18,18 +18,23 @@ PREFIX?=$(HOME)
# Constants
CXXFLAGS+=-std=c++11 -fPIC -Wall -Wextra -pedantic
CXXFLAGS+=-I$(PREFIX)/include
CFLAGS+=-fPIC -pthread -DSQLITE_THREADSAFE=1
LDFLAGS+=-L$(PREFIX)/lib
ifneq (,$(findstring g++,$(CXX)))
CXXFLAGS+=-fdiagnostics-color=always
CFLAGS+=-fdiagnostics-color=always
else ifneq (,$(findstring clang,$(CXX)))
CXXFLAGS+=-fcolor-diagnostics
CFLAGS+=-fcolor-diagnostics
endif
ifeq ($(DEBUG),1)
CXXFLAGS+=-g -O0
CFLAGS+=-g -O0
else
CXXFLAGS+=-DNDEBUG=1 -O3
CFLAGS+=-DNDEBUG=1 -O3
endif
ifndef ENGINE_TEST

Loading…
Cancel
Save