]> git.saurik.com Git - apple/icu.git/blame - icuSources/io/Makefile.in
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / io / Makefile.in
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
729e4ab9 3# Copyright (C) 1999-2009, International Business Machines
b75a7d8f
A
4# Corporation and others. All Rights Reserved.
5#
6#******************************************************************************
73c04bcf 7## Makefile.in for ICU - icuio.so
b75a7d8f
A
8## Stephen F. Booth
9
10## Source directory information
11srcdir = @srcdir@
12top_srcdir = @top_srcdir@
13
374ca955 14top_builddir = ..
b75a7d8f
A
15
16## All the flags and other definitions are included here.
17include $(top_builddir)/icudefs.mk
18
19## Build directory information
374ca955 20subdir = io
b75a7d8f
A
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=$(IO_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)
73c04bcf 35ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
b75a7d8f 36
374ca955
A
37ifeq ($(ENABLE_SO_VERSION_DATA),1)
38SO_VERSION_DATA = io.res
39endif
40
b75a7d8f 41ifeq ($(OS390BATCH),1)
73c04bcf 42BATCH_TARGET = $(BATCH_IO_TARGET)
b75a7d8f
A
43BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICUI18N) -lm
44endif # OS390BATCH
45
73c04bcf 46endif # ENABLE_SHARED
b75a7d8f
A
47
48ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
49
50DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
51DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
52DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
46f4442e
A
53CFLAGS += $(LIBCFLAGS)
54CXXFLAGS += $(LIBCXXFLAGS)
b75a7d8f 55
73c04bcf 56ifneq ($(top_builddir),$(top_srcdir))
729e4ab9 57CPPFLAGS += -I- -I$(top_builddir)/common -I$(srcdir)
73c04bcf 58endif
729e4ab9 59CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS) $(CPPFLAGSICUIO)
374ca955 60DEFS += -DU_IO_IMPLEMENTATION
73c04bcf 61LDFLAGS += $(LDFLAGSICUIO)
b75a7d8f
A
62LIBS = $(LIBICUUC) $(LIBICUI18N) $(DEFAULT_LIBS)
63
374ca955
A
64OBJECTS = locbund.o ufile.o ufmt_cmn.o uprintf.o uprntf_p.o \
65uscanf.o uscanf_p.o ustdio.o sprintf.o sscanf.o \
73c04bcf 66ustream.o ucln_io.o
b75a7d8f 67
73c04bcf 68## Header files to install
b75a7d8f
A
69HEADERS = $(srcdir)/unicode/*.h
70
73c04bcf
A
71STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
72
b75a7d8f
A
73DEPS = $(OBJECTS:.o=.d)
74
73c04bcf
A
75-include Makefile.local
76
b75a7d8f 77## List of phony targets
73c04bcf
A
78.PHONY : all all-local install install-local clean clean-local \
79distclean distclean-local install-library install-headers dist \
80dist-local check check-local
b75a7d8f
A
81
82## Clear suffix list
83.SUFFIXES :
84
85## List of standard targets
86all: all-local
87install: install-local
88clean: clean-local
89distclean : distclean-local
90dist: dist-local
91check: all check-local
92
93all-local: $(ALL_TARGETS)
94
73c04bcf 95install-local: install-headers install-library
b75a7d8f
A
96
97install-library: all-local
98 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
99ifneq ($(ENABLE_STATIC),)
374ca955 100 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
101endif
102ifneq ($(ENABLE_SHARED),)
374ca955 103 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 104ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 105 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 106ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 107 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
108endif
109endif
b75a7d8f 110ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
111 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
112ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
113 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
114endif
b75a7d8f 115ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
374ca955 116 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
b75a7d8f
A
117endif
118endif
46f4442e 119endif
b75a7d8f
A
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
b75a7d8f
A
128dist-local:
129
130clean-local:
131 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 132 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
b75a7d8f
A
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),)
46f4442e
A
144$(TARGET): $(STATIC_OBJECTS)
145 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
b75a7d8f
A
146 $(RANLIB) $@
147endif
148
149ifneq ($(ENABLE_SHARED),)
73c04bcf 150$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
b75a7d8f
A
151 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
152
153ifeq ($(OS390BATCH),1)
73c04bcf 154$(BATCH_TARGET):$(OBJECTS)
b75a7d8f 155 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
73c04bcf
A
156endif # OS390BATCH
157endif # ENABLE_SHARED
b75a7d8f
A
158
159ifeq (,$(MAKECMDGOALS))
160-include $(DEPS)
161else
162ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
163-include $(DEPS)
164endif
165endif
73c04bcf 166