]>
Commit | Line | Data |
---|---|---|
57a6839d | 1 | ## Makefile.in for ICU - test/perf/collperf |
f3c0d7a5 A |
2 | ## Copyright (C) 2016 and later: Unicode, Inc. and others. |
3 | ## License & terms of use: http://www.unicode.org/copyright.html#License | |
4 | ## | |
57a6839d | 5 | ## Copyright (c) 2001-2013, International Business Machines Corporation and |
b75a7d8f A |
6 | ## others. All Rights Reserved. |
7 | ||
8 | ## Source directory information | |
9 | srcdir = @srcdir@ | |
10 | top_srcdir = @top_srcdir@ | |
11 | ||
57a6839d | 12 | top_builddir = ../../.. |
b75a7d8f A |
13 | |
14 | include $(top_builddir)/icudefs.mk | |
15 | ||
57a6839d A |
16 | -include Makefile.local |
17 | ||
b75a7d8f | 18 | ## Build directory information |
57a6839d | 19 | subdir = test/perf/leperf |
b75a7d8f A |
20 | |
21 | ## Extra files to remove for 'make clean' | |
22 | CLEANFILES = *~ $(DEPS) | |
23 | ||
24 | ## Target information | |
57a6839d | 25 | TARGET = leperf |
b75a7d8f | 26 | |
57a6839d A |
27 | CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/layout/.. -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io -I$(top_srcdir)/i18n |
28 | LIBS = $(LIBCTESTFW) $(LIBICUIO) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M) | |
b75a7d8f | 29 | |
57a6839d | 30 | OBJECTS = $(TARGET).o |
b75a7d8f A |
31 | |
32 | DEPS = $(OBJECTS:.o=.d) | |
33 | ||
34 | ## List of phony targets | |
35 | .PHONY : all all-local install install-local clean clean-local \ | |
36 | distclean distclean-local dist dist-local check check-local | |
37 | ||
38 | ## Clear suffix list | |
39 | .SUFFIXES : | |
40 | ||
41 | ## List of standard targets | |
42 | all: all-local | |
43 | install: install-local | |
44 | clean: clean-local | |
45 | distclean : distclean-local | |
46 | dist: dist-local | |
47 | check: all check-local | |
48 | ||
49 | all-local: $(TARGET) | |
50 | ||
51 | install-local: | |
52 | ||
53 | dist-local: | |
54 | ||
55 | clean-local: | |
56 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
57 | $(RMV) $(OBJECTS) $(TARGET) | |
58 | ||
59 | distclean-local: clean-local | |
60 | $(RMV) Makefile | |
61 | ||
62 | check-local: all-local | |
63 | ||
64 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
65 | cd $(top_builddir) \ | |
66 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
67 | ||
68 | $(TARGET) : $(OBJECTS) | |
69 | $(LINK.cc) -o $@ $^ $(LIBS) | |
46f4442e | 70 | $(POST_BUILD_STEP) |
b75a7d8f A |
71 | |
72 | invoke: | |
57a6839d A |
73 | @$(RMV) current.out |
74 | # following is bash specific | |
75 | set -o pipefail && ( ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(TARGET) $(INVOCATION) | tee current.out ) | |
b75a7d8f A |
76 | |
77 | ifeq (,$(MAKECMDGOALS)) | |
78 | -include $(DEPS) | |
79 | else | |
80 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
57a6839d | 81 | ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) |
b75a7d8f A |
82 | -include $(DEPS) |
83 | endif | |
84 | endif | |
57a6839d A |
85 | endif |
86 |