]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU - tools/gentest | |
2 | ||
3 | ## Copyright (c) 1999-2003, International Business Machines Corporation and | |
4 | ## others. All Rights Reserved. | |
5 | ## Madhu Katragadda | |
6 | ||
7 | ## Source directory information | |
8 | srcdir = @srcdir@ | |
9 | top_srcdir = @top_srcdir@ | |
10 | ||
11 | top_builddir = ../.. | |
12 | ||
13 | include $(top_builddir)/icudefs.mk | |
14 | ||
15 | ## Build directory information | |
16 | subdir = tools/gentest | |
17 | ||
18 | ## | |
19 | ||
20 | ICUDATADIR=$(top_builddir)/data | |
21 | ||
22 | ## Extra files to remove for 'make clean' | |
23 | CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) | |
24 | ||
25 | ## Target information | |
26 | TARGET = gentest$(EXEEXT) | |
27 | ||
28 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
29 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
30 | ||
31 | OBJECTS = gentest.o | |
32 | ||
33 | DEPS = $(OBJECTS:.o=.d) | |
34 | ||
35 | TEST_FILES = $(ICUDATADIR)/test.dat | |
36 | ||
37 | ## List of phony targets | |
38 | .PHONY : all all-local install install-local clean clean-local \ | |
39 | distclean distclean-local dist dist-local check \ | |
40 | check-local build-data | |
41 | ||
42 | ## Clear suffix list | |
43 | .SUFFIXES : | |
44 | ||
45 | ## List of standard targets | |
46 | all: all-local | |
47 | install: install-local | |
48 | clean: clean-local | |
49 | distclean : distclean-local | |
50 | dist: dist-local | |
51 | check: all check-local | |
52 | ||
53 | all-local: $(TARGET) | |
54 | ||
55 | install-local: all-local | |
56 | ||
57 | dist-local: | |
58 | ||
59 | clean-local: | |
60 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
61 | $(RMV) $(TARGET) $(OBJECTS) | |
62 | ||
63 | distclean-local: clean-local | |
64 | $(RMV) Makefile | |
65 | ||
66 | check-local: all-local | |
67 | ||
68 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
69 | cd $(top_builddir) \ | |
70 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
71 | ||
72 | $(TARGET) : $(OBJECTS) | |
73 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
74 | ||
75 | ifeq (,$(MAKECMDGOALS)) | |
76 | -include $(DEPS) | |
77 | else | |
78 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
79 | -include $(DEPS) | |
80 | endif | |
81 | endif | |
82 | ||
83 |