font settings
[lbook_fbreader.git] / makefiles / config.mk
blobb04456b9536c9484b91f1416a30c0546ff6c526d
1 include $(ROOTDIR)/makefiles/platforms.mk
3 VERSION = $(shell cat $(ROOTDIR)/fbreader/VERSION)
4 MAKE = make ROOTDIR=$(ROOTDIR)
5 LIBMAKE = $(MAKE) ZLSHARED=$(ZLSHARED)
7 include $(ROOTDIR)/makefiles/arch/$(TARGET_ARCH).mk
9 BINDIR ?= $(INSTALLDIR)/bin
10 LIBDIR ?= $(INSTALLDIR)/lib
11 INCDIR ?= $(INSTALLDIR)/include
12 SHAREDIR ?= $(INSTALLDIR)/share
13 BASEDIR ?= $(SHAREDIR)
15 CFLAGS += -DINSTALLDIR=\"$(INSTALLDIR)\" -DBASEDIR=\"$(BASEDIR)\" -DLIBDIR=\"$(LIBDIR)\" -DIMAGEDIR=\"$(IMAGEDIR)\" -DAPPIMAGEDIR=\"$(APPIMAGEDIR)\" -DVERSION=\"$(VERSION)\"
16 ifeq "$(ZLSHARED)" "yes"
17 CFLAGS += -fPIC -DZLSHARED
18 endif
20 ifeq "$(TARGET_STATUS)" "release"
21 CFLAGS += -O3
22 LDFLAGS += -s
23 endif
24 ifeq "$(TARGET_STATUS)" "debug"
25 CFLAGS += -O0 -ggdb3
26 endif
27 ifeq "$(TARGET_STATUS)" "profile"
28 CFLAGS += -O3 -g -pg
29 endif
31 ZINCLUDE = -I $(ROOTDIR)/zlibrary/core/include -I $(ROOTDIR)/zlibrary/text/include
33 ZLSHARED ?= yes
35 ifeq "$(ZLSHARED)" "yes"
36 CORE_LIBS = -lm -L$(ROOTDIR)/zlibrary/core -lzlcore $(XML_LIB) $(ARCHIVER_LIB) -ldl
37 else
38 CORE_LIBS = -lm -L$(ROOTDIR)/zlibrary/ui -L$(ROOTDIR)/zlibrary/core -lzlcore -lzlui-$(UI_TYPE) -lzlcore $(UILIBS) $(XML_LIB) $(ARCHIVER_LIB)
40 endif
42 ifneq "$(BUILD_RESOURCE_OBJECT)" "yes"
43 .resources:
44 endif