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