# HG changeset patch # User Thinker K.F. Li # Date 1288113457 -28800 # Node ID 6d4b8c4051ff891ce931c886f94338ee07309767 # Parent 757bb247a072b4f13d7177353a5f00ba17ce8410 Depend on cairo or pangocairo according enabling of sh_text diff -r 757bb247a072 -r 6d4b8c4051ff config.mk --- a/config.mk Wed Oct 27 01:03:46 2010 +0800 +++ b/config.mk Wed Oct 27 01:17:37 2010 +0800 @@ -1,1 +1,9 @@ INCLUDES = -I$(top_srcdir)/include + +if SH_TEXT +APPCFLAGS = @pangocairo_CFLAGS@ +APPLDFLAGS = @pangocairo_LIBS@ +else +APPCFLAGS = @cairo_CFLAGS@ +APPLDFLAGS = @cairo_LIBS@ +endif \ No newline at end of file diff -r 757bb247a072 -r 6d4b8c4051ff examples/calculator/Makefile.am --- a/examples/calculator/Makefile.am Wed Oct 27 01:03:46 2010 +0800 +++ b/examples/calculator/Makefile.am Wed Oct 27 01:17:37 2010 +0800 @@ -5,8 +5,8 @@ calc_SOURCES = main.c nodist_calc_SOURCES = calculator_scr.c calculator_scr.h -calc_CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) -calc_LDFLAGS = @cairo_LIBS@ +calc_CPPFLAGS = $(APPCFLAGS) $(INCLUDES) +calc_LDFLAGS = $(APPLDFLAGS) calc_LDADD = $(top_builddir)/src/libmbfly.la BUILT_SOURCES = calculator_scr.c calculator_scr.h calculator_scr.mb CLEANFILES = calculator_scr.c calculator_scr.h calculator_scr.mb diff -r 757bb247a072 -r 6d4b8c4051ff examples/drag/Makefile.am --- a/examples/drag/Makefile.am Wed Oct 27 01:03:46 2010 +0800 +++ b/examples/drag/Makefile.am Wed Oct 27 01:17:37 2010 +0800 @@ -5,8 +5,8 @@ ex1_SOURCES = main.c nodist_ex1_SOURCES = menu.c menu.h -ex1_CPPFLAGS = @cairo_CFLAGS@ -I$(top_srcdir) -ex1_LDFLAGS = @cairo_LIBS@ +ex1_CPPFLAGS = $(APPCFLAGS) -I$(top_srcdir) +ex1_LDFLAGS = $(APPLDFLAGS) ex1_LDADD = $(top_builddir)/src/libmbfly.la BUILT_SOURCES = menu.c menu.h menu.mb CLEANFILES = menu.c menu.h menu.mb diff -r 757bb247a072 -r 6d4b8c4051ff examples/tank/Makefile.am --- a/examples/tank/Makefile.am Wed Oct 27 01:03:46 2010 +0800 +++ b/examples/tank/Makefile.am Wed Oct 27 01:17:37 2010 +0800 @@ -7,8 +7,8 @@ tank_SOURCES = tank_main.c nodist_tank_SOURCES = svgs.h \ $(svg_sources) $(svg_sources:.c=.h) $(svg_sources:.c=.mb) -tank_CPPFLAGS = @cairo_CFLAGS@ -tank_LDFLAGS = @cairo_LIBS@ +tank_CPPFLAGS = $(APPCFLAGS) +tank_LDFLAGS = $(APPLDFLAGS) tank_LDADD = $(top_builddir)/src/libmbfly.la BUILT_SOURCES = svgs.h \ $(svg_sources) $(svg_sources:.c=.h) $(svg_sources:.c=.mb)