1 #################################################################################
2 ## Makefile.in for ICU - tools/genrb #
3 ## Copyright (c) 1999-2014, International Business Machines Corporation and #
4 ## others. All Rights Reserved. #
5 #################################################################################
7 ## Source directory information
9 top_srcdir = @top_srcdir@
13 include $(top_builddir)/icudefs.mk
15 ## Build directory information
18 TARGET_STUB_NAME = genrb
23 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
24 @ICUIO_TRUE@MAN_FILES += $(DERB_STUB_NAME).$(SECTION)
26 ## Extra files to remove for 'make clean'
27 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
30 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
31 # derb depends on icuio
32 @ICUIO_TRUE@DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
34 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(top_srcdir)/io
35 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit
36 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
38 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
39 wrtjava.o rle.o wrtxml.o prscmnts.o
42 DEPS = $(OBJECTS:.o=.d)
43 DERB_DEPS = $(DERB_OBJ:.o=.d)
45 -include Makefile.local
47 ## List of phony targets
48 .PHONY : all all-local install install-local clean clean-local \
49 distclean distclean-local dist dist-local check check-local install-man
54 ## List of standard targets
56 install: install-local
58 distclean : distclean-local
60 check: all check-local
62 all-local: $(TARGET) $(DERB) $(MAN_FILES)
64 install-local: all-local install-man
65 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
66 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
67 @ICUIO_TRUE@ $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
69 install-man: $(MAN_FILES)
70 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
71 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
76 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
77 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
79 distclean-local: clean-local
82 check-local: all-local
84 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
86 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
88 $(TARGET) : $(OBJECTS)
89 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
93 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBICUIO) $(LIBS)
96 # This line is needed to serialize builds when the gmake -j option is used.
97 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
99 %.$(SECTION): $(srcdir)/%.$(SECTION).in
101 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
104 ifeq (,$(MAKECMDGOALS))
106 -include $(DERB_DEPS)
108 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)