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