Home | History | Annotate | Download | only in cintltst
      1 #******************************************************************************
      2 #
      3 #   Copyright (C) 1999-2009, International Business Machines
      4 #   Corporation and others.  All Rights Reserved.
      5 #
      6 #******************************************************************************
      7 ## Makefile.in for ICU - test/cintltst
      8 
      9 ## Source directory information
     10 srcdir = @srcdir@
     11 top_srcdir = @top_srcdir@
     12 
     13 top_builddir = ../..
     14 
     15 ## All the flags and other definitions are included here.
     16 include $(top_builddir)/icudefs.mk
     17 
     18 ## Build directory information
     19 subdir = test/cintltst
     20 
     21 ## Extra files to remove for 'make clean'
     22 CLEANFILES = *~ $(DEPS)
     23 
     24 ## Target information
     25 TARGET = cintltst$(EXEEXT)
     26 
     27 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
     28 # Simplify the path for Unix
     29 BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
     30 # Simplify the path for Windows
     31 BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
     32 # Simplify the path for Windows 98
     33 BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
     34 
     35 ifneq ($(top_builddir),$(top_srcdir))
     36 CPPFLAGS += -I$(top_builddir)/common
     37 endif
     38 # we define ICU_UNICODE_VERSION so we can test it
     39 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil
     40 DEFS += -D'ICU_UNICODE_VERSION="$(UNICODE_VERSION)"' -D'ICU_VERSION="@VERSION@"' -D'ICUDATA_NAME="$(ICUDATA_PLATFORM_NAME)"' -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
     41 LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
     42 
     43 OBJECTS = callcoll.o calltest.o colutil.o capitst.o cbiapts.o cbkittst.o \
     44 ccaltst.o ucnvseltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \
     45 cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o cformtst.o \
     46 cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \
     47 cmsccoll.o cmsgtst.o cposxtst.o cldrtest.o \
     48 cnmdptst.o cnormtst.o cnumtst.o crestst.o creststn.o cturtst.o \
     49 cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \
     50 cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \
     51 ncnvfbts.o ncnvtst.o putiltst.o cstrtest.o udatpg_test.o utf8tst.o \
     52 stdnmtst.o usrchtst.o custrtrn.o sorttest.o trietest.o trie2test.o usettest.o \
     53 uenumtst.o utmstest.o currtest.o \
     54 idnatest.o nfsprep.o spreptst.o sprpdata.o \
     55 hpmufn.o tracetst.o reapits.o utexttst.o ucsdetst.o spooftest.o
     56 
     57 DEPS = $(OBJECTS:.o=.d)
     58 
     59 -include Makefile.local
     60 
     61 ## List of phony targets
     62 .PHONY : all all-local install install-local clean clean-local	\
     63 distclean distclean-local dist dist-local check check-local
     64 
     65 ## Clear suffix list
     66 .SUFFIXES :
     67 
     68 ## List of standard targets
     69 all: all-local
     70 install: install-local
     71 clean: clean-local
     72 distclean : distclean-local
     73 dist: dist-local
     74 check: all check-local
     75 
     76 all-local: $(TARGET)
     77 
     78 install-local:
     79 
     80 dist-local:
     81 
     82 clean-local:
     83 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
     84 	$(RMV) $(OBJECTS) $(TARGET)
     85 
     86 distclean-local: clean-local
     87 	$(RMV) Makefile
     88 
     89 check-local: all-local
     90 	$(INVOKE) ./$(TARGET) $(CINTLTST_OPTS)
     91 
     92 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     93 	cd $(top_builddir) \
     94 	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     95 
     96 $(TARGET) : $(OBJECTS)
     97 	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
     98 	$(POST_BUILD_STEP)
     99 
    100 ifeq (,$(MAKECMDGOALS))
    101 -include $(DEPS)
    102 else
    103 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    104 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
    105 -include $(DEPS)
    106 endif
    107 endif
    108 endif
    109 
    110