1 ## Copyright (c) 1999-2004, International Business Machines Corporation and
2 ## others. All Rights Reserved.
3 ## Makefile.in for ICU - layout
5 ## Install directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
13 ## Build directory information
16 ## Extra files to remove for 'make clean'
17 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
21 TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
23 ifneq ($(ENABLE_STATIC),)
24 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
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)
31 ifeq ($(ENABLE_SO_VERSION_DATA),1)
32 SO_VERSION_DATA = layoutex.res
35 ifeq ($(OS390BATCH),1)
36 BATCH_TARGET = $(BATCH_LAYOUTEX_TARGET)
37 BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICULE) -lm
42 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
44 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
45 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
46 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
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)
53 OBJECTS = ParagraphLayout.o \
57 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
59 DEPS = $(OBJECTS:.o=.d)
61 ## Header files to install
62 HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h
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
72 ## List of standard targets
74 install: install-local
76 distclean : distclean-local
78 check: all check-local
80 all-local: $(ALL_TARGETS)
82 install-local: install-headers install-library
84 install-library: all-local
85 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
86 ifneq ($(ENABLE_STATIC),)
87 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
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))
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))
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))
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; \
119 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
120 $(RMV) $(OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
122 distclean-local: clean-local
127 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
129 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
131 ifneq ($(ENABLE_STATIC),)
132 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
136 ifneq ($(ENABLE_SHARED),)
137 $(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
138 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
140 ifeq ($(OS390BATCH),1)
141 $(BATCH_TARGET): $(OBJECTS)
142 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
147 ifeq (,$(MAKECMDGOALS))
150 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)