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