# HG changeset patch # User "Mat " # Date 1224346248 -28800 # Node ID 0299cdb004a123492fe59d7fed6da0107913feb1 # Parent 147c93163ef0c9c9848aa208cf13a9492dc12df7 * patch for linux, compilation still buggy. diff -r 147c93163ef0 -r 0299cdb004a1 examples/tank/Makefile --- a/examples/tank/Makefile Wed Oct 08 03:57:56 2008 +0800 +++ b/examples/tank/Makefile Sun Oct 19 00:10:48 2008 +0800 @@ -4,12 +4,13 @@ SVGCS = $(SVGS:C/\.svg/.c/) SVGOS = $(SVGS:C/\.svg/.o/) MBS = $(SVGS:C/\.svg/.mb/) -SVG2CODE= svg2code.py +SVG2CODE= ../../tools/svg2code.py +MB_C_HEADER= ../../tools/mb_c_header.m4 M4 = m4 -M4FLAGS = -I /usr/local/share/mb +M4FLAGS = -I /usr/local/share/mb -I../../src/mb LDFLAGS += LIBS += -lmbfly -lX11 -L/usr/local/lib `pkg-config --libs cairo` -CFLAGS += -I/usr/local/include `pkg-config --cflags cairo` +CFLAGS += -I/usr/local/include `pkg-config --cflags cairo` -I../../src BIN = tank all: tank @@ -38,10 +39,10 @@ $(SVG2CODE) $(SVG) $@ $(SVG:C/\.svg/.h/): $(SVG:C/\.svg/.mb/) - $(M4) $(M4FLAGS) mb_c_header.m4 $(.ALLSRC) > $@ + $(M4) $(M4FLAGS) $(MB_C_HEADER) $(.ALLSRC) > $@ $(SVG:C/\.svg/.c/): $(SVG:C/\.svg/.mb/) - $(M4) $(M4FLAGS) mb_c_source.m4 $(.ALLSRC) > $@ + $(M4) $(M4FLAGS) $(MB_C_HEADER) $(.ALLSRC) > $@ .endfor