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