]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/layout/Makefile.in
ICU-64232.0.1.tar.gz
[apple/icu.git] / icuSources / samples / layout / Makefile.in
index caa80c7b6dcf158fa70428367fca95b8e7072d3c..b242df292264d4936e5800207e59207fcfa65299 100644 (file)
@@ -1,5 +1,8 @@
+## 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
@@ -20,17 +23,18 @@ subdir = samples/layout
 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)
 
@@ -48,16 +52,20 @@ clean: clean-local
 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
@@ -65,6 +73,9 @@ distclean-local: clean-local
 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
@@ -81,7 +92,10 @@ scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
 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: