Home | History | Annotate | Download | only in scrptrun
      1 ## Makefile.in for ICU - extra/scrptrun
      2 ## Copyright (c) 2001-2011, International Business Machines Corporation and
      3 ## others. All Rights Reserved.
      4 
      5 ## Source directory information
      6 srcdir = @srcdir@
      7 top_srcdir = @top_srcdir@
      8 
      9 top_builddir = ../..
     10 
     11 include $(top_builddir)/icudefs.mk
     12 
     13 ## Platform-specific setup
     14 include @platform_make_fragment@
     15 
     16 ## Build directory information
     17 subdir = extra/scrptrun
     18 
     19 ## Extra files to remove for 'make clean'
     20 CLEANFILES = *~ $(DEPS)
     21 
     22 ## Target information
     23 TARGET = srtest
     24 
     25 DEFS = @DEFS@
     26 CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/common -I$(top_srcdir) 
     27 CFLAGS = @CFLAGS@
     28 CXXFLAGS = @CXXFLAGS@
     29 ENABLE_RPATH = @ENABLE_RPATH@
     30 ifeq ($(ENABLE_RPATH),YES)
     31 RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
     32 endif
     33 LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
     34 LIBS = $(LIBICUUC) @LIBS@ @LIB_M@
     35 
     36 OBJECTS = scrptrun.o srtest.o
     37 
     38 DEPS = $(OBJECTS:.o=.d)
     39 
     40 ## List of phony targets
     41 .PHONY : all all-local install install-local clean clean-local	\
     42 distclean distclean-local dist dist-local check check-local
     43 
     44 ## Clear suffix list
     45 .SUFFIXES :
     46 
     47 ## List of standard targets
     48 all: all-local
     49 install: install-local
     50 clean: clean-local
     51 distclean : distclean-local
     52 dist: dist-local
     53 check: all check-local
     54 
     55 all-local: $(TARGET)
     56 
     57 install-local:
     58 
     59 dist-local:
     60 
     61 clean-local:
     62 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
     63 	$(RMV) $(OBJECTS) $(TARGET)
     64 
     65 distclean-local: clean-local
     66 	$(RMV) Makefile
     67 
     68 check-local: all-local
     69 
     70 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     71 	cd $(top_builddir) \
     72 	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     73 
     74 $(TARGET) : $(OBJECTS)
     75 	$(LINK.cc) -o $@ $^ $(LIBS)
     76 	$(POST_BUILD_STEP)
     77 
     78 invoke:
     79 	ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
     80 
     81 ifeq (,$(MAKECMDGOALS))
     82 -include $(DEPS)
     83 else
     84 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
     85 -include $(DEPS)
     86 endif
     87 endif
     88