intl/icu/source/tools/ctestfw/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-2011, International Business Machines
     4 #   Corporation and others.  All Rights Reserved.
     5 #
     6 #******************************************************************************
     7 ## Makefile.in for ICU - tools/ctestfw
     8 ## Stephen F. Booth
    10 ## Source directory information
    11 srcdir = @srcdir@
    12 top_srcdir = @top_srcdir@
    14 top_builddir = ../..
    16 ## All the flags and other definitions are included here.
    17 include $(top_builddir)/icudefs.mk
    19 ## Build directory information
    20 subdir = tools/ctestfw
    22 ## Extra files to remove for 'make clean'
    23 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
    25 ## Target information
    27 TARGET_STUBNAME=$(CTESTFW_STUBNAME)
    29 ifneq ($(ENABLE_STATIC),)
    30 TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
    31 endif
    33 ifneq ($(ENABLE_SHARED),)
    34 SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
    35 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
    36 endif
    38 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
    40 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
    41 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
    42 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
    43 CFLAGS += $(LIBCFLAGS)
    44 CXXFLAGS += $(LIBCXXFLAGS)
    46 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW)
    47 DEFS += -DT_CTEST_IMPLEMENTATION
    48 LDFLAGS += $(LDFLAGSCTESTFW)
    49 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
    51 OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o ucln_ct.o
    53 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
    55 DEPS = $(OBJECTS:.o=.d)
    57 -include Makefile.local
    59 ## List of phony targets
    60 .PHONY : all all-local install install-local clean clean-local	\
    61 distclean distclean-local dist dist-local check check-local
    63 ## Clear suffix list
    64 .SUFFIXES :
    66 ## List of standard targets
    67 all: all-local
    68 install: install-local
    69 clean: clean-local
    70 distclean : distclean-local
    71 dist: dist-local
    72 check: all check-local
    74 all-local: $(ALL_TARGETS)
    76 install-local: install-library
    78 install-library: all-local
    79 	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
    80 ifneq ($(ENABLE_STATIC),)
    81 	$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
    82 endif
    83 ifneq ($(ENABLE_SHARED),)
    84 	$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
    85 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
    86 	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
    87 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
    88 	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
    89 endif
    90 endif
    91 ifneq ($(IMPORT_LIB_EXT),)
    92 	$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
    93 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
    94 	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
    95 endif
    96 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
    97 	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
    98 endif
    99 endif
   100 endif
   102 dist-local:
   104 clean-local:
   105 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
   106 	$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
   108 distclean-local: clean-local
   109 	$(RMV) Makefile
   111 check-local: all-local
   113 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
   114 	cd $(top_builddir) \
   115 	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   117 ifneq ($(ENABLE_STATIC),)
   118 $(TARGET): $(STATIC_OBJECTS)
   119 	$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
   120 	$(RANLIB) $@
   121 endif
   123 ifneq ($(ENABLE_SHARED),)
   124 $(SHARED_OBJECT): $(OBJECTS)
   125 	$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
   126 ifeq ($(ENABLE_RPATH),YES)
   127 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
   128 	$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
   129 endif
   130 endif
   131 endif
   133 ifeq (,$(MAKECMDGOALS))
   134 -include $(DEPS)
   135 else
   136 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
   137 -include $(DEPS)
   138 endif
   139 endif

mercurial