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
20 ifeq "$(TARGET_STATUS)" "release"
24 ifeq "$(TARGET_STATUS)" "debug"
27 ifeq "$(TARGET_STATUS)" "profile"
31 ZINCLUDE
= -I
$(ROOTDIR
)/zlibrary
/core
/include -I
$(ROOTDIR
)/zlibrary
/text
/include
35 ifeq "$(ZLSHARED)" "yes"
36 CORE_LIBS
= -lm
-L
$(ROOTDIR
)/zlibrary
/core
-lzlcore
$(XML_LIB
) $(ARCHIVER_LIB
) -ldl
38 CORE_LIBS
= -lm
-L
$(ROOTDIR
)/zlibrary
/ui
-L
$(ROOTDIR
)/zlibrary
/core
-lzlcore
-lzlui-
$(UI_TYPE
) -lzlcore
$(UILIBS
) $(XML_LIB
) $(ARCHIVER_LIB
)
42 ifneq "$(BUILD_RESOURCE_OBJECT)" "yes"