Makefile.in revision c73f511526464f8e56c242df80552e9b0d94ae3d
1## Makefile.in for ICU - samples/layout
2## Copyright (c) 2001-2011, 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
24CTARGET = cgnomelayout
25
26CPPFLAGS += -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
27
28LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
29
30COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o  paragraph.o
31
32OBJECTS=gnomelayout.o
33
34COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
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
52c-all: c-all-local
53c-check: c-all c-check-local
54
55all-local: $(TARGET)
56
57c-all-local: $(CTARGET)
58
59install-local:
60
61dist-local:
62
63clean-local:
64	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
65	$(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
66
67distclean-local: clean-local
68	$(RMV) Makefile
69
70check-local: all-local
71	$(INVOKE) ./$(TARGET)
72
73c-check-local: c-all-local
74	$(INVOKE) ./$(CTARGET)
75
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
92$(TARGET) : $(COMMON) $(OBJECTS)
93	$(LINK.cc) -o $@ $^ $(LIBS)
94
95$(CTARGET) : $(COMMON) $(COBJECTS)
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
108