1 ## Makefile.in for ICU - samples/layout
2 ## Copyright (c) 2001-2003, 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)
25 CPPFLAGS += `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
27 # Change the following as needed to locate freetype.
28 CPPFLAGS += -DLE_USE_CMEMORY -I/usr/include/freetype1
30 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `gnome-config --libs gnomeui` -lttf
33 OBJECTS=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o gnomelayout.o
35 DEPS = $(OBJECTS:.o=.d)
37 ## List of phony targets
38 .PHONY : all all-local install install-local clean clean-local \
39 distclean distclean-local dist dist-local check check-local
44 ## List of standard targets
46 install: install-local
48 distclean : distclean-local
50 check: all check-local
59 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
60 $(RMV) $(OBJECTS) $(TARGET)
62 distclean-local: clean-local
65 check-local: all-local
68 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
70 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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...
76 scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
77 $(SHELL) -ec '$(GEN_DEPS.cc) $< \
78 | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
79 [ -s $@ ] || rm -f $@'
81 scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
82 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
84 $(TARGET) : $(OBJECTS)
85 $(LINK.cc) -o $@ $^ $(LIBS)
88 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
90 ifeq (,$(MAKECMDGOALS))
93 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)