]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/Makefile.in
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / samples / layout / Makefile.in
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
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 top_builddir = ../..
10
11 include $(top_builddir)/icudefs.mk
12
13 ## Platform-specific setup
14 include @platform_make_fragment@
15
16 ## Build directory information
17 subdir = samples/layout
18
19 ## Extra files to remove for 'make clean'
20 CLEANFILES = *~ $(DEPS)
21
22 ## Target information
23 TARGET = gnomelayout
24
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
26
27 # Change the following as needed to locate freetype.
28 CPPFLAGS += -DLE_USE_CMEMORY -I/usr/include/freetype1
29
30 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `gnome-config --libs gnomeui` -lttf
31
32
33 OBJECTS=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o gnomelayout.o
34
35 DEPS = $(OBJECTS:.o=.d)
36
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
40
41 ## Clear suffix list
42 .SUFFIXES :
43
44 ## List of standard targets
45 all: all-local
46 install: install-local
47 clean: clean-local
48 distclean : distclean-local
49 dist: dist-local
50 check: all check-local
51
52 all-local: $(TARGET)
53
54 install-local:
55
56 dist-local:
57
58 clean-local:
59 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
60 $(RMV) $(OBJECTS) $(TARGET)
61
62 distclean-local: clean-local
63 $(RMV) Makefile
64
65 check-local: all-local
66 $(INVOKE) ./$(TARGET)
67
68 Makefile: $(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...
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 $@'
80
81 scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
82 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
83
84 $(TARGET) : $(OBJECTS)
85 $(LINK.cc) -o $@ $^ $(LIBS)
86
87 invoke:
88 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
89
90 ifeq (,$(MAKECMDGOALS))
91 -include $(DEPS)
92 else
93 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
94 -include $(DEPS)
95 endif
96 endif