3 MAKEFILESDIR
= $(ROOTDIR
)/makefiles
5 include $(MAKEFILESDIR
)/config.mk
10 ALL_SUBDIRS
= src src
/migration src
/options src
/description src
/collection src
/bookmodel src
/formats src
/formats
/fb2 src
/formats
/docbook src
/formats
/html src
/formats
/pdb src
/formats
/txt src
/formats
/tcr src
/formats
/chm src
/formats
/xhtml src
/formats
/oeb src
/formats
/rtf src
/formats
/openreader src
/formats
/dummy src
/formats
/util src
/external src
/optionsDialog src
/fbreader src
/encodingOption
11 ALL_ARCHSUBDIRS
= desktop pdaxrom opie zaurus maemo openzaurus pma400 win32
13 SUBDIRS
= src
/migration src
/options src
/description src
/collection src
/bookmodel src
/formats src
/formats
/fb2 src
/formats
/html src
/formats
/pdb src
/formats
/txt src
/formats
/tcr src
/formats
/chm src
/formats
/xhtml src
/formats
/oeb src
/formats
/rtf src
/formats
/openreader src
/formats
/util src
/external src
/optionsDialog src
/fbreader src
/encodingOption
16 @for subdir in
$(SUBDIRS
); do \
17 if
! $(MAKE
) -C
$$subdir -f
$(MAKEFILESDIR
)/subdir.mk
; then \
21 @echo
-n
"Linking $(TARGET) ..."
22 # @$(LD) $(LDFLAGS) -o $(TARGET) `find src -name *.o` -L$(ROOTDIR)/zlibrary/text -lzltext $(CORE_LIBS)
23 # @$(LD) $(LDFLAGS) -o $(TARGET) `find src -name *.o` -L$(ROOTDIR)/zlibrary/text -lzltext $(CORE_LIBS)
24 $(LD
) $(LDFLAGS
) -shared
-Wl
,-soname
,$(TARGET
).so
-o
$(TARGET
).so
`find src -name *.o` -L
$(ROOTDIR
)/zlibrary
/text
-lzltext
$(CORE_LIBS
)
27 FBSHAREDIR
= $(DESTDIR
)$(subst %APPLICATION_PATH
%\\\\,/,$(SHAREDIR
))/FBReader
28 VARIANT
= $(TARGET_ARCH
)
29 ifneq "$(RESOLUTION)" ""
30 VARIANT
= $(TARGET_ARCH
)_
$(RESOLUTION
)
33 APPIMAGEDIR_REAL
= $(subst \\\\,/,$(subst %APPLICATION_PATH
%\\\\,/,$(subst %application_name
%,$(target
),$(subst %APPLICATION_NAME
%,$(TARGET
),$(APPIMAGEDIR
)))))
36 @
install -d
$(DESTDIR
)$(BINDIR
)
37 @
install $(TARGET
) $(DESTDIR
)$(BINDIR
)/FBReader
38 @
install -d
$(FBSHAREDIR
)
39 @
install -d
$(FBSHAREDIR
)/help
40 @.
/scripts
/install_help.sh
$(VARIANT
) $(FBSHAREDIR
)/help
41 @
install -d
$(FBSHAREDIR
)/formats
/html
42 @
install -m
0644 data
/formats
/html
/html.ent
$(FBSHAREDIR
)/formats
/html
43 @
install -d
$(FBSHAREDIR
)/formats
/xhtml
44 @
install -m
0644 $(wildcard data
/formats
/xhtml
/*.ent
) $(FBSHAREDIR
)/formats
/xhtml
45 @
install -d
$(FBSHAREDIR
)/default
46 @.
/scripts
/install_toolbar_and_menu.sh
$(VARIANT
) $(FBSHAREDIR
)/default
47 @
install -m
0644 data
/default
/external.
$(TARGET_ARCH
).xml
$(FBSHAREDIR
)/default
/external.xml
48 @if
[ -f data
/default
/messages.
$(TARGET_ARCH
).xml
]; then \
49 install -m
0644 data
/default
/messages.
$(TARGET_ARCH
).xml
$(FBSHAREDIR
)/default
/messages.xml
; \
51 @
install -d
$(FBSHAREDIR
)/resources
52 @
install -m
0644 $(wildcard data
/resources
/*.xml
) $(FBSHAREDIR
)/resources
53 @
install -d
$(DESTDIR
)$(APPIMAGEDIR_REAL
)
54 @
install -m
0644 $(wildcard icons
/toolbar
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
55 @
install -m
0644 $(wildcard icons
/filetree
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
56 @
install -m
0644 $(wildcard icons
/booktree
/$(VARIANT
)/*.
*) $(DESTDIR
)$(APPIMAGEDIR_REAL
)
57 @make
-C
$(TARGET_ARCH
) RESOLUTION
=$(RESOLUTION
) install
60 @for subdir in
$(ALL_SUBDIRS
); do \
61 $(MAKE
) -C
$$subdir -f
$(MAKEFILESDIR
)/subdir.mk
clean; \
63 @for subdir in
$(ALL_ARCHSUBDIRS
); do \
64 cd
$$subdir; make
clean; cd ..
; \