1 PREFIX = /mmc/mmca1/.system/QTDownLoad
3 LIBVERSION = $(shell cat zlibrary/VERSION)
4 LIBSOVERSION = $(shell cat zlibrary/SOVERSION)
5 APPVERSION = $(shell cat fbreader/VERSION)
8 @make TARGET_ARCH=moto UI_TYPE=ezx clean
11 @make -C zlibrary/core TARGET_ARCH=moto UI_TYPE=ezx
12 @make -C zlibrary/text TARGET_ARCH=moto UI_TYPE=ezx
13 @make -C zlibrary/ui TARGET_ARCH=moto UI_TYPE=ezx
14 @make -C fbreader TARGET_ARCH=moto UI_TYPE=ezx
17 @make -C zlibrary/core TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
18 @make -C zlibrary/text TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
19 @make -C zlibrary/ui TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
20 @install ../libs/moto/libexpat.so.1.5.2 $(DESTDIR)$(PREFIX)/fbreader/lib/libexpat.so.1
21 @install ../libs/moto/libbz2.so.1.0.4 $(DESTDIR)$(PREFIX)/fbreader/lib/libbz2.so.1.0
22 @rm $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBSOVERSION)
23 @mv $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBSOVERSION)
24 @rm $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBSOVERSION)
25 @mv $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBSOVERSION)
26 @make -C fbreader TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
29 @tar -czf FBReader-$(APPVERSION).pkg -C $(DESTDIR)$(PREFIX) .