view inkscape/firefox/template/textmenu/Makefile @ 1017:9b5d4839c5bb refine_backend_if

Use mb_timer_man_t instead of mb_tman_t. We should fix testcase later.
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 12:38:36 +0800
parents 7d244a85dd68
children
line wrap: on
line source

SRC=main.c %n.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)