Bug 867089 - Validate the playbackRate before using it. r=ehsan
[gecko.git] / intl / icu / source / layoutex / Makefile.in
blobb23e7dbdd9c34c91797fb96bdbc07e14e765e4ba
1 #******************************************************************************
3 # Copyright (C) 1999-2011, International Business Machines
4 # Corporation and others. All Rights Reserved.
6 #******************************************************************************
7 ## Makefile.in for ICU - layout
9 ## Source directory information
10 srcdir = @srcdir@
11 top_srcdir = @top_srcdir@
13 top_builddir = ..
15 ## All the flags and other definitions are included here.
16 include $(top_builddir)/icudefs.mk
18 ## Build directory information
19 subdir = layoutex
21 ## Extra files to remove for 'make clean'
22 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
24 ## Target information
26 TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
28 ifneq ($(ENABLE_STATIC),)
29 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
30 endif
32 ifneq ($(ENABLE_SHARED),)
33 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
34 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
36 ifeq ($(ENABLE_SO_VERSION_DATA),1)
37 SO_VERSION_DATA = layoutex.res
38 endif
40 ifeq ($(OS390BATCH),1)
41 BATCH_TARGET = $(BATCH_LAYOUTEX_TARGET)
42 BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICULE) -lm
43 endif # OS390BATCH
45 endif # ENABLE_SHARED
47 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
49 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
50 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
51 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
52 CFLAGS += $(LIBCFLAGS)
53 CXXFLAGS += $(LIBCXXFLAGS)
55 CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(srcdir)/.. -I$(top_srcdir)/common $(LIBCPPFLAGS)
56 DEFS += -DU_LAYOUTEX_IMPLEMENTATION
57 LDFLAGS += $(LDFLAGSICULX)
58 LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS)
60 OBJECTS = ParagraphLayout.o \
61 RunArrays.o \
62 LXUtilities.o \
63 playout.o \
64 plruns.o
66 ## Header files to install
67 HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h $(srcdir)/layout/playout.h $(srcdir)/layout/plruns.h
69 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
71 DEPS = $(OBJECTS:.o=.d)
73 -include Makefile.local
75 ## List of phony targets
76 .PHONY : all all-local install install-local clean clean-local \
77 distclean distclean-local install-library install-headers dist \
78 dist-local check check-local check-exhaustive
80 ## Clear suffix list
81 .SUFFIXES :
83 ## List of standard targets
84 all: all-local
85 install: install-local
86 clean: clean-local
87 distclean : distclean-local
88 dist: dist-local
89 check: all check-local
91 check-exhaustive: check
93 all-local: $(ALL_TARGETS)
95 install-local: install-headers install-library
97 install-library: all-local
98 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
99 ifneq ($(ENABLE_STATIC),)
100 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
101 endif
102 ifneq ($(ENABLE_SHARED),)
103 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
104 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
105 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
106 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
107 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
108 endif
109 endif
110 ifneq ($(IMPORT_LIB_EXT),)
111 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
112 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
113 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
114 endif
115 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
116 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
117 endif
118 endif
119 endif
121 install-headers:
122 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout
123 @for file in $(HEADERS); do \
124 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \
125 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \
126 done
128 dist-local:
130 clean-local:
131 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
132 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
134 distclean-local: clean-local
135 $(RMV) Makefile
137 check-local:
139 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
140 cd $(top_builddir) \
141 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
143 ifneq ($(ENABLE_STATIC),)
144 $(TARGET): $(STATIC_OBJECTS)
145 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
146 $(RANLIB) $@
147 endif
149 ifneq ($(ENABLE_SHARED),)
150 $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
151 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
152 ifeq ($(ENABLE_RPATH),YES)
153 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
154 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
155 endif
156 endif
158 ifeq ($(OS390BATCH),1)
159 $(BATCH_TARGET):$(OBJECTS)
160 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
161 endif # OS390BATCH
162 endif # ENABLE_SHARED
164 ifeq (,$(MAKECMDGOALS))
165 -include $(DEPS)
166 else
167 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
168 -include $(DEPS)
169 endif
170 endif