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