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