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