]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/gencmn/Makefile.in
ICU-6.2.10.tar.gz
[apple/icu.git] / icuSources / tools / gencmn / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/gencmn
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
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/gencmn
16
17##
18
374ca955
A
19TARGET_STUB_NAME = gencmn
20DECMN_STUB_NAME = decmn
21
b75a7d8f
A
22SECTION = 8
23
374ca955 24MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DECMN_STUB_NAME).$(SECTION)
b75a7d8f
A
25
26ALL_MAN_FILES = $(MANX_FILES)
27
28## Extra files to remove for 'make clean'
374ca955 29CLEANFILES = *~ $(DEPS) $(DECMN_DEP) $(ALL_MAN_FILES)
b75a7d8f
A
30
31## Target information
374ca955
A
32TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33DECMN = $(BINDIR)/$(DECMN_STUB_NAME)$(EXEEXT)
b75a7d8f
A
34
35CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
36LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
37
38OBJECTS = gencmn.o
39DECMN_OBJ = decmn.o
40
41DEPS = $(OBJECTS:.o=.d)
42DECMN_DEP = $(DECMN_OBJ:.o=.d)
43
44## List of phony targets
45.PHONY : all all-local install install-local clean clean-local \
46distclean distclean-local dist dist-local check \
47check-local install-man install-manx
48
49## Clear suffix list
50.SUFFIXES :
51
52## List of standard targets
53all: all-local
54install: install-local
55clean: clean-local
56distclean : distclean-local
57dist: dist-local
58check: all check-local
59
374ca955 60all-local: $(TARGET) $(DECMN) $(ALL_MAN_FILES)
b75a7d8f
A
61
62install-local: all-local install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
374ca955
A
64 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
65 $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)
b75a7d8f
A
66
67dist-local:
68
69clean-local:
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(TARGET) $(OBJECTS) $(DECMN) $(DECMN_OBJ)
72
73distclean-local: clean-local
74 $(RMV) Makefile
75
76check-local: all-local
77
78Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
79 cd $(top_builddir) \
80 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
81
82$(TARGET) : $(OBJECTS)
83 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
84
85$(DECMN) : $(DECMN_OBJ)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
87
88# man page
89install-man: install-manx
90install-manx: $(MANX_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
92 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
93
374ca955
A
94# This line is needed to serialize builds when the gmake -j option is used.
95$(DECMN:$(EXEEXT)=).$(SECTION): $(TARGET:$(EXEEXT)=).$(SECTION)
96
b75a7d8f
A
97%.$(SECTION): $(srcdir)/%.$(SECTION).in
98 cd $(top_builddir) \
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
100
101ifeq (,$(MAKECMDGOALS))
102-include $(DEPS)
103-include $(DECMN_DEP)
104else
105ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
106-include $(DEPS)
107-include $(DECMN_DEP)
108endif
109endif
374ca955 110