Mercurial > MadButterfly
comparison examples/tank/Makefile @ 165:e959ed450b67
* compilation passed
author | "Mat <MatLinuxer2@gmail.com>" |
---|---|
date | Tue, 21 Oct 2008 02:22:17 +0800 |
parents | 3fec69d26be3 |
children | 73c4e93d331c |
comparison
equal
deleted
inserted
replaced
164:3fec69d26be3 | 165:e959ed450b67 |
---|---|
4 SVGCS = $(SVGS:C/\.svg/.c/) | 4 SVGCS = $(SVGS:C/\.svg/.c/) |
5 SVGOS = $(SVGS:C/\.svg/.o/) | 5 SVGOS = $(SVGS:C/\.svg/.o/) |
6 MBS = $(SVGS:C/\.svg/.mb/) | 6 MBS = $(SVGS:C/\.svg/.mb/) |
7 SVG2CODE= ../../tools/svg2code.py | 7 SVG2CODE= ../../tools/svg2code.py |
8 MB_C_HEADER= ../../tools/mb_c_header.m4 | 8 MB_C_HEADER= ../../tools/mb_c_header.m4 |
9 MB_C_SOURCE= ../../tools/mb_c_source.m4 | |
9 M4 = m4 | 10 M4 = m4 |
10 M4FLAGS ?= -I /usr/local/share/mb | 11 M4FLAGS ?= -I /usr/local/share/mb |
11 LDFLAGS += | 12 LDFLAGS += |
12 LIBS += -lmbfly -lX11 -L/usr/local/lib `pkg-config --libs cairo` | 13 LIBS += -lmbfly -lX11 -L/usr/local/lib `pkg-config --libs cairo` -L../../src |
13 CFLAGS += -I/usr/local/include `pkg-config --cflags cairo` -I../../src | 14 CFLAGS += -I/usr/local/include `pkg-config --cflags cairo` -I../../src |
14 BIN = tank | 15 BIN = tank |
15 | 16 |
16 all: tank | 17 all: tank |
17 | 18 |
40 | 41 |
41 $(SVG:C/\.svg/.h/): $(SVG:C/\.svg/.mb/) | 42 $(SVG:C/\.svg/.h/): $(SVG:C/\.svg/.mb/) |
42 $(M4) $(M4FLAGS) $(MB_C_HEADER) $(.ALLSRC) > $@ | 43 $(M4) $(M4FLAGS) $(MB_C_HEADER) $(.ALLSRC) > $@ |
43 | 44 |
44 $(SVG:C/\.svg/.c/): $(SVG:C/\.svg/.mb/) | 45 $(SVG:C/\.svg/.c/): $(SVG:C/\.svg/.mb/) |
45 $(M4) $(M4FLAGS) $(MB_C_HEADER) $(.ALLSRC) > $@ | 46 $(M4) $(M4FLAGS) $(MB_C_SOURCE) $(.ALLSRC) > $@ |
46 | 47 |
47 .endfor | 48 .endfor |
48 | 49 |
49 clean: | 50 clean: |
50 @for f in svgs.h $(SVGHS) $(SVGCS) $(SVGOS) $(MBS) \ | 51 @for f in svgs.h $(SVGHS) $(SVGCS) $(SVGOS) $(MBS) \ |