2016-06-15 18:58:17 +00:00
|
|
|
# Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
# License & terms of use: http://www.unicode.org/copyright.html
|
2001-08-16 23:29:26 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
2016-05-31 21:45:07 +00:00
|
|
|
# Copyright (C) 1999-2015, International Business Machines
|
|
|
|
# Corporation and others. All Rights Reserved.
|
2001-08-16 23:29:26 +00:00
|
|
|
#
|
|
|
|
#******************************************************************************
|
2002-04-19 02:19:24 +00:00
|
|
|
## Makefile.in for ICU stubdata
|
2001-08-16 23:29:26 +00:00
|
|
|
## Stephen F. Booth
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
## Source directory information
|
2001-08-16 23:29:26 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ..
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
## All the flags and other definitions are included here.
|
2001-08-16 23:29:26 +00:00
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = stubdata
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Extra files to remove for 'make clean'
|
2004-04-05 21:25:47 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## Target information
|
|
|
|
|
2004-04-19 17:32:30 +00:00
|
|
|
TARGET_STUBNAME=$(DATA_STUBNAME)
|
2003-03-19 01:56:39 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-05-11 04:51:53 +00:00
|
|
|
TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-08 18:11:32 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-05-11 04:51:53 +00:00
|
|
|
SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
|
2005-09-08 18:11:32 +00:00
|
|
|
ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT)
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-08 18:11:32 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS)
|
2004-05-06 05:56:22 +00:00
|
|
|
LDFLAGS += $(LDFLAGSICUDT)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
2020-05-11 16:36:07 +00:00
|
|
|
SOURCES = $(shell cat $(srcdir)/sources.txt)
|
|
|
|
OBJECTS = $(SOURCES:.cpp=.o)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Header files to install
|
2001-08-16 23:29:26 +00:00
|
|
|
HEADERS =
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
-include Makefile.local
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
2005-12-02 10:21:39 +00:00
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
|
|
|
distclean distclean-local install-library dist \
|
2011-11-14 22:33:19 +00:00
|
|
|
dist-local check check-local check-exhaustive
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-local
|
|
|
|
install: install-local
|
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist: dist-local
|
|
|
|
check: all check-local
|
|
|
|
|
2011-11-14 22:33:19 +00:00
|
|
|
check-exhaustive: check
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
all-local: $(ALL_TARGETS)
|
|
|
|
|
2001-08-29 22:08:28 +00:00
|
|
|
install-local: install-library
|
|
|
|
|
|
|
|
install-library: all-local
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
|
2001-08-29 22:08:28 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2020-01-07 09:38:21 +00:00
|
|
|
# For MinGW, do we want the DLL to go in the bin location?
|
|
|
|
ifeq ($(MINGW_MOVEDLLSTOBINDIR),YES)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
2019-12-13 21:40:28 +00:00
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir)
|
|
|
|
else
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
|
2002-02-16 08:03:44 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
|
2003-04-10 17:42:21 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
|
2003-04-10 17:42:21 +00:00
|
|
|
endif
|
2002-02-16 08:03:44 +00:00
|
|
|
endif
|
2019-12-13 21:40:28 +00:00
|
|
|
endif
|
2003-03-19 01:56:39 +00:00
|
|
|
ifneq ($(IMPORT_LIB_EXT),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
|
2004-10-21 00:08:48 +00:00
|
|
|
ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
|
2004-10-21 00:08:48 +00:00
|
|
|
endif
|
2003-04-10 17:42:21 +00:00
|
|
|
ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
|
2003-04-10 17:42:21 +00:00
|
|
|
endif
|
2003-03-19 01:56:39 +00:00
|
|
|
endif
|
2007-07-13 17:59:16 +00:00
|
|
|
endif
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
|
|
|
$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
|
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
check-local:
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 08:10:41 +00:00
|
|
|
$(TARGET): $(STATIC_OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
|
2001-08-16 23:29:26 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2005-09-08 18:11:32 +00:00
|
|
|
$(SHARED_OBJECT): $(OBJECTS)
|
2015-06-01 23:29:27 +00:00
|
|
|
ifeq ($(BUILD_HOST_ICU),AIX_GCC)
|
|
|
|
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)libicudata.so $^ $(LIBS)
|
|
|
|
mv libicudata.so $@
|
|
|
|
else
|
2015-02-28 07:46:59 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2015-06-01 23:29:27 +00:00
|
|
|
endif
|
2011-11-03 20:48:20 +00:00
|
|
|
ifeq ($(ENABLE_RPATH),YES)
|
|
|
|
ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
|
|
|
|
$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
|
|
|
|
endif
|
|
|
|
endif
|
2001-08-16 23:29:26 +00:00
|
|
|
|
2001-11-06 23:16:07 +00:00
|
|
|
ifeq ($(OS390BATCH),1)
|
2001-11-07 22:53:23 +00:00
|
|
|
$(BATCH_STUB_TARGET): $(OBJECTS)
|
2003-02-11 00:13:48 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2001-11-06 23:16:07 +00:00
|
|
|
endif # OS390BATCH
|
2005-12-02 10:21:39 +00:00
|
|
|
endif # ENABLE_SHARED
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|