]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/Makefile.in
ICU-64252.0.1.tar.gz
[apple/icu.git] / icuSources / samples / layout / Makefile.in
CommitLineData
f3c0d7a5
A
1## Copyright (C) 2016 and later: Unicode, Inc. and others.
2## License & terms of use: http://www.unicode.org/copyright.html#License
3##
b75a7d8f 4## Makefile.in for ICU - samples/layout
4388f060 5## Copyright (c) 2001-2011, International Business Machines Corporation and
b75a7d8f
A
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
46f4442e
A
26TARGET = gnomelayout
27CTARGET = cgnomelayout
b75a7d8f 28
4388f060 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
b75a7d8f 30
46f4442e 31LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
b75a7d8f 32
46f4442e 33COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
b75a7d8f 34
46f4442e 35OBJECTS=gnomelayout.o
b75a7d8f 36
46f4442e 37COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
b75a7d8f
A
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
46f4442e
A
55c-all: c-all-local
56c-check: c-all c-check-local
b75a7d8f
A
57
58all-local: $(TARGET)
59
46f4442e
A
60c-all-local: $(CTARGET)
61
b75a7d8f
A
62install-local:
63
64dist-local:
65
66clean-local:
67 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
46f4442e 68 $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
b75a7d8f
A
69
70distclean-local: clean-local
71 $(RMV) Makefile
72
73check-local: all-local
74 $(INVOKE) ./$(TARGET)
75
46f4442e
A
76c-check-local: c-all-local
77 $(INVOKE) ./$(CTARGET)
78
b75a7d8f
A
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
46f4442e
A
95$(TARGET) : $(COMMON) $(OBJECTS)
96 $(LINK.cc) -o $@ $^ $(LIBS)
97
98$(CTARGET) : $(COMMON) $(COBJECTS)
b75a7d8f
A
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