OLD | NEW |
1 #****************************************************************************** | 1 #****************************************************************************** |
2 # | 2 # |
3 # Copyright (C) 1998-2013, International Business Machines | 3 # Copyright (C) 1998-2014, International Business Machines |
4 # Corporation and others. All Rights Reserved. | 4 # Corporation and others. All Rights Reserved. |
5 # | 5 # |
6 #****************************************************************************** | 6 #****************************************************************************** |
7 ## Top-level Makefile.in for ICU | 7 ## Top-level Makefile.in for ICU |
8 ## Stephen F. Booth | 8 ## Stephen F. Booth |
9 | 9 |
10 srcdir = @srcdir@ | 10 srcdir = @srcdir@ |
11 top_srcdir = @top_srcdir@ | 11 top_srcdir = @top_srcdir@ |
12 | 12 |
13 top_builddir = . | 13 top_builddir = . |
14 | 14 |
15 include $(top_builddir)/icudefs.mk | 15 include $(top_builddir)/icudefs.mk |
16 | 16 |
17 docdir = $(datadir)/doc | 17 docdir = $(datadir)/doc |
18 docsubdir = $(PACKAGE)$(ICULIBDASHSUFFIX)/html | 18 docsubdir = $(PACKAGE)$(ICULIBDASHSUFFIX)/html |
19 docfilesdir = doc/html | 19 docfilesdir = doc/html |
20 docfiles = $(docfilesdir)/*.png $(docfilesdir)/*.html $(docfilesdir)/*.css $(doc
filesdir)/*.tag | 20 docfiles = $(docfilesdir)/*.png $(docfilesdir)/*.html $(docfilesdir)/*.css $(doc
filesdir)/*.tag |
21 docsrchdir = $(docfilesdir)/search | 21 docsrchdir = $(docfilesdir)/search |
22 docsrchfiles = $(docsrchdir)/* | 22 docsrchfiles = $(docsrchdir)/* |
23 | 23 |
24 ## | 24 ## |
25 | 25 |
26 ## Build directory information | 26 ## Build directory information |
27 subdir = . | 27 subdir = . |
28 | 28 |
29 #AUTOCONF = @AUTOCONF@ | 29 #AUTOCONF = @AUTOCONF@ |
30 | 30 |
31 ## Optional directory setup | 31 ## Optional directory setup |
32 @LAYOUT_TRUE@LAYOUT = layout layoutex | 32 @LAYOUT_TRUE@LAYOUT = layout |
| 33 @LAYOUTEX_TRUE@LAYOUTEX = layoutex |
33 @ICUIO_TRUE@ICUIO = io | 34 @ICUIO_TRUE@ICUIO = io |
34 @EXTRAS_TRUE@EXTRA = extra | 35 @EXTRAS_TRUE@EXTRA = extra |
35 @TESTS_TRUE@TEST = test | 36 @TESTS_TRUE@TEST = test |
36 @SAMPLES_TRUE@SAMPLE = samples | 37 @SAMPLES_TRUE@SAMPLE = samples |
37 @TOOLS_TRUE@TOOLS = tools | 38 @TOOLS_TRUE@TOOLS = tools |
38 | 39 |
39 ## pkgconfig setup. Always have uc and i18n. Others are optional. | 40 ## pkgconfig setup. Always have uc and i18n. Others are optional. |
40 ALL_PKGCONFIG_SUFFIX=uc i18n | 41 ALL_PKGCONFIG_SUFFIX=uc i18n |
41 @LAYOUT_TRUE@ALL_PKGCONFIG_SUFFIX+= le lx | 42 @LAYOUT_TRUE@ALL_PKGCONFIG_SUFFIX+= le |
| 43 @LAYOUTEX_TRUE@ALL_PKGCONFIG_SUFFIX+= lx |
42 @ICUIO_TRUE@ALL_PKGCONFIG_SUFFIX+= io | 44 @ICUIO_TRUE@ALL_PKGCONFIG_SUFFIX+= io |
43 | 45 |
44 DOXYGEN = @DOXYGEN@ | 46 DOXYGEN = @DOXYGEN@ |
45 DOCZIP = icu-docs.zip | 47 DOCZIP = icu-docs.zip |
46 | 48 |
47 ## Files to remove for 'make clean' | 49 ## Files to remove for 'make clean' |
48 CLEANFILES = *~ | 50 CLEANFILES = *~ |
49 | 51 |
50 ALL_PKGCONFIG_FILES=$(ALL_PKGCONFIG_SUFFIX:%=$(top_builddir)/config/icu-%.pc) | 52 ALL_PKGCONFIG_FILES=$(ALL_PKGCONFIG_SUFFIX:%=$(top_builddir)/config/icu-%.pc) |
51 | 53 |
52 ## Files built (autoconfed) and installed | 54 ## Files built (autoconfed) and installed |
53 INSTALLED_BUILT_FILES = $(top_builddir)/config/Makefile.inc $(top_builddir)/conf
ig/pkgdata.inc $(top_builddir)/config/icu-config @platform_make_fragment@ $(EXTR
A_DATA:%=$(DESTDIR)$(pkglibdir)/%) $(ALL_PKGCONFIG_FILES) | 55 INSTALLED_BUILT_FILES = $(top_builddir)/config/Makefile.inc $(top_builddir)/conf
ig/pkgdata.inc $(top_builddir)/config/icu-config @platform_make_fragment@ $(EXTR
A_DATA:%=$(DESTDIR)$(pkglibdir)/%) $(ALL_PKGCONFIG_FILES) |
54 | 56 |
55 ## Files built (autoconfed) but not installed | 57 ## Files built (autoconfed) but not installed |
56 LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc | 58 LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc |
57 | 59 |
58 DOCDIRS = common i18n | 60 DOCDIRS = common i18n |
59 SUBDIRS = stubdata common i18n $(LAYOUT) $(ICUIO) $(TOOLS) data $(EXTRA) $(SAMP
LE) $(TEST) | 61 SUBDIRS = stubdata common i18n $(LAYOUT) $(LAYOUTEX) $(ICUIO) $(TOOLS) data $(E
XTRA) $(SAMPLE) $(TEST) |
60 | 62 |
61 SECTION = 1 | 63 SECTION = 1 |
62 | 64 |
63 MANX_FILES = config/icu-config.$(SECTION) | 65 MANX_FILES = config/icu-config.$(SECTION) |
64 | 66 |
65 ALL_MAN_FILES = $(MANX_FILES) | 67 ALL_MAN_FILES = $(MANX_FILES) |
66 | 68 |
67 ## Extra files to install [nothing at present] | 69 ## Extra files to install [nothing at present] |
68 EXTRA_DATA = | 70 EXTRA_DATA = |
69 | 71 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 158 |
157 clean-recursive-with-twist: | 159 clean-recursive-with-twist: |
158 $(MAKE) clean-recursive LOCAL_SUBDIRS='$(CLEAN_FIRST_SUBDIRS) $(filter-o
ut $(CLEAN_FIRST_SUBDIRS),$(LOCAL_SUBDIRS))' | 160 $(MAKE) clean-recursive LOCAL_SUBDIRS='$(CLEAN_FIRST_SUBDIRS) $(filter-o
ut $(CLEAN_FIRST_SUBDIRS),$(LOCAL_SUBDIRS))' |
159 | 161 |
160 all-local: $(srcdir)/configure $(LOCAL_BUILT_FILES) $(INSTALLED_BUILT_FILES) | 162 all-local: $(srcdir)/configure $(LOCAL_BUILT_FILES) $(INSTALLED_BUILT_FILES) |
161 ifndef VERBOSE | 163 ifndef VERBOSE |
162 @echo "Note: rebuild with \"$(MAKE) VERBOSE=1 $(MAKECMDGOALS)\" to show
all compiler parameters." | 164 @echo "Note: rebuild with \"$(MAKE) VERBOSE=1 $(MAKECMDGOALS)\" to show
all compiler parameters." |
163 endif | 165 endif |
164 install-local: install-icu install-manx | 166 install-local: install-icu install-manx |
165 | 167 |
| 168 # always installs. Used by layoutex. |
| 169 install-pkgconfig: $(ALL_PKGCONFIG_FILES) |
| 170 @$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig |
| 171 $(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/ |
| 172 |
166 install-icu: $(INSTALLED_BUILT_FILES) | 173 install-icu: $(INSTALLED_BUILT_FILES) |
167 @$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/config | 174 @$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/config |
168 @$(MKINSTALLDIRS) $(DESTDIR)$(pkglibdir) | 175 @$(MKINSTALLDIRS) $(DESTDIR)$(pkglibdir) |
169 @$(MKINSTALLDIRS) $(DESTDIR)$(bindir) | 176 @$(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
170 @$(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | 177 @$(MKINSTALLDIRS) $(DESTDIR)$(sbindir) |
171 $(INSTALL_DATA) @platform_make_fragment@ $(DESTDIR)$(pkgdatadir)/config/
@platform_make_fragment_name@ | 178 $(INSTALL_DATA) @platform_make_fragment@ $(DESTDIR)$(pkgdatadir)/config/
@platform_make_fragment_name@ |
172 $(INSTALL_SCRIPT) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/mk
installdirs | 179 $(INSTALL_SCRIPT) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/mk
installdirs |
173 $(INSTALL_SCRIPT) $(top_srcdir)/install-sh $(DESTDIR)$(pkgdatadir)/insta
ll-sh | 180 $(INSTALL_SCRIPT) $(top_srcdir)/install-sh $(DESTDIR)$(pkgdatadir)/insta
ll-sh |
174 @$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig | 181 @$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig |
175 $(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/ | 182 $(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 @echo $@ updated. | 284 @echo $@ updated. |
278 | 285 |
279 config/icu-le.pc: config/icu.pc Makefile icudefs.mk | 286 config/icu-le.pc: config/icu.pc Makefile icudefs.mk |
280 @cat config/icu.pc > $@ | 287 @cat config/icu.pc > $@ |
281 @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Layout library" >> $@ | 288 @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Layout library" >> $@ |
282 @echo "Name: $(PACKAGE)-le" >> $@ | 289 @echo "Name: $(PACKAGE)-le" >> $@ |
283 @echo "Requires: icu-uc" >> $@ | 290 @echo "Requires: icu-uc" >> $@ |
284 @echo "Libs:" "${ICULIBS_LE}" >> $@ | 291 @echo "Libs:" "${ICULIBS_LE}" >> $@ |
285 @echo $@ updated. | 292 @echo $@ updated. |
286 | 293 |
| 294 ICULEHB_LIBS=@ICULEHB_LIBS@ |
| 295 USING_HB= |
| 296 ifneq ($(ICULEHB_LIBS),) |
| 297 USING_HB=(Using HarfBuzz) |
| 298 endif |
| 299 |
| 300 |
287 config/icu-lx.pc: config/icu.pc Makefile icudefs.mk | 301 config/icu-lx.pc: config/icu.pc Makefile icudefs.mk |
288 @cat config/icu.pc > $@ | 302 @cat config/icu.pc > $@ |
289 » @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Paragraph Layout library
" >> $@ | 303 » @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Paragraph Layout library
$(USING_HB)" >> $@ |
290 @echo "Name: $(PACKAGE)-lx" >> $@ | 304 @echo "Name: $(PACKAGE)-lx" >> $@ |
| 305 ifneq ($(ICULEHB_LIBS),) |
| 306 @echo "Requires: icu-le-hb icu-uc" >> $@ |
| 307 else |
291 @echo "Requires: icu-le" >> $@ | 308 @echo "Requires: icu-le" >> $@ |
| 309 endif |
292 @echo "Libs:" "${ICULIBS_LX}" >> $@ | 310 @echo "Libs:" "${ICULIBS_LX}" >> $@ |
293 @echo $@ updated. | 311 @echo $@ updated. |
294 | 312 |
295 | 313 |
296 Makefile: $(srcdir)/Makefile.in icudefs.mk $(top_builddir)/config.status | 314 Makefile: $(srcdir)/Makefile.in icudefs.mk $(top_builddir)/config.status |
297 cd $(top_builddir) \ | 315 cd $(top_builddir) \ |
298 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.s
tatus | 316 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.s
tatus |
299 | 317 |
300 $(top_builddir)/config/Makefile.inc: $(srcdir)/config/Makefile.inc.in $(top_bui
lddir)/config.status | 318 $(top_builddir)/config/Makefile.inc: $(srcdir)/config/Makefile.inc.in $(top_bui
lddir)/config.status |
301 cd $(top_builddir) \ | 319 cd $(top_builddir) \ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 @echo `./config/icu-config --noverify --cxx` >> $(DESTDIR)/readme.txt | 400 @echo `./config/icu-config --noverify --cxx` >> $(DESTDIR)/readme.txt |
383 endif | 401 endif |
384 | 402 |
385 check-installed-icu: install | 403 check-installed-icu: install |
386 @echo "Testing ICU installed in $(prefix)" | 404 @echo "Testing ICU installed in $(prefix)" |
387 $(INSTALLED_INVOKE) $(bindir)/icuinfo$(EXEEXT) | 405 $(INSTALLED_INVOKE) $(bindir)/icuinfo$(EXEEXT) |
388 $(INSTALLED_INVOKE) $(bindir)/uconv$(EXEEXT) -V | 406 $(INSTALLED_INVOKE) $(bindir)/uconv$(EXEEXT) -V |
389 $(INSTALLED_INVOKE) $(bindir)/genrb$(EXEEXT) -V | 407 $(INSTALLED_INVOKE) $(bindir)/genrb$(EXEEXT) -V |
390 $(INSTALLED_INVOKE) $(bindir)/gencnval$(EXEEXT) -h | 408 $(INSTALLED_INVOKE) $(bindir)/gencnval$(EXEEXT) -h |
391 @echo INSTALLED ICU IN "$(prefix)" OK! | 409 @echo INSTALLED ICU IN "$(prefix)" OK! |
OLD | NEW |