]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | ## Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 | ## License & terms of use: http://www.unicode.org/copyright.html#License | |
3 | ## | |
b75a7d8f | 4 | ## Makefile.in for ICU - samples/layout |
4388f060 | 5 | ## Copyright (c) 2001-2011, International Business Machines Corporation and |
b75a7d8f A |
6 | ## others. All Rights Reserved. |
7 | ||
8 | ## Source directory information | |
9 | srcdir = @srcdir@ | |
10 | top_srcdir = @top_srcdir@ | |
11 | ||
12 | top_builddir = ../.. | |
13 | ||
14 | include $(top_builddir)/icudefs.mk | |
15 | ||
16 | ## Platform-specific setup | |
17 | include @platform_make_fragment@ | |
18 | ||
19 | ## Build directory information | |
20 | subdir = samples/layout | |
21 | ||
22 | ## Extra files to remove for 'make clean' | |
23 | CLEANFILES = *~ $(DEPS) | |
24 | ||
25 | ## Target information | |
46f4442e A |
26 | TARGET = gnomelayout |
27 | CTARGET = cgnomelayout | |
b75a7d8f | 28 | |
4388f060 | 29 | CPPFLAGS += -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 |
b75a7d8f | 30 | |
46f4442e | 31 | LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo` |
b75a7d8f | 32 | |
46f4442e | 33 | COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o |
b75a7d8f | 34 | |
46f4442e | 35 | OBJECTS=gnomelayout.o |
b75a7d8f | 36 | |
46f4442e | 37 | COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o |
b75a7d8f A |
38 | |
39 | DEPS = $(OBJECTS:.o=.d) | |
40 | ||
41 | ## List of phony targets | |
42 | .PHONY : all all-local install install-local clean clean-local \ | |
43 | distclean distclean-local dist dist-local check check-local | |
44 | ||
45 | ## Clear suffix list | |
46 | .SUFFIXES : | |
47 | ||
48 | ## List of standard targets | |
49 | all: all-local | |
50 | install: install-local | |
51 | clean: clean-local | |
52 | distclean : distclean-local | |
53 | dist: dist-local | |
54 | check: all check-local | |
46f4442e A |
55 | c-all: c-all-local |
56 | c-check: c-all c-check-local | |
b75a7d8f A |
57 | |
58 | all-local: $(TARGET) | |
59 | ||
46f4442e A |
60 | c-all-local: $(CTARGET) |
61 | ||
b75a7d8f A |
62 | install-local: |
63 | ||
64 | dist-local: | |
65 | ||
66 | clean-local: | |
67 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
46f4442e | 68 | $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET) |
b75a7d8f A |
69 | |
70 | distclean-local: clean-local | |
71 | $(RMV) Makefile | |
72 | ||
73 | check-local: all-local | |
74 | $(INVOKE) ./$(TARGET) | |
75 | ||
46f4442e A |
76 | c-check-local: c-all-local |
77 | $(INVOKE) ./$(CTARGET) | |
78 | ||
b75a7d8f A |
79 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
80 | cd $(top_builddir) \ | |
81 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
82 | ||
83 | # The following two rules make it possible to | |
84 | # compile scrptrun.cpp from the extra/scrptrun directory. | |
85 | # they were copied from the default rules in mh-linux which | |
86 | # is probably OK because this sample will only run on Linux... | |
87 | scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp | |
88 | $(SHELL) -ec '$(GEN_DEPS.cc) $< \ | |
89 | | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ | |
90 | [ -s $@ ] || rm -f $@' | |
91 | ||
92 | scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp | |
93 | $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< | |
94 | ||
46f4442e A |
95 | $(TARGET) : $(COMMON) $(OBJECTS) |
96 | $(LINK.cc) -o $@ $^ $(LIBS) | |
97 | ||
98 | $(CTARGET) : $(COMMON) $(COBJECTS) | |
b75a7d8f A |
99 | $(LINK.cc) -o $@ $^ $(LIBS) |
100 | ||
101 | invoke: | |
102 | ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION) | |
103 | ||
104 | ifeq (,$(MAKECMDGOALS)) | |
105 | -include $(DEPS) | |
106 | else | |
107 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
108 | -include $(DEPS) | |
109 | endif | |
110 | endif |