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