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