]> git.saurik.com Git - apple/icu.git/blame - icuSources/stubdata/Makefile.in
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / stubdata / Makefile.in
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
4388f060 3# Copyright (C) 1999-2011, International Business Machines
b75a7d8f
A
4# Corporation and others. All Rights Reserved.
5#
6#******************************************************************************
7## Makefile.in for ICU stubdata
8## Stephen F. Booth
9
10## Source directory information
11srcdir = @srcdir@
12top_srcdir = @top_srcdir@
13
14top_builddir = ..
15
16## All the flags and other definitions are included here.
17include $(top_builddir)/icudefs.mk
18
19## Build directory information
20subdir = stubdata
21
73c04bcf 22## Extra files to remove for 'make clean'
374ca955 23CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
b75a7d8f
A
24
25## Target information
26
374ca955 27TARGET_STUBNAME=$(DATA_STUBNAME)
b75a7d8f
A
28
29ifneq ($(ENABLE_STATIC),)
374ca955 30TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
b75a7d8f
A
31endif
32
73c04bcf 33
b75a7d8f 34ifneq ($(ENABLE_SHARED),)
374ca955 35SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
73c04bcf 36ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT)
b75a7d8f
A
37endif
38
73c04bcf 39
b75a7d8f
A
40ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
41
42DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
43DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
44DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
45
73c04bcf 46CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS)
374ca955 47LDFLAGS += $(LDFLAGSICUDT)
b75a7d8f
A
48
49OBJECTS = stubdata.o
50
73c04bcf 51## Header files to install
b75a7d8f
A
52HEADERS =
53
73c04bcf
A
54STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
55
b75a7d8f
A
56DEPS = $(OBJECTS:.o=.d)
57
73c04bcf 58-include Makefile.local
b75a7d8f
A
59
60## List of phony targets
73c04bcf
A
61.PHONY : all all-local install install-local clean clean-local \
62distclean distclean-local install-library dist \
4388f060 63dist-local check check-local check-exhaustive
b75a7d8f
A
64
65## Clear suffix list
66.SUFFIXES :
67
68## List of standard targets
69all: all-local
70install: install-local
71clean: clean-local
72distclean : distclean-local
73dist: dist-local
74check: all check-local
75
4388f060
A
76check-exhaustive: check
77
b75a7d8f
A
78all-local: $(ALL_TARGETS)
79
80install-local: install-library
81
82install-library: all-local
83 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
84ifneq ($(ENABLE_STATIC),)
374ca955 85 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
86endif
87ifneq ($(ENABLE_SHARED),)
374ca955 88 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 89ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 90 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 91ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 92 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
93endif
94endif
b75a7d8f 95ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
96 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
97ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
98 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
99endif
b75a7d8f 100ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
374ca955 101 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
b75a7d8f
A
102endif
103endif
46f4442e 104endif
b75a7d8f
A
105
106dist-local:
107
108clean-local:
109 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
110 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
111
b75a7d8f
A
112distclean-local: clean-local
113 $(RMV) Makefile
114
73c04bcf
A
115check-local:
116
b75a7d8f
A
117Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
118 cd $(top_builddir) \
119 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
120
b75a7d8f 121ifneq ($(ENABLE_STATIC),)
46f4442e
A
122$(TARGET): $(STATIC_OBJECTS)
123 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
b75a7d8f
A
124 $(RANLIB) $@
125endif
126
127ifneq ($(ENABLE_SHARED),)
73c04bcf 128$(SHARED_OBJECT): $(OBJECTS)
b75a7d8f 129 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
4388f060
A
130ifeq ($(ENABLE_RPATH),YES)
131ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
132 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
133endif
134endif
b75a7d8f
A
135
136ifeq ($(OS390BATCH),1)
137$(BATCH_STUB_TARGET): $(OBJECTS)
138 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
139endif # OS390BATCH
73c04bcf 140endif # ENABLE_SHARED
b75a7d8f
A
141
142ifeq (,$(MAKECMDGOALS))
143-include $(DEPS)
144else
145ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
146-include $(DEPS)
147endif
148endif
149