Mercurial > MadButterfly
annotate examples/svg2code_ex/Makefile @ 73:9ab15ebc9061
Observer for mouse events
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 18 Aug 2008 01:59:26 +0800 |
parents | 171a8cb7e4b5 |
children | 3645e29e4986 |
rev | line source |
---|---|
72 | 1 SVG=svg2code_ex.svg |
2 TOOLSDIR=../../tools | |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
3 INCS=-I../../src |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
4 CFLAGS=-g `pkg-config --cflags cairo` $(INCS) -Wall |
72 | 5 |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
6 all: $(SVG:C/.svg/.o/) |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
7 |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
8 $(SVG:C/.svg/.o/): $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/) |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
9 $(CC) -c $(CFLAGS) -o $@ $(SVG:C/.svg/.c/) |
72 | 10 |
11 $(SVG:C/.svg/.mb/): $(SVG) | |
12 $(TOOLSDIR)/svg2code.py $(.ALLSRC) $@ | |
13 | |
14 $(SVG:C/.svg/.c/): $(SVG:C/.svg/.mb/) | |
15 m4 -I $(TOOLSDIR) mb_c_source.m4 $(.ALLSRC) > $@ | |
16 | |
17 $(SVG:C/.svg/.h/): $(SVG:C/.svg/.mb/) | |
18 m4 -I $(TOOLSDIR) mb_c_header.m4 $(.ALLSRC) > $@ | |
19 | |
20 clean: | |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
72
diff
changeset
|
21 for i in *.mb *.o *~ $(SVG:C/.svg/.c/) $(SVG:C/.svg/.h/); do \ |
72 | 22 if [ -e "$$i" ]; then \ |
23 echo "delete $$i"; \ | |
24 rm -f "$$i"; \ | |
25 fi; \ | |
26 done |