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