Mercurial > MadButterfly
changeset 162:5535899513ce
* patch for linux, and a trick symbol link to include <mb/mb.h>
author | "Mat <MatLinuxer2@gmail.com>" |
---|---|
date | Sun, 19 Oct 2008 00:33:24 +0800 |
parents | 0299cdb004a1 |
children | 7d700e5f82ba |
files | examples/calculator/Makefile src/mb |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 \