]> git.saurik.com Git - apple/icu.git/blame - icuSources/io/Makefile.in
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / io / Makefile.in
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
73c04bcf 3# Copyright (C) 1999-2006, 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)
53
73c04bcf
A
54ifneq ($(top_builddir),$(top_srcdir))
55CPPFLAGS += -I$(top_builddir)/common
56endif
57CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS)
374ca955 58DEFS += -DU_IO_IMPLEMENTATION
73c04bcf 59LDFLAGS += $(LDFLAGSICUIO)
b75a7d8f
A
60LIBS = $(LIBICUUC) $(LIBICUI18N) $(DEFAULT_LIBS)
61
374ca955
A
62OBJECTS = locbund.o ufile.o ufmt_cmn.o uprintf.o uprntf_p.o \
63uscanf.o uscanf_p.o ustdio.o sprintf.o sscanf.o \
73c04bcf 64ustream.o ucln_io.o
b75a7d8f 65
73c04bcf 66## Header files to install
b75a7d8f
A
67HEADERS = $(srcdir)/unicode/*.h
68
73c04bcf
A
69STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
70
b75a7d8f
A
71DEPS = $(OBJECTS:.o=.d)
72
73c04bcf
A
73-include Makefile.local
74
b75a7d8f 75## List of phony targets
73c04bcf
A
76.PHONY : all all-local install install-local clean clean-local \
77distclean distclean-local install-library install-headers dist \
78dist-local check check-local
b75a7d8f
A
79
80## Clear suffix list
81.SUFFIXES :
82
83## List of standard targets
84all: all-local
85install: install-local
86clean: clean-local
87distclean : distclean-local
88dist: dist-local
89check: all check-local
90
91all-local: $(ALL_TARGETS)
92
73c04bcf 93install-local: install-headers install-library
b75a7d8f
A
94
95install-library: all-local
96 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
97ifneq ($(ENABLE_STATIC),)
374ca955 98 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
99endif
100ifneq ($(ENABLE_SHARED),)
374ca955 101 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 102ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 103 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 104ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 105 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
106endif
107endif
108endif
109ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
110 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
111ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
112 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
113endif
b75a7d8f 114ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
374ca955 115 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
b75a7d8f
A
116endif
117endif
118
119install-headers:
120 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
121 @for file in $(HEADERS); do \
122 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
123 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
124 done
125
b75a7d8f
A
126dist-local:
127
128clean-local:
129 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 130 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
b75a7d8f
A
131
132distclean-local: clean-local
133 $(RMV) Makefile
134
135check-local:
136
137Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
138 cd $(top_builddir) \
139 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
140
141ifneq ($(ENABLE_STATIC),)
142$(TARGET): $(TARGET)($(STATIC_OBJECTS))
143 $(RANLIB) $@
144endif
145
146ifneq ($(ENABLE_SHARED),)
73c04bcf 147$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
b75a7d8f
A
148 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
149
150ifeq ($(OS390BATCH),1)
73c04bcf 151$(BATCH_TARGET):$(OBJECTS)
b75a7d8f 152 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
73c04bcf
A
153endif # OS390BATCH
154endif # ENABLE_SHARED
b75a7d8f
A
155
156ifeq (,$(MAKECMDGOALS))
157-include $(DEPS)
158else
159ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
160-include $(DEPS)
161endif
162endif
73c04bcf 163