1 #################################################################################
2 ## Makefile.in for ICU - tools/genrb #
3 ## Copyright (C) 2016 and later: Unicode, Inc. and others. #
4 ## License & terms of use: http://www.unicode.org/copyright.html #
5 ## Copyright (c) 1999-2014, International Business Machines Corporation and #
6 ## others. All Rights Reserved. #
7 #################################################################################
9 ## Source directory information
11 top_srcdir = @top_srcdir@
15 include $(top_builddir)/icudefs.mk
17 ## Build directory information
20 TARGET_STUB_NAME = genrb
25 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
26 @ICUIO_TRUE@MAN_FILES += $(DERB_STUB_NAME).$(SECTION)
28 ## Extra files to remove for 'make clean'
29 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
32 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33 # derb depends on icuio
34 @ICUIO_TRUE@DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
36 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(top_srcdir)/io
37 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit
38 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
40 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
41 wrtjava.o rle.o wrtxml.o prscmnts.o
44 DEPS = $(OBJECTS:.o=.d)
45 DERB_DEPS = $(DERB_OBJ:.o=.d)
47 -include Makefile.local
49 ## List of phony targets
50 .PHONY : all all-local install install-local clean clean-local \
51 distclean distclean-local dist dist-local check check-local install-man
56 ## List of standard targets
58 install: install-local
60 distclean : distclean-local
62 check: all check-local
64 all-local: $(TARGET) $(DERB) $(MAN_FILES)
66 install-local: all-local install-man
67 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
68 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
69 @ICUIO_TRUE@ $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
71 install-man: $(MAN_FILES)
72 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
73 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
78 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
79 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
81 distclean-local: clean-local
84 check-local: all-local
86 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
88 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
90 $(TARGET) : $(OBJECTS)
91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
95 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBICUIO) $(LIBS)
98 # This line is needed to serialize builds when the gmake -j option is used.
99 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
101 %.$(SECTION): $(srcdir)/%.$(SECTION).in
103 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
106 ifeq (,$(MAKECMDGOALS))
108 -include $(DERB_DEPS)
110 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)