# HG changeset patch # User "Mat " # Date 1224347604 -28800 # Node ID 5535899513ce19267f265c02e2ac29f0901f0ea8 # Parent 0299cdb004a123492fe59d7fed6da0107913feb1 * patch for linux, and a trick symbol link to include diff -r 0299cdb004a1 -r 5535899513ce examples/calculator/Makefile --- a/examples/calculator/Makefile Sun Oct 19 00:10:48 2008 +0800 +++ b/examples/calculator/Makefile Sun Oct 19 00:33:24 2008 +0800 @@ -1,10 +1,13 @@ SVG=calculator_scr.svg TOOLSDIR=/usr/local/share/mb INCS=-I/usr/local/include -CFLAGS+=`pkg-config --cflags cairo` $(INCS) -Wall -LDFLAGS=-L/usr/local/lib `pkg-config --libs cairo` +CFLAGS+=`pkg-config --cflags cairo` $(INCS) -Wall -I../../src +LDFLAGS=-L/usr/local/lib `pkg-config --libs cairo` -L../../src LIBS=-lmbfly BINS= calc +SVG2CODE= ../../tools/svg2code.py +MB_C_HEADER= ../../tools/mb_c_header.m4 +MB_C_SOURCE= ../../tools/mb_c_source.m4 all: $(BINS) @@ -18,13 +21,13 @@ $(CC) -c $(CFLAGS) -o $@ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.mb/): $(SVG) - /usr/local/bin/svg2code.py $(.ALLSRC) $@ + $(SVG2CODE) $(.ALLSRC) $@ $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) - m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ + m4 -I $(TOOLSDIR) $(MB_C_SOURCE) $(.ALLSRC) > $@ $(SVG:C/.svg/.h/): $(SVG:C/.svg/.mb/) - m4 -I $(TOOLSDIR) mb_c_header.m4 $(.ALLSRC) > $@ + m4 -I $(TOOLSDIR) $(MB_C_HEADER) $(.ALLSRC) > $@ clean: for i in *.mb *.o *.core *~ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/) $(BINS); do \ diff -r 0299cdb004a1 -r 5535899513ce src/mb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/mb Sun Oct 19 00:33:24 2008 +0800 @@ -0,0 +1,1 @@ +. \ No newline at end of file