]> git.saurik.com Git - apple/icu.git/blob - icuSources/common/Makefile.in
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / common / Makefile.in
1 #******************************************************************************
2 #
3 # Copyright (C) 1999-2004, International Business Machines
4 # Corporation and others. All Rights Reserved.
5 #
6 #******************************************************************************
7 ## Makefile.in for ICU - icuuc.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 = common
21
22 ## Extra files to remove for 'make clean'
23 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
24
25 ## Target information
26
27 TARGET_STUBNAME=$(COMMON_STUBNAME)
28
29 ifneq ($(ENABLE_STATIC),)
30 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
31 endif
32
33 ifneq ($(ENABLE_SHARED),)
34 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
35 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
36
37 ifeq ($(ENABLE_SO_VERSION_DATA),1)
38 SO_VERSION_DATA = common.res
39 endif
40
41 ifeq ($(OS390BATCH),1)
42 BATCH_TARGET = $(BATCH_COMMON_TARGET)
43 BATCH_LIBS = $(BATCH_LIBICUDT) -lm
44 endif # OS390BATCH
45
46 endif # ENABLE_SHARED
47
48 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
49
50 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
51 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
52 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
53
54 LDFLAGS += $(LDFLAGSICUUC)
55 CPPFLAGS += -I. -I$(srcdir) -I$(top_srcdir)/i18n $(LIBCPPFLAGS)
56 DEFS += -DU_COMMON_IMPLEMENTATION
57
58 # $(LIBICUDT) is either stub data or the real DLL common data.
59 LIBS = $(LIBICUDT) $(DEFAULT_LIBS)
60
61 OBJECTS = putil.o utypes.o uobject.o cmemory.o umutex.o ucln_cmn.o uinit.o \
62 udata.o ucmndata.o udatamem.o udataswp.o umapfile.o ucol_swp.o \
63 uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o \
64 ucat.o locmap.o uloc.o locid.o \
65 uhash.o uhash_us.o \
66 ucnv.o ucnv_set.o ucnv_bld.o ucnv_cb.o ucnv_cnv.o ucnv_err.o ucnv_ext.o ucnv_io.o ucnvlat1.o \
67 ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o \
68 ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o \
69 unistr.o unistr_case.o unistr_cnv.o unistr_props.o \
70 utf_impl.o ustring.o ustr_cnv.o ustrcase.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o uinvchar.o \
71 normlzr.o unorm.o unormcmp.o unorm_it.o chariter.o schriter.o uchriter.o uiter.o \
72 uchar.o uprops.o ucase.o propname.o ubidi.o ubidiwrt.o ubidiln.o ushape.o unames.o \
73 uscript.o usc_impl.o uvector.o ustack.o uvectr32.o ucmp8.o \
74 uarrsort.o utrie.o uset.o uset_props.o uniset.o uniset_props.o ruleiter.o caniter.o unifilt.o unifunct.o usetiter.o \
75 brkiter.o brkdict.o ubrk.o dbbi.o dbbi_tbl.o \
76 rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o \
77 icuserv.o iculserv.o icunotif.o uenum.o ustrenum.o \
78 uidna.o usprep.o punycode.o \
79 cwchar.o filestrm.o util.o parsepos.o utrace.o locbased.o
80
81 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
82
83 DEPS = $(OBJECTS:.o=.d)
84
85 ## Header files to install
86 HEADERS = unicode/*.h $(srcdir)/unicode/*.h
87
88 ## List of phony targets
89 .PHONY : all all-local install install-local clean clean-local \
90 distclean distclean-local install-library install-headers dist \
91 dist-local check check-local
92
93 ## Clear suffix list
94 .SUFFIXES :
95
96 ## List of standard targets
97 all: all-local
98 install: install-local
99 clean: clean-local
100 distclean : distclean-local
101 dist: dist-local
102 check: all check-local
103
104 -include Makefile.local
105
106 all-local: $(ALL_TARGETS) unicode/platform.h
107
108 install-local: install-headers install-library
109
110 install-library: all-local
111 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
112 ifneq ($(ENABLE_STATIC),)
113 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
114 endif
115 ifneq ($(ENABLE_SHARED),)
116 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
117 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
118 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
119 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
120 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
121 endif
122 endif
123 endif
124 ifneq ($(IMPORT_LIB_EXT),)
125 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
126 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
127 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
128 endif
129 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
130 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
131 endif
132 endif
133
134 install-headers:
135 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
136 @for file in $(HEADERS); do \
137 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
138 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
139 done
140
141 dist-local:
142
143 clean-local:
144 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
145 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
146
147 distclean-local: clean-local
148 $(RMV) Makefile icucfg.h unicode/platform.h
149
150 check-local:
151
152 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
153 cd $(top_builddir) \
154 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
155
156 unicode/platform.h: $(srcdir)/unicode/platform.h.in $(top_builddir)/config.status
157 cd $(top_builddir) \
158 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
159
160 ifneq ($(ENABLE_STATIC),)
161 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
162 $(RANLIB) $@
163 endif
164
165 ifneq ($(ENABLE_SHARED),)
166 $(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
167 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
168
169 ifeq ($(OS390BATCH),1)
170 $(BATCH_TARGET): $(OBJECTS)
171 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
172 endif # OS390BATCH
173
174 endif # ENABLE_SHARED
175
176 ifeq (,$(MAKECMDGOALS))
177 -include $(DEPS)
178 else
179 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
180 -include $(DEPS)
181 endif
182 endif
183