1 #################################################################################
2 ## Makefile.in for ICU - tools/genrb #
3 ## Copyright (c) 1999-2011, 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) $(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 = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
33 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
34 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
36 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
37 wrtjava.o rle.o wrtxml.o prscmnts.o
40 DEPS = $(OBJECTS:.o=.d)
41 DERB_DEPS = $(DERB_OBJ:.o=.d)
43 -include Makefile.local
45 ## List of phony targets
46 .PHONY : all all-local install install-local clean clean-local \
47 distclean distclean-local dist dist-local check check-local install-man
52 ## List of standard targets
54 install: install-local
56 distclean : distclean-local
58 check: all check-local
60 all-local: $(TARGET) $(DERB) $(MAN_FILES)
62 install-local: all-local install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
65 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
67 install-man: $(MAN_FILES)
68 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
69 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
74 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
75 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
77 distclean-local: clean-local
80 check-local: all-local
82 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
84 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
86 $(TARGET) : $(OBJECTS)
87 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
94 # This line is needed to serialize builds when the gmake -j option is used.
95 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
97 %.$(SECTION): $(srcdir)/%.$(SECTION).in
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
102 ifeq (,$(MAKECMDGOALS))
104 -include $(DERB_DEPS)
106 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)