Mercurial > MadButterfly
changeset 161:0299cdb004a1
* patch for linux, compilation still buggy.
author | "Mat <MatLinuxer2@gmail.com>" |
---|---|
date | Sun, 19 Oct 2008 00:10:48 +0800 |
parents | 147c93163ef0 |
children | 5535899513ce |
files | examples/tank/Makefile |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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