]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genrb/Makefile.in
ICU-511.35.tar.gz
[apple/icu.git] / icuSources / tools / genrb / Makefile.in
CommitLineData
729e4ab9
A
1#################################################################################
2## Makefile.in for ICU - tools/genrb #
4388f060 3## Copyright (c) 1999-2011, International Business Machines Corporation and #
729e4ab9
A
4## others. All Rights Reserved. #
5#################################################################################
46f4442e 6
b75a7d8f
A
7## Source directory information
8srcdir = @srcdir@
9top_srcdir = @top_srcdir@
10
11top_builddir = ../..
12
13include $(top_builddir)/icudefs.mk
14
73c04bcf
A
15## Build directory information
16subdir = tools/genrb
b75a7d8f 17
374ca955
A
18TARGET_STUB_NAME = genrb
19DERB_STUB_NAME = derb
20
b75a7d8f
A
21SECTION = 1
22
374ca955 23MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
b75a7d8f 24
b75a7d8f
A
25
26## Extra files to remove for 'make clean'
374ca955 27CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
b75a7d8f
A
28
29## Target information
374ca955
A
30TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
31DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
b75a7d8f 32
73c04bcf 33CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
729e4ab9 34LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
b75a7d8f 35
73c04bcf 36OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
374ca955 37wrtjava.o rle.o wrtxml.o prscmnts.o
b75a7d8f
A
38DERB_OBJ = derb.o
39
40DEPS = $(OBJECTS:.o=.d)
41DERB_DEPS = $(DERB_OBJ:.o=.d)
42
46f4442e
A
43-include Makefile.local
44
b75a7d8f
A
45## List of phony targets
46.PHONY : all all-local install install-local clean clean-local \
729e4ab9 47distclean distclean-local dist dist-local check check-local install-man
b75a7d8f
A
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
60all-local: $(TARGET) $(DERB) $(MAN_FILES)
61
62install-local: all-local install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
65 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
66
73c04bcf
A
67install-man: $(MAN_FILES)
68 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
69 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
70
374ca955 71dist-local:
b75a7d8f 72
73c04bcf 73clean-local:
b75a7d8f 74 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
729e4ab9 75 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
b75a7d8f
A
76
77distclean-local: clean-local
78 $(RMV) Makefile
79
80check-local: all-local
81
82Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
83 cd $(top_builddir) \
84 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85
86$(TARGET) : $(OBJECTS)
374ca955 87 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
46f4442e 88 $(POST_BUILD_STEP)
b75a7d8f
A
89
90$(DERB) : $(DERB_OBJ)
46f4442e
A
91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
92 $(POST_BUILD_STEP)
93
374ca955
A
94# This line is needed to serialize builds when the gmake -j option is used.
95$(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
b75a7d8f
A
96
97%.$(SECTION): $(srcdir)/%.$(SECTION).in
98 cd $(top_builddir) \
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
100
b75a7d8f
A
101
102ifeq (,$(MAKECMDGOALS))
103-include $(DEPS)
104-include $(DERB_DEPS)
105else
106ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
107-include $(DEPS)
108endif
109endif