]> git.saurik.com Git - apple/icu.git/blame - icuSources/stubdata/Makefile.in
ICU-8.11.2.tar.gz
[apple/icu.git] / icuSources / stubdata / Makefile.in
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
73c04bcf 3# Copyright (C) 1999-2005, 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
A
46ifneq ($(top_builddir),$(top_srcdir))
47CPPFLAGS += -I$(top_builddir)/common
48endif
49CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS)
374ca955 50LDFLAGS += $(LDFLAGSICUDT)
b75a7d8f
A
51
52OBJECTS = stubdata.o
53
73c04bcf 54## Header files to install
b75a7d8f
A
55HEADERS =
56
73c04bcf
A
57STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
58
b75a7d8f
A
59DEPS = $(OBJECTS:.o=.d)
60
73c04bcf 61-include Makefile.local
b75a7d8f
A
62
63## List of phony targets
73c04bcf
A
64.PHONY : all all-local install install-local clean clean-local \
65distclean distclean-local install-library dist \
66dist-local check check-local
b75a7d8f
A
67
68## Clear suffix list
69.SUFFIXES :
70
71## List of standard targets
72all: all-local
73install: install-local
74clean: clean-local
75distclean : distclean-local
76dist: dist-local
77check: all check-local
78
b75a7d8f
A
79all-local: $(ALL_TARGETS)
80
81install-local: install-library
82
83install-library: all-local
84 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
85ifneq ($(ENABLE_STATIC),)
374ca955 86 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
87endif
88ifneq ($(ENABLE_SHARED),)
374ca955 89 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 90ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 91 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 92ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 93 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
94endif
95endif
96endif
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
106
107dist-local:
108
109clean-local:
110 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
111 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
112
b75a7d8f
A
113distclean-local: clean-local
114 $(RMV) Makefile
115
73c04bcf
A
116check-local:
117
b75a7d8f
A
118Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
119 cd $(top_builddir) \
120 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
121
122../common/unicode/platform.h: $(srcdir)/../common/unicode/platform.h.in $(top_builddir)/config.status
123 cd $(top_builddir) \
124 && CONFIG_FILES=common/unicode/platform.h CONFIG_HEADERS= $(SHELL) ./config.status
125
b75a7d8f
A
126ifneq ($(ENABLE_STATIC),)
127$(TARGET): $(TARGET)($(STATIC_OBJECTS))
128 $(RANLIB) $@
129endif
130
131ifneq ($(ENABLE_SHARED),)
73c04bcf 132$(SHARED_OBJECT): $(OBJECTS)
b75a7d8f
A
133 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
134
135ifeq ($(OS390BATCH),1)
136$(BATCH_STUB_TARGET): $(OBJECTS)
137 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
138endif # OS390BATCH
73c04bcf 139endif # ENABLE_SHARED
b75a7d8f
A
140
141ifeq (,$(MAKECMDGOALS))
142-include $(DEPS)
143else
144ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
145-include $(DEPS)
146endif
147endif
148