1 ## Makefile.in for ICU - tools/genrb
2 ## Copyright (c) 1999-2005, International Business Machines Corporation and
3 ## others. All Rights Reserved.
5 ## Source directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
13 ## Build directory information
16 TARGET_STUB_NAME = genrb
21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
24 ## Extra files to remove for 'make clean'
25 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
28 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
29 DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
31 ifneq ($(top_builddir),$(top_srcdir))
32 CPPFLAGS += -I$(top_builddir)/common
34 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
35 LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
37 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \
38 wrtjava.o rle.o wrtxml.o prscmnts.o
41 DEPS = $(OBJECTS:.o=.d)
42 DERB_DEPS = $(DERB_OBJ:.o=.d)
44 ## List of phony targets
45 .PHONY : all all-local install install-local clean clean-local \
46 distclean distclean-local dist dist-local check check-local install-man
51 ## List of standard targets
53 install: install-local
55 distclean : distclean-local
57 check: all check-local
59 all-local: $(TARGET) $(DERB) $(MAN_FILES)
61 install-local: all-local install-man
62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
64 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
66 install-man: $(MAN_FILES)
67 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
68 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
76 distclean-local: clean-local
79 check-local: all-local
81 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85 $(TARGET) : $(OBJECTS)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
89 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
92 # This line is needed to serialize builds when the gmake -j option is used.
93 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
95 %.$(SECTION): $(srcdir)/%.$(SECTION).in
97 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
100 ifeq (,$(MAKECMDGOALS))
102 -include $(DERB_DEPS)
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)