]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/Makefile.in
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / samples / layout / Makefile.in
1 ## Makefile.in for ICU - samples/layout
2 ## Copyright (c) 2001-2007, 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 CTARGET = cgnomelayout
25
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
27
28 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
29
30 COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
31
32 OBJECTS=gnomelayout.o
33
34 COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
35
36 DEPS = $(OBJECTS:.o=.d)
37
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
41
42 ## Clear suffix list
43 .SUFFIXES :
44
45 ## List of standard targets
46 all: all-local
47 install: install-local
48 clean: clean-local
49 distclean : distclean-local
50 dist: dist-local
51 check: all check-local
52 c-all: c-all-local
53 c-check: c-all c-check-local
54
55 all-local: $(TARGET)
56
57 c-all-local: $(CTARGET)
58
59 install-local:
60
61 dist-local:
62
63 clean-local:
64 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
65 $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
66
67 distclean-local: clean-local
68 $(RMV) Makefile
69
70 check-local: all-local
71 $(INVOKE) ./$(TARGET)
72
73 c-check-local: c-all-local
74 $(INVOKE) ./$(CTARGET)
75
76 Makefile: $(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...
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 $@'
88
89 scrptrun.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
98 invoke:
99 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
100
101 ifeq (,$(MAKECMDGOALS))
102 -include $(DEPS)
103 else
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
105 -include $(DEPS)
106 endif
107 endif