1## Makefile.in for ICU - test/letest 2## Copyright (c) 2001-2007, International Business Machines Corporation and 3## others. All Rights Reserved. 4 5## Source directory information 6srcdir = @srcdir@ 7top_srcdir = @top_srcdir@ 8 9top_builddir = ../.. 10 11include $(top_builddir)/icudefs.mk 12 13## Platform-specific setup 14include @platform_make_fragment@ 15 16## Build directory information 17subdir = test/letest 18 19## Extra files to remove for 'make clean' 20CLEANFILES = *~ $(DEPS) 21 22## Target information 23TESTTARGET = letest 24GENTARGET = gendata 25 26BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ 27# Simplify the path for Unix 28BUILDDIR := $(BUILDDIR:test/cintltst/../../=) 29# Simplify the path for Windows 30BUILDDIR := $(BUILDDIR:test\\cintltst/../../=) 31# Simplify the path for Windows 98 32BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=) 33 34ifneq ($(top_builddir),$(top_srcdir)) 35CPPFLAGS += -I$(top_builddir)/common 36endif 37 38CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/layout -I$(top_srcdir)/layoutex -I$(top_srcdir) 39DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' 40LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) @LIBS@ @LIB_M@ 41 42COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o 43TESTOBJECTS = letest.o 44CTESTOBJECTS = cfonts.o xmlreader.o cletest.o 45GENOBJECTS = gendata.o 46 47OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS) 48 49DEPS = $(OBJECTS:.o=.d) 50 51## List of phony targets 52.PHONY : all all-local install install-local clean clean-local \ 53distclean distclean-local dist dist-local check check-local 54 55## Clear suffix list 56.SUFFIXES : 57 58## List of standard targets 59all: all-local 60install: install-local 61clean: clean-local 62distclean : distclean-local 63dist: dist-local 64check: all check-local 65 66all-local: $(TESTTARGET) 67 68install-local: 69 70dist-local: 71 72clean-local: 73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 74 $(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET) 75 76distclean-local: clean-local 77 $(RMV) Makefile 78 79check-local: all-local 80 $(INVOKE) ./$(TESTTARGET) 81 82Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 83 cd $(top_builddir) \ 84 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 85 86$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) 87 $(LINK.cc) -o $@ $^ $(LIBS) 88 $(POST_BUILD_STEP) 89 90$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS) 91 $(LINK.cc) -o $@ $^ $(LIBS) 92 $(POST_BUILD_STEP) 93 94invoke: 95 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION) 96 97ifeq (,$(MAKECMDGOALS)) 98-include $(DEPS) 99else 100ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 101ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) 102-include $(DEPS) 103endif 104endif 105endif 106