]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / samples / layout / Makefile.in
CommitLineData
b75a7d8f
A
1## Makefile.in for ICU - samples/layout
2## Copyright (c) 2001-2003, International Business Machines Corporation and
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
23TARGET = gnomelayout
24
25CPPFLAGS += `gnome-config --cflags gnomeui` -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/layoutex -I$(top_srcdir)/layout -I$(top_srcdir) -g
26
27# Change the following as needed to locate freetype.
28CPPFLAGS += -DLE_USE_CMEMORY -I/usr/include/freetype1
29
30LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `gnome-config --libs gnomeui` -lttf
31
32
33OBJECTS=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o gnomelayout.o
34
35DEPS = $(OBJECTS:.o=.d)
36
37## List of phony targets
38.PHONY : all all-local install install-local clean clean-local \
39distclean distclean-local dist dist-local check check-local
40
41## Clear suffix list
42.SUFFIXES :
43
44## List of standard targets
45all: all-local
46install: install-local
47clean: clean-local
48distclean : distclean-local
49dist: dist-local
50check: all check-local
51
52all-local: $(TARGET)
53
54install-local:
55
56dist-local:
57
58clean-local:
59 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
60 $(RMV) $(OBJECTS) $(TARGET)
61
62distclean-local: clean-local
63 $(RMV) Makefile
64
65check-local: all-local
66 $(INVOKE) ./$(TARGET)
67
68Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
69 cd $(top_builddir) \
70 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
71
72# The following two rules make it possible to
73# compile scrptrun.cpp from the extra/scrptrun directory.
74# they were copied from the default rules in mh-linux which
75# is probably OK because this sample will only run on Linux...
76scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
77 $(SHELL) -ec '$(GEN_DEPS.cc) $< \
78 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
79 [ -s $@ ] || rm -f $@'
80
81scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
82 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
83
84$(TARGET) : $(OBJECTS)
85 $(LINK.cc) -o $@ $^ $(LIBS)
86
87invoke:
88 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
89
90ifeq (,$(MAKECMDGOALS))
91-include $(DEPS)
92else
93ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
94-include $(DEPS)
95endif
96endif