1 ## Makefile.in for ICU - samples/layout
2 ## Copyright (c) 2001-2007, International Business Machines Corporation and
3 ## others. All Rights Reserved.
5 ## Source directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
13 ## Platform-specific setup
14 include @platform_make_fragment@
16 ## Build directory information
17 subdir = samples/layout
19 ## Extra files to remove for 'make clean'
20 CLEANFILES = *~ $(DEPS)
24 CTARGET = cgnomelayout
26 CPPFLAGS += -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
28 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
30 COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
34 COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
36 DEPS = $(OBJECTS:.o=.d)
38 ## List of phony targets
39 .PHONY : all all-local install install-local clean clean-local \
40 distclean distclean-local dist dist-local check check-local
45 ## List of standard targets
47 install: install-local
49 distclean : distclean-local
51 check: all check-local
53 c-check: c-all c-check-local
57 c-all-local: $(CTARGET)
64 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
65 $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
67 distclean-local: clean-local
70 check-local: all-local
73 c-check-local: c-all-local
74 $(INVOKE) ./$(CTARGET)
76 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
78 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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...
84 scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
85 $(SHELL) -ec '$(GEN_DEPS.cc) $< \
86 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
87 [ -s $@ ] || rm -f $@'
89 scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
90 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
92 $(TARGET) : $(COMMON) $(OBJECTS)
93 $(LINK.cc) -o $@ $^ $(LIBS)
95 $(CTARGET) : $(COMMON) $(COBJECTS)
96 $(LINK.cc) -o $@ $^ $(LIBS)
99 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
101 ifeq (,$(MAKECMDGOALS))
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)