]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / i18n / Makefile.in
1 #******************************************************************************
2 #
3 # Copyright (C) 1998-2003, International Business Machines
4 # Corporation and others. All Rights Reserved.
5 #
6 #******************************************************************************
7 ## Makefile.in for ICU - icui18n.so
8 ## Stephen F. Booth
9
10 ## Source directory information
11 srcdir = @srcdir@
12 top_srcdir = @top_srcdir@
13
14 top_builddir = ..
15
16 ## All the flags and other definitions are included here.
17 include $(top_builddir)/icudefs.mk
18
19 ## Build directory information
20 subdir = i18n
21
22 ## Extra files to remove for 'make clean'
23 CLEANFILES = *~ $(DEPS)
24
25 ## Target information
26
27 TARGET_STUBNAME=i18n
28
29 ifneq ($(ENABLE_STATIC),)
30 TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).a
31 endif
32
33 ifneq ($(ENABLE_SHARED),)
34 SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
35 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
36
37 ifeq ($(OS390BATCH),1)
38 BATCH_TARGET = $(BATCH_I18N_TARGET)
39 BATCH_LIBS = $(BATCH_LIBICUUC) -lm
40 endif # OS390BATCH
41
42 endif # ENABLE_SHARED
43
44 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
45
46 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
47 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
48 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
49
50 CPPFLAGS += -I$(srcdir) -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
51 DEFS += -DU_I18N_IMPLEMENTATION
52 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
53
54 OBJECTS = ucln_in.o \
55 fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o \
56 choicfmt.o datefmt.o smpdtfmt.o dtfmtsym.o udat.o \
57 ucal.o calendar.o gregocal.o timezone.o simpletz.o \
58 buddhcal.o japancal.o \
59 sortkey.o bocsu.o coleitr.o coll.o ucoleitr.o \
60 ucol.o ucol_bld.o ucol_cnt.o ucol_elm.o ucol_tok.o ucol_wgt.o tblcoll.o \
61 strmatch.o usearch.o search.o stsearch.o \
62 unifltlg.o translit.o utrans.o \
63 cpdtrans.o hextouni.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \
64 nultrans.o remtrans.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \
65 name2uni.o uni2name.o unitohex.o nortrans.o quant.o transreg.o \
66 nfrs.o nfrule.o nfsubs.o rbnf.o esctrn.o unesctrn.o \
67 funcrepl.o strrepl.o tridpars.o \
68 ucurr.o \
69 regexcmp.o rematch.o repattrn.o regexst.o
70
71
72 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
73
74 DEPS = $(OBJECTS:.o=.d)
75
76 ## Header files to install
77 HEADERS= $(srcdir)/unicode/*.h
78
79 ## List of phony targets
80 .PHONY : all all-local install install-local clean clean-local \
81 distclean distclean-local install-library install-headers dist \
82 dist-local check check-local
83
84 ## Clear suffix list
85 .SUFFIXES :
86
87 ## List of standard targets
88 all: all-local
89 install: install-local
90 clean: clean-local
91 distclean : distclean-local
92 dist: dist-local
93 check: all check-local
94
95 all-local: $(ALL_TARGETS)
96
97 install-local: install-headers install-library
98
99 install-library: all-local
100 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
101 ifneq ($(ENABLE_STATIC),)
102 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
103 endif
104 ifneq ($(ENABLE_SHARED),)
105 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
106 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
107 cd $(DESTDIR)$(libdir) && $(RM) $(SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(SO_TARGET)
108 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
109 cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET)
110 endif
111 endif
112 endif
113 ifneq ($(IMPORT_LIB_EXT),)
114 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)/$(FINAL_IMPORT_LIB)
115 cd $(DESTDIR)$(libdir) && $(RM) $(IMPORT_LIB) && ln -s $(FINAL_IMPORT_LIB) $(IMPORT_LIB)
116 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
117 cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_IMPORT_LIB) && ln -s $(FINAL_IMPORT_LIB) $(MIDDLE_IMPORT_LIB)
118 endif
119 endif
120
121 install-headers:
122 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
123 @for file in $(HEADERS); do \
124 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
125 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
126 done
127
128 dist-local:
129
130 clean-local:
131 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
132 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
133
134 distclean-local: clean-local
135 $(RMV) Makefile
136
137 check-local:
138
139 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
140 cd $(top_builddir) \
141 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
142
143 ifneq ($(ENABLE_STATIC),)
144 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
145 $(RANLIB) $@
146 endif
147
148 ifneq ($(ENABLE_SHARED),)
149 $(FINAL_SO_TARGET): $(OBJECTS)
150 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
151
152 ifeq ($(OS390BATCH),1)
153 $(BATCH_TARGET):$(OBJECTS)
154 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
155 endif # OS390BATCH
156 endif
157
158 ifeq (,$(MAKECMDGOALS))
159 -include $(DEPS)
160 else
161 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
162 -include $(DEPS)
163 endif
164 endif