1################################################################################# 2## Makefile.in for ICU - tools/genrb # 3## Copyright (c) 1999-2013, 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) 24@ICUIO_TRUE@MAN_FILES += $(DERB_STUB_NAME).$(SECTION) 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) 31# derb depends on icuio 32@ICUIO_TRUE@DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT) 33 34CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(top_srcdir)/io 35LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) 36 37OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o rbutil.o \ 38wrtjava.o rle.o wrtxml.o prscmnts.o 39DERB_OBJ = derb.o 40 41DEPS = $(OBJECTS:.o=.d) 42DERB_DEPS = $(DERB_OBJ:.o=.d) 43 44-include Makefile.local 45 46## List of phony targets 47.PHONY : all all-local install install-local clean clean-local \ 48distclean distclean-local dist dist-local check check-local install-man 49 50## Clear suffix list 51.SUFFIXES : 52 53## List of standard targets 54all: all-local 55install: install-local 56clean: clean-local 57distclean : distclean-local 58dist: dist-local 59check: all check-local 60 61all-local: $(TARGET) $(DERB) $(MAN_FILES) 62 63install-local: all-local install-man 64 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 65 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) 66@ICUIO_TRUE@ $(INSTALL) $(DERB) $(DESTDIR)$(bindir) 67 68install-man: $(MAN_FILES) 69 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) 70 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) 71 72dist-local: 73 74clean-local: 75 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 76 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ) 77 78distclean-local: clean-local 79 $(RMV) Makefile 80 81check-local: all-local 82 83Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 84 cd $(top_builddir) \ 85 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 86 87$(TARGET) : $(OBJECTS) 88 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 89 $(POST_BUILD_STEP) 90 91$(DERB) : $(DERB_OBJ) 92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBICUIO) $(LIBS) 93 $(POST_BUILD_STEP) 94 95# This line is needed to serialize builds when the gmake -j option is used. 96$(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION) 97 98%.$(SECTION): $(srcdir)/%.$(SECTION).in 99 cd $(top_builddir) \ 100 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 101 102 103ifeq (,$(MAKECMDGOALS)) 104-include $(DEPS) 105-include $(DERB_DEPS) 106else 107ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 108-include $(DEPS) 109endif 110endif 111