blob: 2dc2aef28bb2e0ae85559e9d8282bef62421f859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
## Proxy Makefile.am to build ICU for TeX Live.
##
## Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org>
##
## This file is free software; the copyright holder
## gives unlimited permission to copy and/or distribute it,
## with or without modifications, as long as this notice is preserved.
##
ACLOCAL_AMFLAGS = -I ../../m4
# Rebuild
.PHONY: rebuild
rebuild: icubuild
cd include && $(MAKE) $(AM_MAKEFLAGS) all
SUBDIRS = .
## We want to re-distribute the whole ICU source tree.
EXTRA_DIST = $(ICU_TREE) license.html
## Patches applied to the original source tree
##
EXTRA_DIST += $(ICU_TREE)-PATCHES
# in case of an SVN repository
dist-hook:
rm -rf `find $(distdir) -name .svn`
if build
all-local: icubuild
SUBDIRS += include
else !build
all-local: icu-build/Makefile
endif !build
if cross
ICU_NATIVE = icu-native/config/icucross.mk
endif cross
icu-build/Makefile: $(ICU_NATIVE)
$(MKDIR_P) icu-build
@cmd="$(icu_config) $(icu_build_args)"; \
(cd icu-build && echo "=== configuring in icu-build (`pwd`)" && \
echo "make: running $(SHELL) $$cmd" && \
CONFIG_SHELL=$(SHELL) && export CONFIG_SHELL && \
eval $(SHELL) $$cmd)
icu-native/config/icucross.mk: icu-native/Makefile
cd icu-native && $(MAKE) $(AM_MAKEFLAGS) config/icucross.mk
icu-native/Makefile:
$(MKDIR_P) icu-native
@cmd="$(icu_config) $(icu_native_args)"; \
(cd icu-native && echo "=== configuring in icu-native (`pwd`)" && \
echo "make: running $(SHELL) $$cmd" && \
CONFIG_SHELL=$(SHELL) && export CONFIG_SHELL && \
eval $(SHELL) $$cmd)
.PHONY: icubuild check-makeflags
icubuild: icu-build/Makefile check-makeflags
if cross
cd icu-native && $(MAKE) $(AM_MAKEFLAGS) all
endif cross
cd icu-build && $(MAKE) $(AM_MAKEFLAGS) all
## For ICU versions <= 4.2.1, the static libraries were called
## libsicuxxx.a, but this is not longer generally true for ICU 4.4.
## In order to have uniform LDFLAGS, we therefore create symlinks
## libsicuxxx.a -> libicuxxx.a as required.
## Can't do this the other way around, because for AIX shared and
## and static libraries both have the extension '.a'.
@cd icu-build/lib && for lib in libicu*.a; do \
test -f "$$lib" || continue; \
libs=`echo "$$lib" | sed 's/libicu/libsicu/'`; \
test -f "$$libs" && continue; \
echo "creating link '$$libs' -> '$$lib'"; \
$(LN_S) "$$lib" "$$libs" || exit 1; \
done
check-makeflags:
@for f in x $$MAKEFLAGS; do \
case $$f in \
CFLAGS=* | CPPFLAGS=* | CXXFLAGS=* | LDFLAGS=*) \
echo "Sorry, the icu build systems disallows \`make $$f'."; \
exit 1;; \
esac; \
done
distclean-local:
rm -rf icu-build icu-native
|