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