+## Copyright (C) 2016 and later: Unicode, Inc. and others.
+## License & terms of use: http://www.unicode.org/copyright.html#License
+##
## Makefile.in for ICU - samples/layout
-## Copyright (c) 2001-2003, International Business Machines Corporation and
+## Copyright (c) 2001-2011, International Business Machines Corporation and
## others. All Rights Reserved.
## Source directory information
CLEANFILES = *~ $(DEPS)
## Target information
-TARGET = gnomelayout
+TARGET = gnomelayout
+CTARGET = cgnomelayout
-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
+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
-# Change the following as needed to locate freetype.
-CPPFLAGS += -DLE_USE_CMEMORY -I/usr/include/freetype1
+LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
-LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `gnome-config --libs gnomeui` -lttf
+COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
+OBJECTS=gnomelayout.o
-OBJECTS=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o gnomelayout.o
+COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
DEPS = $(OBJECTS:.o=.d)
distclean : distclean-local
dist: dist-local
check: all check-local
+c-all: c-all-local
+c-check: c-all c-check-local
all-local: $(TARGET)
+c-all-local: $(CTARGET)
+
install-local:
dist-local:
clean-local:
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
- $(RMV) $(OBJECTS) $(TARGET)
+ $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
distclean-local: clean-local
$(RMV) Makefile
check-local: all-local
$(INVOKE) ./$(TARGET)
+c-check-local: c-all-local
+ $(INVOKE) ./$(CTARGET)
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
-$(TARGET) : $(OBJECTS)
+$(TARGET) : $(COMMON) $(OBJECTS)
+ $(LINK.cc) -o $@ $^ $(LIBS)
+
+$(CTARGET) : $(COMMON) $(COBJECTS)
$(LINK.cc) -o $@ $^ $(LIBS)
invoke: