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 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) 24 @ICUIO_TRUE@MAN_FILES += $(DERB_STUB_NAME).$(SECTION) 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 depends on icuio 32 @ICUIO_TRUE@DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT) 33 34 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(top_srcdir)/io 35 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) 36 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 39 DERB_OBJ = derb.o 40 41 DEPS = $(OBJECTS:.o=.d) 42 DERB_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 \ 48 distclean distclean-local dist dist-local check check-local install-man 49 50 ## Clear suffix list 51 .SUFFIXES : 52 53 ## List of standard targets 54 all: all-local 55 install: install-local 56 clean: clean-local 57 distclean : distclean-local 58 dist: dist-local 59 check: all check-local 60 61 all-local: $(TARGET) $(DERB) $(MAN_FILES) 62 63 install-local: all-local install-man 64 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 65 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) 66 @ICUIO_TRUE@ $(INSTALL) $(DERB) $(DESTDIR)$(bindir) 67 68 install-man: $(MAN_FILES) 69 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) 70 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) 71 72 dist-local: 73 74 clean-local: 75 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 76 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ) 77 78 distclean-local: clean-local 79 $(RMV) Makefile 80 81 check-local: all-local 82 83 Makefile: $(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 103 ifeq (,$(MAKECMDGOALS)) 104 -include $(DEPS) 105 -include $(DERB_DEPS) 106 else 107 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 108 -include $(DEPS) 109 endif 110 endif 111