Mercurial > MadButterfly
diff inkscape/firefox/template/textmenu/Makefile @ 371:3d21115297ba
Add textmenu template
author | wycc |
---|---|
date | Tue, 17 Mar 2009 08:31:04 +0800 |
parents | |
children | 7d244a85dd68 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inkscape/firefox/template/textmenu/Makefile Tue Mar 17 08:31:04 2009 +0800 @@ -0,0 +1,18 @@ +SRC=main.c %f.c +OBJ=$(SRC:.c=.o) +CFLAGS+=`pkg-config --cflags libmbfly` `pkg-config --cflags pangocairo` +LDFLAGS=`pkg-config --libs libmbfly` + +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +%.so:%.mbsvg + svg2code.py $< $(<:.mbsvg=.mb) + m4 -I /usr/local/share/mb mb_c_header.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.h) + m4 -I /usr/local/share/mb mb_c_source.m4 $(<:.mbsvg=.mb) > $(<:.mbsvg=.c) + $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.mbsvg=.c) + +all: list.so textmenu + +textmenu : $(OBJ) + $(CC) -o textmenu $(LDFLAGS) $(OBJ)