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