intl/icu/source/extra/uconv/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/extra/uconv/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,179 @@
     1.4 +## ******************************************************************************
     1.5 +## *
     1.6 +## *   Copyright (C) 1999-2012, International Business Machines
     1.7 +## *   Corporation and others.  All Rights Reserved.
     1.8 +## *
     1.9 +## *******************************************************************************
    1.10 +## Makefile.in for ICU - uconv
    1.11 +## Steven  R. Loomis
    1.12 +
    1.13 +## Set the following to dll or static or common..
    1.14 +UCONVMSG_MODE=static
    1.15 +##############################################################
    1.16 +
    1.17 +srcdir=@srcdir@
    1.18 +top_srcdir=@top_srcdir@
    1.19 +
    1.20 +top_builddir = ../..
    1.21 +subdir = extra/uconv
    1.22 +
    1.23 +include $(top_builddir)/icudefs.mk
    1.24 +
    1.25 +MSGNAME=uconvmsg
    1.26 +
    1.27 +# RESSRC comes from resfiles.mk
    1.28 +FILESEPCHAR=/
    1.29 +include $(srcdir)/resfiles.mk
    1.30 +
    1.31 +RESDIR=$(MSGNAME)
    1.32 +RESFILES=$(RESSRC:$(RESOURCESDIR)$(FILESEPCHAR)%.txt=$(RESDIR)/%.res)
    1.33 +
    1.34 +##
    1.35 +
    1.36 +TARGET_STUB_NAME = uconv
    1.37 +
    1.38 +SECTION = 1
    1.39 +
    1.40 +ALL_MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
    1.41 +
    1.42 +## Extra files to remove for 'make clean'
    1.43 +CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
    1.44 +
    1.45 +## Target information
    1.46 +TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
    1.47 +
    1.48 +CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
    1.49 +LIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
    1.50 +
    1.51 +ifeq ($(PKGDATA_OPTS),)
    1.52 +PKGDATA_OPTS = -O pkgdata.inc
    1.53 +endif
    1.54 +
    1.55 +## generic settings for data - common.
    1.56 +PKGMODE=common
    1.57 +INSTALLTO=$(DESTDIR)$(ICUDATA_DIR)
    1.58 +UCONVMSG_LIB=package-resfiles
    1.59 +
    1.60 +## Static mode
    1.61 +ifeq ($(UCONVMSG_MODE),static)
    1.62 +DEFS += -DUCONVMSG_LINK=$(MSGNAME)
    1.63 +UCONVMSG_LIB = $(RESDIR)/$(LIBPREFIX)$(STATIC_PREFIX_WHEN_USED)$(MSGNAME).$(A)
    1.64 +LIBS += $(UCONVMSG_LIB)
    1.65 +PKGMODE=static
    1.66 +INSTALLTO=$(libdir)
    1.67 +endif
    1.68 +
    1.69 +## DLL mode
    1.70 +ifeq ($(UCONVMSG_MODE),dll)
    1.71 +DEFS += -DUCONVMSG_LINK=$(MSGNAME)
    1.72 +LIBS += -L$(RESDIR) -l$(MSGNAME)
    1.73 +PKGMODE=dll
    1.74 +INSTALLTO=$(libdir)
    1.75 +endif
    1.76 +
    1.77 +OBJECTS = uconv.o uwmsg.o
    1.78 +
    1.79 +DEPS = $(OBJECTS:.o=.d)
    1.80 +
    1.81 +## List of phony targets
    1.82 +.PHONY : all all-local install install-local clean clean-local \
    1.83 +distclean resclean distclean-local dist dist-local \
    1.84 +check check-local build-dir package-resfiles install-resfiles install-man
    1.85 +
    1.86 +## Clear suffix list
    1.87 +.SUFFIXES :
    1.88 +
    1.89 +## List of standard targets
    1.90 +all: all-local
    1.91 +
    1.92 +install: install-local
    1.93 +clean: clean-local
    1.94 +distclean : distclean-local
    1.95 +dist: dist-local
    1.96 +check: check-local
    1.97 +
    1.98 +all-local: build-dir $(TARGET) $(ALL_MAN_FILES)
    1.99 +
   1.100 +install-local: all-local install-target install-resfiles install-man
   1.101 +
   1.102 +install-target: all-local
   1.103 +	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
   1.104 +	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
   1.105 +
   1.106 +dist-local:
   1.107 +
   1.108 +clean-local: resclean
   1.109 +	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) $(RESFILES)
   1.110 +	$(RMV) $(OBJECTS) $(TARGET)
   1.111 +
   1.112 +resclean:
   1.113 +	@#-$(INVOKE) $(TOOLBINDIR)/pkgdata --clean -p $(RESDIR) -O pkgdata.inc -m $(PKGMODE) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   1.114 +	$(RMV) pkgdata.inc $(RESDIR)
   1.115 +
   1.116 +distclean-local: clean-local
   1.117 +	$(RMV) Makefile $(DEPS)
   1.118 +
   1.119 +check-local: $(TARGET)
   1.120 +ifneq (,$(filter $(PKGDATA_MODE),files common))
   1.121 +	@echo "Currently, pkgdata is in \"$(PKGDATA_MODE)\" mode."
   1.122 +	@echo "To test uconv, run this manually after installing ICU:"
   1.123 +	@echo "\"./$(TARGET) -f ibm-37 $(srcdir)/samples/ibm-37-test.txt\""
   1.124 +else
   1.125 +	$(INVOKE) ./$(TARGET) -f ibm-37 $(srcdir)/samples/ibm-37-test.txt
   1.126 +endif
   1.127 +
   1.128 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
   1.129 +	cd $(top_builddir) \
   1.130 +	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   1.131 +
   1.132 +pkgdata.inc: pkgdataMakefile
   1.133 +	$(MAKE) -f pkgdataMakefile
   1.134 +
   1.135 +build-dir:
   1.136 +	@$(MKINSTALLDIRS) $(RESDIR)
   1.137 +
   1.138 +pkgdataMakefile:
   1.139 +	cd $(top_builddir) \
   1.140 +	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   1.141 +
   1.142 +$(TARGET_STUB_NAME).$(SECTION): $(srcdir)/$(TARGET_STUB_NAME).$(SECTION).in pkgdata.inc
   1.143 +	cd $(top_builddir) \
   1.144 +	 && CONFIG_FILES=$(subdir)/$(TARGET_STUB_NAME).$(SECTION) CONFIG_HEADERS= $(SHELL) ./config.status
   1.145 +
   1.146 +$(TARGET) : $(OBJECTS)  $(UCONVMSG_LIB)
   1.147 +	$(LINK.cc) $(OUTOPT)$@ $(OBJECTS) $(LIBS)
   1.148 +	$(POST_BUILD_STEP)
   1.149 +
   1.150 +# The | is an order-only prerequisite. This helps when the -j option is used,
   1.151 +# and we don't want the files to be built before the directories are built.
   1.152 +ifneq ($(filter order-only,$(.FEATURES)),)
   1.153 +$(RESFILES) $(RESDIR)/$(RESDIR).lst: | build-dir
   1.154 +endif
   1.155 +
   1.156 +$(UCONVMSG_LIB): $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc
   1.157 +	$(INVOKE) $(PKGDATA_INVOKE_OPTS) $(TOOLBINDIR)/pkgdata -p $(MSGNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   1.158 +
   1.159 +$(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk
   1.160 +	@-$(RMV) $@
   1.161 +	@for file in $(RESFILES:$(RESDIR)/%.res=%.res); do \
   1.162 +	  echo $$file >> $@; \
   1.163 +	done;
   1.164 +
   1.165 +# no install for static mode
   1.166 +ifneq ($(UCONVMSG_MODE),static)
   1.167 +install-resfiles: $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc 
   1.168 +	$(MKINSTALLDIRS) $(DESTDIR)$(ICUDATA_DIR)
   1.169 +	$(INVOKE) $(TOOLBINDIR)/pkgdata -p $(RESDIR) -O pkgdata.inc -m $(PKGMODE) -d $(RESDIR) -I $(INSTALLTO) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   1.170 +else
   1.171 +install-resfiles:
   1.172 +endif
   1.173 +
   1.174 +$(MSGNAME)/%.res: $(srcdir)/$(RESOURCESDIR)/%.txt
   1.175 +	$(INVOKE) $(TOOLBINDIR)/genrb -e UTF-8 -s $(^D) -d $(@D) $(^F)
   1.176 +
   1.177 +install-man: $(ALL_MAN_FILES)
   1.178 +	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
   1.179 +	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
   1.180 +
   1.181 +
   1.182 +

mercurial