1 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
2 ## License & terms of use: http://www.unicode.org/copyright.html#License
4 ## Makefile.in for ICU - samples/layout
5 ## Copyright (c) 2001-2011, International Business Machines Corporation and
6 ## others. All Rights Reserved.
8 ## Source directory information
10 top_srcdir = @top_srcdir@
14 include $(top_builddir)/icudefs.mk
16 ## Platform-specific setup
17 include @platform_make_fragment@
19 ## Build directory information
20 subdir = samples/layout
22 ## Extra files to remove for 'make clean'
23 CLEANFILES = *~ $(DEPS)
27 CTARGET = cgnomelayout
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
31 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
33 COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
37 COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
39 DEPS = $(OBJECTS:.o=.d)
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
48 ## List of standard targets
50 install: install-local
52 distclean : distclean-local
54 check: all check-local
56 c-check: c-all c-check-local
60 c-all-local: $(CTARGET)
67 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
68 $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
70 distclean-local: clean-local
73 check-local: all-local
76 c-check-local: c-all-local
77 $(INVOKE) ./$(CTARGET)
79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
81 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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 $@'
92 scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
93 $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
95 $(TARGET) : $(COMMON) $(OBJECTS)
96 $(LINK.cc) -o $@ $^ $(LIBS)
98 $(CTARGET) : $(COMMON) $(COBJECTS)
99 $(LINK.cc) -o $@ $^ $(LIBS)
102 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
104 ifeq (,$(MAKECMDGOALS))
107 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)