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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 ## ******************************************************************************
     2 ## *
     3 ## *   Copyright (C) 1999-2012, International Business Machines
     4 ## *   Corporation and others.  All Rights Reserved.
     5 ## *
     6 ## *******************************************************************************
     7 ## Makefile.in for ICU - uconv
     8 ## Steven  R. Loomis
    10 ## Set the following to dll or static or common..
    11 UCONVMSG_MODE=static
    12 ##############################################################
    14 srcdir=@srcdir@
    15 top_srcdir=@top_srcdir@
    17 top_builddir = ../..
    18 subdir = extra/uconv
    20 include $(top_builddir)/icudefs.mk
    22 MSGNAME=uconvmsg
    24 # RESSRC comes from resfiles.mk
    25 FILESEPCHAR=/
    26 include $(srcdir)/resfiles.mk
    28 RESDIR=$(MSGNAME)
    29 RESFILES=$(RESSRC:$(RESOURCESDIR)$(FILESEPCHAR)%.txt=$(RESDIR)/%.res)
    31 ##
    33 TARGET_STUB_NAME = uconv
    35 SECTION = 1
    37 ALL_MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
    39 ## Extra files to remove for 'make clean'
    40 CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
    42 ## Target information
    43 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
    45 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
    46 LIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
    48 ifeq ($(PKGDATA_OPTS),)
    49 PKGDATA_OPTS = -O pkgdata.inc
    50 endif
    52 ## generic settings for data - common.
    53 PKGMODE=common
    54 INSTALLTO=$(DESTDIR)$(ICUDATA_DIR)
    55 UCONVMSG_LIB=package-resfiles
    57 ## Static mode
    58 ifeq ($(UCONVMSG_MODE),static)
    59 DEFS += -DUCONVMSG_LINK=$(MSGNAME)
    60 UCONVMSG_LIB = $(RESDIR)/$(LIBPREFIX)$(STATIC_PREFIX_WHEN_USED)$(MSGNAME).$(A)
    61 LIBS += $(UCONVMSG_LIB)
    62 PKGMODE=static
    63 INSTALLTO=$(libdir)
    64 endif
    66 ## DLL mode
    67 ifeq ($(UCONVMSG_MODE),dll)
    68 DEFS += -DUCONVMSG_LINK=$(MSGNAME)
    69 LIBS += -L$(RESDIR) -l$(MSGNAME)
    70 PKGMODE=dll
    71 INSTALLTO=$(libdir)
    72 endif
    74 OBJECTS = uconv.o uwmsg.o
    76 DEPS = $(OBJECTS:.o=.d)
    78 ## List of phony targets
    79 .PHONY : all all-local install install-local clean clean-local \
    80 distclean resclean distclean-local dist dist-local \
    81 check check-local build-dir package-resfiles install-resfiles install-man
    83 ## Clear suffix list
    84 .SUFFIXES :
    86 ## List of standard targets
    87 all: all-local
    89 install: install-local
    90 clean: clean-local
    91 distclean : distclean-local
    92 dist: dist-local
    93 check: check-local
    95 all-local: build-dir $(TARGET) $(ALL_MAN_FILES)
    97 install-local: all-local install-target install-resfiles install-man
    99 install-target: all-local
   100 	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
   101 	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
   103 dist-local:
   105 clean-local: resclean
   106 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) $(RESFILES)
   107 	$(RMV) $(OBJECTS) $(TARGET)
   109 resclean:
   110 	@#-$(INVOKE) $(TOOLBINDIR)/pkgdata --clean -p $(RESDIR) -O pkgdata.inc -m $(PKGMODE) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   111 	$(RMV) pkgdata.inc $(RESDIR)
   113 distclean-local: clean-local
   114 	$(RMV) Makefile $(DEPS)
   116 check-local: $(TARGET)
   117 ifneq (,$(filter $(PKGDATA_MODE),files common))
   118 	@echo "Currently, pkgdata is in \"$(PKGDATA_MODE)\" mode."
   119 	@echo "To test uconv, run this manually after installing ICU:"
   120 	@echo "\"./$(TARGET) -f ibm-37 $(srcdir)/samples/ibm-37-test.txt\""
   121 else
   122 	$(INVOKE) ./$(TARGET) -f ibm-37 $(srcdir)/samples/ibm-37-test.txt
   123 endif
   125 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
   126 	cd $(top_builddir) \
   127 	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   129 pkgdata.inc: pkgdataMakefile
   130 	$(MAKE) -f pkgdataMakefile
   132 build-dir:
   133 	@$(MKINSTALLDIRS) $(RESDIR)
   135 pkgdataMakefile:
   136 	cd $(top_builddir) \
   137 	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   139 $(TARGET_STUB_NAME).$(SECTION): $(srcdir)/$(TARGET_STUB_NAME).$(SECTION).in pkgdata.inc
   140 	cd $(top_builddir) \
   141 	 && CONFIG_FILES=$(subdir)/$(TARGET_STUB_NAME).$(SECTION) CONFIG_HEADERS= $(SHELL) ./config.status
   143 $(TARGET) : $(OBJECTS)  $(UCONVMSG_LIB)
   144 	$(LINK.cc) $(OUTOPT)$@ $(OBJECTS) $(LIBS)
   145 	$(POST_BUILD_STEP)
   147 # The | is an order-only prerequisite. This helps when the -j option is used,
   148 # and we don't want the files to be built before the directories are built.
   149 ifneq ($(filter order-only,$(.FEATURES)),)
   150 $(RESFILES) $(RESDIR)/$(RESDIR).lst: | build-dir
   151 endif
   153 $(UCONVMSG_LIB): $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc
   154 	$(INVOKE) $(PKGDATA_INVOKE_OPTS) $(TOOLBINDIR)/pkgdata -p $(MSGNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   156 $(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk
   157 	@-$(RMV) $@
   158 	@for file in $(RESFILES:$(RESDIR)/%.res=%.res); do \
   159 	  echo $$file >> $@; \
   160 	done;
   162 # no install for static mode
   163 ifneq ($(UCONVMSG_MODE),static)
   164 install-resfiles: $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc 
   165 	$(MKINSTALLDIRS) $(DESTDIR)$(ICUDATA_DIR)
   166 	$(INVOKE) $(TOOLBINDIR)/pkgdata -p $(RESDIR) -O pkgdata.inc -m $(PKGMODE) -d $(RESDIR) -I $(INSTALLTO) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
   167 else
   168 install-resfiles:
   169 endif
   171 $(MSGNAME)/%.res: $(srcdir)/$(RESOURCESDIR)/%.txt
   172 	$(INVOKE) $(TOOLBINDIR)/genrb -e UTF-8 -s $(^D) -d $(@D) $(^F)
   174 install-man: $(ALL_MAN_FILES)
   175 	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
   176 	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)

mercurial