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