]>
Commit | Line | Data |
---|---|---|
729e4ab9 | 1 | ## Makefile.in for ICU - tools/gennorm2 |
f3c0d7a5 A |
2 | ## Copyright (C) 2016 and later: Unicode, Inc. and others. |
3 | ## License & terms of use: http://www.unicode.org/copyright.html | |
4388f060 | 4 | ## Copyright (c) 2009-2011, International Business Machines Corporation and |
73c04bcf | 5 | ## others. All Rights Reserved. |
729e4ab9 | 6 | ## Steven R. Loomis/Markus W. Scherer |
73c04bcf A |
7 | |
8 | ## Source directory information | |
9 | srcdir = @srcdir@ | |
10 | top_srcdir = @top_srcdir@ | |
11 | ||
12 | top_builddir = ../.. | |
13 | ||
14 | include $(top_builddir)/icudefs.mk | |
15 | ||
16 | ## Build directory information | |
729e4ab9 | 17 | subdir = tools/gennorm2 |
73c04bcf | 18 | |
729e4ab9 | 19 | TARGET_STUB_NAME = gennorm2 |
73c04bcf A |
20 | |
21 | ## Extra files to remove for 'make clean' | |
729e4ab9 | 22 | CLEANFILES = *~ $(DEPS) |
73c04bcf A |
23 | |
24 | ## Target information | |
25 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) | |
26 | ||
f3c0d7a5 | 27 | CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil |
73c04bcf A |
28 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
29 | ||
729e4ab9 | 30 | OBJECTS = gennorm2.o n2builder.o |
73c04bcf A |
31 | |
32 | DEPS = $(OBJECTS:.o=.d) | |
33 | ||
34 | ## List of phony targets | |
35 | .PHONY : all all-local install install-local clean clean-local \ | |
36 | distclean distclean-local dist dist-local check check-local install-man | |
37 | ||
38 | ## Clear suffix list | |
39 | .SUFFIXES : | |
40 | ||
41 | ## List of standard targets | |
42 | all: all-local | |
43 | install: install-local | |
44 | clean: clean-local | |
45 | distclean : distclean-local | |
46 | dist: dist-local | |
47 | check: all check-local | |
48 | ||
729e4ab9 | 49 | all-local: $(TARGET) |
73c04bcf | 50 | |
729e4ab9 A |
51 | install-local: all-local |
52 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
53 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) | |
73c04bcf A |
54 | |
55 | dist-local: | |
56 | ||
57 | clean-local: | |
58 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
59 | $(RMV) $(TARGET) $(OBJECTS) | |
60 | ||
61 | distclean-local: clean-local | |
62 | $(RMV) Makefile | |
63 | ||
64 | check-local: all-local | |
65 | ||
66 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
67 | cd $(top_builddir) \ | |
68 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
69 | ||
70 | $(TARGET) : $(OBJECTS) | |
71 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
46f4442e | 72 | $(POST_BUILD_STEP) |
73c04bcf A |
73 | |
74 | ||
73c04bcf A |
75 | ifeq (,$(MAKECMDGOALS)) |
76 | -include $(DEPS) | |
77 | else | |
78 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
79 | -include $(DEPS) | |
80 | endif | |
81 | endif |