]> git.saurik.com Git - apple/icu.git/blame - icuSources/layoutex/Makefile.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / layoutex / Makefile.in
CommitLineData
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
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)
52
73c04bcf
A
53ifneq ($(top_builddir),$(top_srcdir))
54CPPFLAGS += -I$(top_builddir)/common
55endif
56CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(srcdir)/.. -I$(top_srcdir)/common $(LIBCPPFLAGS)
b75a7d8f 57DEFS += -DU_LAYOUTEX_IMPLEMENTATION
73c04bcf 58LDFLAGS += $(LDFLAGSICULX)
b75a7d8f
A
59LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS)
60
61OBJECTS = ParagraphLayout.o \
62RunArrays.o \
63LXUtilities.o
64
73c04bcf
A
65## Header files to install
66HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h
67
b75a7d8f
A
68STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
69
70DEPS = $(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 \
76distclean distclean-local install-library install-headers dist \
77dist-local check check-local
78
79## Clear suffix list
80.SUFFIXES :
81
82## List of standard targets
83all: all-local
84install: install-local
85clean: clean-local
86distclean : distclean-local
87dist: dist-local
88check: all check-local
89
90all-local: $(ALL_TARGETS)
91
73c04bcf 92install-local: install-headers install-library
b75a7d8f
A
93
94install-library: all-local
95 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
96ifneq ($(ENABLE_STATIC),)
374ca955 97 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
98endif
99ifneq ($(ENABLE_SHARED),)
374ca955 100 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 101ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 102 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 103ifneq ($(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
105endif
106endif
107endif
108ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
109 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
110ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
73c04bcf 111 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
374ca955 112endif
b75a7d8f 113ifneq ($(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
115endif
116endif
117
b75a7d8f
A
118install-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
125dist-local:
126
127clean-local:
128 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
73c04bcf 129 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
b75a7d8f
A
130
131distclean-local: clean-local
132 $(RMV) Makefile
133
134check-local:
135
136Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
137 cd $(top_builddir) \
138 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
139
140ifneq ($(ENABLE_STATIC),)
141$(TARGET): $(TARGET)($(STATIC_OBJECTS))
142 $(RANLIB) $@
143endif
144
145ifneq ($(ENABLE_SHARED),)
73c04bcf 146$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
b75a7d8f 147 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
374ca955
A
148
149ifeq ($(OS390BATCH),1)
73c04bcf 150$(BATCH_TARGET):$(OBJECTS)
374ca955
A
151 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
152endif # OS390BATCH
73c04bcf 153endif # ENABLE_SHARED
b75a7d8f
A
154
155ifeq (,$(MAKECMDGOALS))
156-include $(DEPS)
157else
158ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
159-include $(DEPS)
160endif
161endif
162