Imported Upstream version 58.1
[platform/upstream/icu.git] / source / samples / layout / Makefile.in
1 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
2 ## License & terms of use: http://www.unicode.org/copyright.html#License
3 ##
4 ## Makefile.in for ICU - samples/layout
5 ## Copyright (c) 2001-2011, International Business Machines Corporation and
6 ## others. All Rights Reserved.
7
8 ## Source directory information
9 srcdir = @srcdir@
10 top_srcdir = @top_srcdir@
11
12 top_builddir = ../..
13
14 include $(top_builddir)/icudefs.mk
15
16 ## Platform-specific setup
17 include @platform_make_fragment@
18
19 ## Build directory information
20 subdir = samples/layout
21
22 ## Extra files to remove for 'make clean'
23 CLEANFILES = *~ $(DEPS)
24
25 ## Target information
26 TARGET  = gnomelayout
27 CTARGET = cgnomelayout
28
29 CPPFLAGS += -DLE_USE_CMEMORY `pkg-config --cflags libgnomeui-2.0 freetype2 cairo` -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/layoutex -I$(top_srcdir)/layout -I$(top_srcdir) -g
30
31 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
32
33 COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o  paragraph.o
34
35 OBJECTS=gnomelayout.o
36
37 COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
38
39 DEPS = $(OBJECTS:.o=.d)
40
41 ## List of phony targets
42 .PHONY : all all-local install install-local clean clean-local  \
43 distclean distclean-local dist dist-local check check-local
44
45 ## Clear suffix list
46 .SUFFIXES :
47
48 ## List of standard targets
49 all: all-local
50 install: install-local
51 clean: clean-local
52 distclean : distclean-local
53 dist: dist-local
54 check: all check-local
55 c-all: c-all-local
56 c-check: c-all c-check-local
57
58 all-local: $(TARGET)
59
60 c-all-local: $(CTARGET)
61
62 install-local:
63
64 dist-local:
65
66 clean-local:
67         test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
68         $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
69
70 distclean-local: clean-local
71         $(RMV) Makefile
72
73 check-local: all-local
74         $(INVOKE) ./$(TARGET)
75
76 c-check-local: c-all-local
77         $(INVOKE) ./$(CTARGET)
78
79 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
80         cd $(top_builddir) \
81          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82
83 # The following two rules make it possible to
84 # compile scrptrun.cpp from the extra/scrptrun directory.
85 # they were copied from the default rules in mh-linux which
86 # is probably OK because this sample will only run on Linux...
87 scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
88         $(SHELL) -ec '$(GEN_DEPS.cc) $< \
89                 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
90                 [ -s $@ ] || rm -f $@'
91
92 scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
93         $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
94
95 $(TARGET) : $(COMMON) $(OBJECTS)
96         $(LINK.cc) -o $@ $^ $(LIBS)
97
98 $(CTARGET) : $(COMMON) $(COBJECTS)
99         $(LINK.cc) -o $@ $^ $(LIBS)
100
101 invoke:
102         ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
103
104 ifeq (,$(MAKECMDGOALS))
105 -include $(DEPS)
106 else
107 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
108 -include $(DEPS)
109 endif
110 endif