]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU - tools/gennorm2 | |
2 | ## Copyright (c) 2009-2011, International Business Machines Corporation and | |
3 | ## others. All Rights Reserved. | |
4 | ## Steven R. Loomis/Markus W. Scherer | |
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/gennorm2 | |
16 | ||
17 | TARGET_STUB_NAME = gennorm2 | |
18 | ||
19 | ## Extra files to remove for 'make clean' | |
20 | CLEANFILES = *~ $(DEPS) | |
21 | ||
22 | ## Target information | |
23 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) | |
24 | ||
25 | CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
26 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
27 | ||
28 | OBJECTS = gennorm2.o n2builder.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 install-man | |
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 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
51 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) | |
52 | ||
53 | dist-local: | |
54 | ||
55 | clean-local: | |
56 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
57 | $(RMV) $(TARGET) $(OBJECTS) | |
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) $(OUTOPT)$@ $^ $(LIBS) | |
70 | $(POST_BUILD_STEP) | |
71 | ||
72 | ||
73 | ifeq (,$(MAKECMDGOALS)) | |
74 | -include $(DEPS) | |
75 | else | |
76 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
77 | -include $(DEPS) | |
78 | endif | |
79 | endif |