Mercurial > MadButterfly
comparison inkscape/firefox/template/textmenu/Makefile @ 371:3d21115297ba
Add textmenu template
author | wycc |
---|---|
date | Tue, 17 Mar 2009 08:31:04 +0800 |
parents | |
children | 7d244a85dd68 |
comparison
equal
deleted
inserted
replaced
370:fce37d9c296f | 371:3d21115297ba |
---|---|
1 SRC=main.c %f.c | |
2 OBJ=$(SRC:.c=.o) | |
3 CFLAGS+=`pkg-config --cflags libmbfly` `pkg-config --cflags pangocairo` | |
4 LDFLAGS=`pkg-config --libs libmbfly` | |
5 | |
6 .c.o: | |
7 $(CC) $(CFLAGS) -c -o $@ $< | |
8 | |
9 %.so:%.mbsvg | |
10 svg2code.py $< $(<:.mbsvg=.mb) | |
11 m4 -I /usr/local/share/mb mb_c_header.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.h) | |
12 m4 -I /usr/local/share/mb mb_c_source.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.c) | |
13 $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.mbsvg=.c) | |
14 | |
15 all: list.so textmenu | |
16 | |
17 textmenu : $(OBJ) | |
18 $(CC) -o textmenu $(LDFLAGS) $(OBJ) |