ifeq ($(ZLIB), 1)
CXXFLAGS+= -DZLIB $(shell pkg-config --cflags zlib)
endif
LDFLAGS+=-L./core/ -g
LIBS+=-L./core/
ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
LDFLAGS+= -Wl,--as-needed
export CXXFLAGS
export LIBS
export LDFLAGS
ifeq ($(SQLITE), 1)
LIBS+= $(shell pkg-config --libs sqlite3)
LDFLAGS=