]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/genpname |
374ca955 | 2 | ## Copyright (c) 1999-2004, International Business Machines Corporation and |
b75a7d8f A |
3 | ## others. All Rights Reserved. |
4 | ## Steven R. Loomis | |
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 | ||
16 | ## Build directory information | |
17 | subdir = tools/genpname | |
18 | ||
374ca955 A |
19 | TARGET_STUB_NAME = genpname |
20 | ||
b75a7d8f | 21 | ## Extra files to remove for 'make clean' |
374ca955 | 22 | CLEANFILES = *~ $(DEPS) |
b75a7d8f A |
23 | |
24 | ## Target information | |
374ca955 | 25 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
26 | |
27 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
28 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
29 | ||
30 | OBJECTS = genpname.o | |
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 \ | |
374ca955 | 37 | check-local |
b75a7d8f A |
38 | |
39 | ## Clear suffix list | |
40 | .SUFFIXES : | |
41 | ||
42 | ## List of standard targets | |
43 | all: all-local | |
44 | install: install-local | |
45 | clean: clean-local | |
46 | distclean : distclean-local | |
47 | dist: dist-local | |
48 | check: all check-local | |
49 | ||
374ca955 | 50 | all-local: $(TARGET) $(MAN_FILES) |
b75a7d8f A |
51 | |
52 | install-local: all-local | |
53 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
374ca955 | 54 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) |
b75a7d8f A |
55 | |
56 | dist-local: | |
57 | ||
58 | clean-local: | |
59 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
60 | $(RMV) $(TARGET) $(OBJECTS) | |
61 | ||
62 | distclean-local: clean-local | |
63 | $(RMV) Makefile | |
64 | ||
65 | check-local: all-local | |
66 | ||
67 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
68 | cd $(top_builddir) \ | |
69 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
70 | ||
71 | $(TARGET) : $(OBJECTS) | |
72 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
73 | ||
74 | ifeq (,$(MAKECMDGOALS)) | |
75 | -include $(DEPS) | |
76 | else | |
77 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
78 | -include $(DEPS) | |
79 | endif | |
80 | endif | |
81 |