]> git.saurik.com Git - apple/icu.git/blob - icuSources/layoutex/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / layoutex / Makefile.in
1 ## Copyright (c) 1999-2004, International Business Machines Corporation and
2 ## others. All Rights Reserved.
3 ## Makefile.in for ICU - layout
4
5 ## Install directory information
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 top_builddir = ..
10
11 include $(top_builddir)/icudefs.mk
12
13 ## Build directory information
14 subdir = layoutex
15
16 ## Extra files to remove for 'make clean'
17 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
18
19 ## Target information
20
21 TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
22
23 ifneq ($(ENABLE_STATIC),)
24 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
25 endif
26
27 ifneq ($(ENABLE_SHARED),)
28 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
29 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
30
31 ifeq ($(ENABLE_SO_VERSION_DATA),1)
32 SO_VERSION_DATA = layoutex.res
33 endif
34
35 ifeq ($(OS390BATCH),1)
36 BATCH_TARGET = $(BATCH_LAYOUTEX_TARGET)
37 BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICULE) -lm
38 endif # OS390BATCH
39
40 endif # ENABLE_SHARED
41
42 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
43
44 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
45 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
46 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
47
48 LDFLAGS += $(LDFLAGSICULX)
49 CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(srcdir)/.. -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
50 DEFS += -DU_LAYOUTEX_IMPLEMENTATION
51 LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS)
52
53 OBJECTS = ParagraphLayout.o \
54 RunArrays.o \
55 LXUtilities.o
56
57 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
58
59 DEPS = $(OBJECTS:.o=.d)
60
61 ## Header files to install
62 HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h
63
64 ## List of phony targets
65 .PHONY : all all-local install install-local clean clean-local \
66 distclean distclean-local install-library install-headers dist \
67 dist-local check check-local
68
69 ## Clear suffix list
70 .SUFFIXES :
71
72 ## List of standard targets
73 all: all-local
74 install: install-local
75 clean: clean-local
76 distclean : distclean-local
77 dist: dist-local
78 check: all check-local
79
80 all-local: $(ALL_TARGETS)
81
82 install-local: install-headers install-library
83
84 install-library: all-local
85 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
86 ifneq ($(ENABLE_STATIC),)
87 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
88 endif
89 ifneq ($(ENABLE_SHARED),)
90 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
91 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
92 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
93 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
94 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
95 endif
96 endif
97 endif
98 ifneq ($(IMPORT_LIB_EXT),)
99 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
100 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
101 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(FINAL_IMPORT_LIB) $(notdir $(IMPORT_LIB))
102 endif
103 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
104 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
105 endif
106 endif
107
108
109 install-headers:
110 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout
111 @for file in $(HEADERS); do \
112 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \
113 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \
114 done
115
116 dist-local:
117
118 clean-local:
119 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
120 $(RMV) $(OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
121
122 distclean-local: clean-local
123 $(RMV) Makefile
124
125 check-local:
126
127 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
128 cd $(top_builddir) \
129 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
130
131 ifneq ($(ENABLE_STATIC),)
132 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
133 $(RANLIB) $@
134 endif
135
136 ifneq ($(ENABLE_SHARED),)
137 $(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
138 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
139
140 ifeq ($(OS390BATCH),1)
141 $(BATCH_TARGET): $(OBJECTS)
142 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
143 endif # OS390BATCH
144
145 endif
146
147 ifeq (,$(MAKECMDGOALS))
148 -include $(DEPS)
149 else
150 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
151 -include $(DEPS)
152 endif
153 endif
154
155