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