]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/gennorm |
374ca955 | 2 | ## Copyright (c) 2001-2004, International Business Machines Corporation and |
b75a7d8f A |
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 | ## | |
15 | ||
374ca955 A |
16 | TARGET_STUB_NAME = gennorm |
17 | ||
b75a7d8f A |
18 | SECTION = 8 |
19 | ||
374ca955 | 20 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f A |
21 | |
22 | ## Build directory information | |
23 | subdir = tools/gennorm | |
24 | ||
b75a7d8f | 25 | ## Extra files to remove for 'make clean' |
374ca955 | 26 | CLEANFILES = *~ $(DEPS) $(MAN_FILES) |
b75a7d8f A |
27 | |
28 | ## Target information | |
374ca955 | 29 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
30 | |
31 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
32 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
33 | ||
34 | OBJECTS = gennorm.o store.o | |
35 | ||
36 | DEPS = $(OBJECTS:.o=.d) | |
37 | ||
38 | ## List of phony targets | |
39 | .PHONY : all all-local install install-local clean clean-local \ | |
40 | distclean distclean-local dist dist-local check \ | |
374ca955 | 41 | check-local install-man |
b75a7d8f A |
42 | |
43 | ## Clear suffix list | |
44 | .SUFFIXES : | |
45 | ||
46 | ## List of standard targets | |
47 | all: all-local | |
48 | install: install-local | |
49 | clean: clean-local | |
50 | distclean : distclean-local | |
51 | dist: dist-local | |
52 | check: all check-local | |
53 | ||
374ca955 | 54 | all-local: $(TARGET) $(MAN_FILES) |
b75a7d8f A |
55 | |
56 | install-local: all-local install-man | |
57 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
374ca955 | 58 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) |
b75a7d8f A |
59 | |
60 | # man page | |
61 | install-man: $(MAN_FILES) | |
62 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
63 | $(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION) | |
64 | ||
65 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
66 | cd $(top_builddir) \ | |
67 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
68 | ||
69 | # build postscript and pdf formats | |
70 | #$(TARGET).ps: $(TARGET).$(SECTION) | |
71 | # groff -man < $< > $@ | |
72 | ||
73 | #$(TARGET).pdf: $(TARGET).ps | |
74 | # ps2pdf $< $@ | |
75 | ||
76 | dist-local: | |
77 | ||
78 | clean-local: | |
79 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
80 | $(RMV) $(TARGET) $(OBJECTS) | |
81 | ||
82 | distclean-local: clean-local | |
83 | $(RMV) Makefile | |
84 | ||
85 | check-local: all-local | |
86 | ||
87 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
88 | cd $(top_builddir) \ | |
89 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
90 | ||
91 | $(TARGET) : $(OBJECTS) | |
92 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
93 | ||
94 | ifeq (,$(MAKECMDGOALS)) | |
95 | -include $(DEPS) | |
96 | else | |
97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
98 | -include $(DEPS) | |
99 | endif | |
100 | endif | |
101 |