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