Mercurial > MadButterfly
comparison examples/dynamic/Makefile.am @ 287:5c066380a84e
* Fix tspan inside tspan parsing issue
* Fix the compilation issue for the dynamic. However, we need to find why the rules for so does not work.
author | wycc |
---|---|
date | Sat, 31 Jan 2009 17:24:00 +0800 |
parents | 248a40d51473 |
children | f65c4589549f |
comparison
equal
deleted
inserted
replaced
286:22d771e1b710 | 287:5c066380a84e |
---|---|
1 include $(top_srcdir)/config.mk | 1 include $(top_srcdir)/config.mk |
2 | 2 |
3 SUFFIXES=.svg .mbso | 3 #SUFFIXES=.svg .mbso |
4 | 4 |
5 %.so:%.svg | 5 button.so:button.svg |
6 $(top_srcdir)/tools/svg2code.py $< $<.mb | 6 $(top_srcdir)/tools/svg2code.py $< $<.mb |
7 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) | 7 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) |
8 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) | 8 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) |
9 make $(<:.svg=.o) | 9 make $(<:.svg=.o) |
10 gcc -shared -o $@ $(<:.svg=.o) | 10 $(CC) -shared -o $@ $(<:.svg=.o) |
11 | 11 |
12 noinst_PROGRAMS = dynamic hello text | 12 mytext.so:mytext.svg |
13 $(top_srcdir)/tools/svg2code.py $< $<.mb | |
14 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) | |
15 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) | |
16 make $(<:.svg=.o) | |
17 $(CC) -shared -o $@ $(<:.svg=.o) | |
18 scene.so:scene.svg | |
19 $(top_srcdir)/tools/svg2code.py $< $<.mb | |
20 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) | |
21 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) | |
22 make $(<:.svg=.o) | |
23 $(CC) -shared -o $@ $(<:.svg=.o) | |
24 | |
25 noinst_PROGRAMS = dynamic hello text button.so mytext.so scene.so | |
13 EXTRA_DIST = menu.svg button.svg | 26 EXTRA_DIST = menu.svg button.svg |
14 | 27 |
15 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h | 28 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h |
16 nodist_dynamic_SOURCES = | 29 nodist_dynamic_SOURCES = |
17 CPPFLAGS = @pangocairo_CFLAGS@ $(INCLUDES) | 30 CPPFLAGS = @pangocairo_CFLAGS@ $(INCLUDES) |
18 dynamic_LDFLAGS = @pangocairo_LIBS@ | 31 dynamic_LDFLAGS = @pangocairo_LIBS@ |
19 dynamic_LDADD = $(top_builddir)/src/libmbfly.la | 32 dynamic_LDADD = $(top_builddir)/src/libmbfly.la |
20 BUILT_SOURCES = | 33 BUILT_SOURCES = |
21 CLEANFILES = menu.c menu.h menu.mb button.c button.h button.mb | 34 CLEANFILES = menu.c menu.h menu.mb button.mb |
22 | 35 |
23 | 36 |
24 hello_SOURCES = hello.c mbapp.c mbapp.h | 37 hello_SOURCES = hello.c mbapp.c mbapp.h |
25 hello_LDFLAGS = @pangocairo_LIBS@ | 38 hello_LDFLAGS = @pangocairo_LIBS@ |
26 hello_LDADD = $(top_builddir)/src/libmbfly.la | 39 hello_LDADD = $(top_builddir)/src/libmbfly.la |