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