1## Copyright (C) 2016 and later: Unicode, Inc. and others.
2## License & terms of use: http://www.unicode.org/copyright.html
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
9srcdir = @srcdir@
10top_srcdir = @top_srcdir@
11
12top_builddir = ../..
13
14include $(top_builddir)/icudefs.mk
15
16## Platform-specific setup
17include @platform_make_fragment@
18
19## Build directory information
20subdir = samples/layout
21
22## Extra files to remove for 'make clean'
23CLEANFILES = *~ $(DEPS)
24
25## Target information
26TARGET  = gnomelayout
27CTARGET = cgnomelayout
28
29CPPFLAGS += -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
31LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
32
33COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o  paragraph.o
34
35OBJECTS=gnomelayout.o
36
37COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
38
39DEPS = $(OBJECTS:.o=.d)
40
41## List of phony targets
42.PHONY : all all-local install install-local clean clean-local	\
43distclean distclean-local dist dist-local check check-local
44
45## Clear suffix list
46.SUFFIXES :
47
48## List of standard targets
49all: all-local
50install: install-local
51clean: clean-local
52distclean : distclean-local
53dist: dist-local
54check: all check-local
55c-all: c-all-local
56c-check: c-all c-check-local
57
58all-local: $(TARGET)
59
60c-all-local: $(CTARGET)
61
62install-local:
63
64dist-local:
65
66clean-local:
67	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
68	$(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
69
70distclean-local: clean-local
71	$(RMV) Makefile
72
73check-local: all-local
74	$(INVOKE) ./$(TARGET)
75
76c-check-local: c-all-local
77	$(INVOKE) ./$(CTARGET)
78
79Makefile: $(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...
87scrptrun.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
92scrptrun.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
101invoke:
102	ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
103
104ifeq (,$(MAKECMDGOALS))
105-include $(DEPS)
106else
107ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
108-include $(DEPS)
109endif
110endif
111