12e5b6d6dSopenharmony_ci# Copyright (C) 2016 and later: Unicode, Inc. and others. 22e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html 32e5b6d6dSopenharmony_ci#****************************************************************************** 42e5b6d6dSopenharmony_ci# 52e5b6d6dSopenharmony_ci# Copyright (C) 1999-2014, International Business Machines 62e5b6d6dSopenharmony_ci# Corporation and others. All Rights Reserved. 72e5b6d6dSopenharmony_ci# 82e5b6d6dSopenharmony_ci#****************************************************************************** 92e5b6d6dSopenharmony_ci## Makefile.in for ICU - tools/toolutil 102e5b6d6dSopenharmony_ci## Steven R. Loomis 112e5b6d6dSopenharmony_ci 122e5b6d6dSopenharmony_ci## Source directory information 132e5b6d6dSopenharmony_cisrcdir = @srcdir@ 142e5b6d6dSopenharmony_citop_srcdir = @top_srcdir@ 152e5b6d6dSopenharmony_ci 162e5b6d6dSopenharmony_citop_builddir = ../.. 172e5b6d6dSopenharmony_ci 182e5b6d6dSopenharmony_ci## All the flags and other definitions are included here. 192e5b6d6dSopenharmony_ciinclude $(top_builddir)/icudefs.mk 202e5b6d6dSopenharmony_ci 212e5b6d6dSopenharmony_ci## Build directory information 222e5b6d6dSopenharmony_cisubdir = tools/toolutil 232e5b6d6dSopenharmony_ci 242e5b6d6dSopenharmony_ci## Extra files to remove for 'make clean' 252e5b6d6dSopenharmony_ciCLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) 262e5b6d6dSopenharmony_ci 272e5b6d6dSopenharmony_ci## Target information 282e5b6d6dSopenharmony_ci 292e5b6d6dSopenharmony_ciTARGET_STUBNAME=$(TOOLUTIL_STUBNAME) 302e5b6d6dSopenharmony_ci 312e5b6d6dSopenharmony_ciifneq ($(ENABLE_STATIC),) 322e5b6d6dSopenharmony_ciTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) 332e5b6d6dSopenharmony_ciendif 342e5b6d6dSopenharmony_ci 352e5b6d6dSopenharmony_ciifneq ($(ENABLE_SHARED),) 362e5b6d6dSopenharmony_ciSO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) 372e5b6d6dSopenharmony_ciALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) 382e5b6d6dSopenharmony_ciendif 392e5b6d6dSopenharmony_ci 402e5b6d6dSopenharmony_ciALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) 412e5b6d6dSopenharmony_ci 422e5b6d6dSopenharmony_ciDYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 432e5b6d6dSopenharmony_ciDYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 442e5b6d6dSopenharmony_ciDYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 452e5b6d6dSopenharmony_ciCFLAGS += $(LIBCFLAGS) 462e5b6d6dSopenharmony_ciCXXFLAGS += $(LIBCXXFLAGS) 472e5b6d6dSopenharmony_ci 482e5b6d6dSopenharmony_ciCPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS) 492e5b6d6dSopenharmony_ci 502e5b6d6dSopenharmony_ci# from icuinfo 512e5b6d6dSopenharmony_ciCPPFLAGS+= "-DU_BUILD=\"@build@\"" "-DU_HOST=\"@host@\"" "-DU_CC=\"@CC@\"" "-DU_CXX=\"@CXX@\"" 522e5b6d6dSopenharmony_ciCPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit 532e5b6d6dSopenharmony_ci 542e5b6d6dSopenharmony_ciDEFS += -DU_TOOLUTIL_IMPLEMENTATION 552e5b6d6dSopenharmony_ciLDFLAGS += $(LDFLAGSICUTOOLUTIL) 562e5b6d6dSopenharmony_ciLIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) 572e5b6d6dSopenharmony_ci 582e5b6d6dSopenharmony_ciSOURCES = $(shell cat $(srcdir)/sources.txt) 592e5b6d6dSopenharmony_ciOBJECTS = $(SOURCES:.cpp=.o) 602e5b6d6dSopenharmony_ci 612e5b6d6dSopenharmony_ciSTATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 622e5b6d6dSopenharmony_ci 632e5b6d6dSopenharmony_ciDEPS = $(OBJECTS:.o=.d) 642e5b6d6dSopenharmony_ci 652e5b6d6dSopenharmony_ci-include Makefile.local 662e5b6d6dSopenharmony_ci 672e5b6d6dSopenharmony_ci## List of phony targets 682e5b6d6dSopenharmony_ci.PHONY : all all-local install install-local clean clean-local \ 692e5b6d6dSopenharmony_cidistclean distclean-local install-library dist \ 702e5b6d6dSopenharmony_cidist-local check check-local 712e5b6d6dSopenharmony_ci 722e5b6d6dSopenharmony_ci## Clear suffix list 732e5b6d6dSopenharmony_ci.SUFFIXES : 742e5b6d6dSopenharmony_ci 752e5b6d6dSopenharmony_ci## List of standard targets 762e5b6d6dSopenharmony_ciall: all-local 772e5b6d6dSopenharmony_ciinstall: install-local 782e5b6d6dSopenharmony_ciclean: clean-local 792e5b6d6dSopenharmony_cidistclean : distclean-local 802e5b6d6dSopenharmony_cidist: dist-local 812e5b6d6dSopenharmony_cicheck: all check-local 822e5b6d6dSopenharmony_ci 832e5b6d6dSopenharmony_ciall-local: $(ALL_TARGETS) 842e5b6d6dSopenharmony_ci 852e5b6d6dSopenharmony_ciinstall-local: install-library 862e5b6d6dSopenharmony_ci 872e5b6d6dSopenharmony_ciinstall-library: all-local 882e5b6d6dSopenharmony_ci $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 892e5b6d6dSopenharmony_ciifneq ($(ENABLE_STATIC),) 902e5b6d6dSopenharmony_ci $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 912e5b6d6dSopenharmony_ciendif 922e5b6d6dSopenharmony_ciifneq ($(ENABLE_SHARED),) 932e5b6d6dSopenharmony_ci# For MinGW, do we want the DLL to go in the bin location? 942e5b6d6dSopenharmony_ciifeq ($(MINGW_MOVEDLLSTOBINDIR),YES) 952e5b6d6dSopenharmony_ci $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 962e5b6d6dSopenharmony_ci $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir) 972e5b6d6dSopenharmony_cielse 982e5b6d6dSopenharmony_ci $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 992e5b6d6dSopenharmony_ciifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 1002e5b6d6dSopenharmony_ci cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 1012e5b6d6dSopenharmony_ciifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 1022e5b6d6dSopenharmony_ci cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 1032e5b6d6dSopenharmony_ciendif 1042e5b6d6dSopenharmony_ciendif 1052e5b6d6dSopenharmony_ciendif 1062e5b6d6dSopenharmony_ciifneq ($(IMPORT_LIB_EXT),) 1072e5b6d6dSopenharmony_ci $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 1082e5b6d6dSopenharmony_ciifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1092e5b6d6dSopenharmony_ci cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 1102e5b6d6dSopenharmony_ciendif 1112e5b6d6dSopenharmony_ciifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1122e5b6d6dSopenharmony_ci cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 1132e5b6d6dSopenharmony_ciendif 1142e5b6d6dSopenharmony_ciendif 1152e5b6d6dSopenharmony_ciendif 1162e5b6d6dSopenharmony_ci 1172e5b6d6dSopenharmony_cidist-local: 1182e5b6d6dSopenharmony_ci 1192e5b6d6dSopenharmony_ciclean-local: 1202e5b6d6dSopenharmony_ci test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 1212e5b6d6dSopenharmony_ci $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) 1222e5b6d6dSopenharmony_ci 1232e5b6d6dSopenharmony_cidistclean-local: clean-local 1242e5b6d6dSopenharmony_ci $(RMV) Makefile 1252e5b6d6dSopenharmony_ci 1262e5b6d6dSopenharmony_cicheck-local: all-local 1272e5b6d6dSopenharmony_ci 1282e5b6d6dSopenharmony_ciMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 1292e5b6d6dSopenharmony_ci cd $(top_builddir) \ 1302e5b6d6dSopenharmony_ci && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 1312e5b6d6dSopenharmony_ci 1322e5b6d6dSopenharmony_ciifneq ($(ENABLE_STATIC),) 1332e5b6d6dSopenharmony_ci$(TARGET): $(STATIC_OBJECTS) 1342e5b6d6dSopenharmony_ci $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 1352e5b6d6dSopenharmony_ci $(RANLIB) $@ 1362e5b6d6dSopenharmony_ciendif 1372e5b6d6dSopenharmony_ci 1382e5b6d6dSopenharmony_ciifneq ($(ENABLE_SHARED),) 1392e5b6d6dSopenharmony_ci$(SHARED_OBJECT): $(OBJECTS) 1402e5b6d6dSopenharmony_ci $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 1412e5b6d6dSopenharmony_ciifeq ($(ENABLE_RPATH),YES) 1422e5b6d6dSopenharmony_ciifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 1432e5b6d6dSopenharmony_ci $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 1442e5b6d6dSopenharmony_ciendif 1452e5b6d6dSopenharmony_ciendif 1462e5b6d6dSopenharmony_ciendif 1472e5b6d6dSopenharmony_ci 1482e5b6d6dSopenharmony_ciifeq (,$(MAKECMDGOALS)) 1492e5b6d6dSopenharmony_ci-include $(DEPS) 1502e5b6d6dSopenharmony_cielse 1512e5b6d6dSopenharmony_ciifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 1522e5b6d6dSopenharmony_ci-include $(DEPS) 1532e5b6d6dSopenharmony_ciendif 1542e5b6d6dSopenharmony_ciendif 1552e5b6d6dSopenharmony_ci 156