Mercurial > MadButterfly
view examples/svg2code_ex/Makefile @ 151:d11aa8fc06c7
Fix bug of tanks do not show at right places.
Since we avoid to dirty a subtree if root of a subtree have been dirty or
hidden, it make children that was added into coord tree after a coord be
dirty do not be marked with COF_DIRTY flag. To fix it, when a new coord
is created, the parent is checked and mark new coord with COF_DIRTY flag
if the parent is dirty. It forces new coords to be cleaned and transformed
to right places.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 26 Sep 2008 17:42:16 +0800 |
parents | c14cb6d12030 |
children | 7d700e5f82ba |
line wrap: on
line source
SVG=svg2code_ex.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` LIBS=-lmbfly BINS= ex1 all: $(BINS) ex1: main.o $(SVG:C/.svg/.o/) $(CC) $(LDFLAGS) -o $@ $(.ALLSRC) $(LIBS) main.o: main.c $(SVG:C/.svg/.h/) $(CC) $(CFLAGS) -c -o $@ main.c $(SVG:C/.svg/.o/): $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/) $(CC) -c $(CFLAGS) -o $@ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.mb/): $(SVG) /usr/local/bin/svg2code.py $(.ALLSRC) $@ $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ $(SVG:C/.svg/.h/): $(SVG:C/.svg/.mb/) m4 -I $(TOOLSDIR) mb_c_header.m4 $(.ALLSRC) > $@ clean: for i in *.mb *.o *.core *~ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/) $(BINS); do \ if [ -e "$$i" ]; then \ echo "delete $$i"; \ rm -f "$$i"; \ fi; \ done