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