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