1## Copyright (C) 2016 and later: Unicode, Inc. and others.
2## License & terms of use: http://www.unicode.org/copyright.html
3## Makefile.in for ICU - extra/scrptrun
4## Copyright (c) 2001-2011, International Business Machines Corporation and
5## others. All Rights Reserved.
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 = extra/scrptrun
17
18## Extra files to remove for 'make clean'
19CLEANFILES = *~ $(DEPS)
20
21## Target information
22TARGET = srtest$(EXEEXT)
23
24DEFS = @DEFS@
25CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/common -I$(top_srcdir)
26CFLAGS = @CFLAGS@
27CXXFLAGS = @CXXFLAGS@
28ENABLE_RPATH = @ENABLE_RPATH@
29ifeq ($(ENABLE_RPATH),YES)
30RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
31endif
32LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
33LIBS = $(LIBICUUC) $(LIB_M)
34
35SOURCES = $(shell cat $(srcdir)/sources.txt)
36OBJECTS = $(SOURCES:.cpp=.o)
37
38DEPS = $(OBJECTS:.o=.d)
39
40## List of phony targets
41.PHONY : all all-local install install-local clean clean-local	\
42distclean distclean-local dist dist-local check check-local
43
44## Clear suffix list
45.SUFFIXES :
46
47## List of standard targets
48all: all-local
49install: install-local
50clean: clean-local
51distclean : distclean-local
52dist: dist-local
53check: all check-local
54
55all-local: $(TARGET)
56
57install-local:
58
59dist-local:
60
61clean-local:
62	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
63	$(RMV) $(OBJECTS) $(TARGET)
64
65distclean-local: clean-local
66	$(RMV) Makefile
67
68check-local: all-local
69
70Makefile: $(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) $(OUTOPT)$@ $^ $(LIBS)
76	$(POST_BUILD_STEP)
77
78invoke:
79	ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
80
81ifeq (,$(MAKECMDGOALS))
82-include $(DEPS)
83else
84ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
85-include $(DEPS)
86endif
87endif
88