Mercurial > MadButterfly
comparison examples/dynamic/Makefile.am @ 277:5006e4abdda5
Allow any elemnt to be a symbol.
author | wycc |
---|---|
date | Sun, 04 Jan 2009 12:01:41 +0800 |
parents | d9a78c859660 |
children | a90fd749af82 61aebecbb994 |
comparison
equal
deleted
inserted
replaced
249:ab8284c8dcee | 277:5006e4abdda5 |
---|---|
1 include $(top_srcdir)/config.mk | 1 include $(top_srcdir)/config.mk |
2 | 2 |
3 noinst_PROGRAMS = dynamic hello button.so scene.so | 3 SUFFIXES=.svg .mbso |
4 | |
5 %.so:%.svg | |
6 $(top_srcdir)/tools/svg2code.py $< $<.mb | |
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) | |
9 make $(<:.svg=.o) | |
10 gcc -shared -o $@ $(<:.svg=.o) | |
11 | |
12 noinst_PROGRAMS = dynamic hello list button.so scene.so | |
4 EXTRA_DIST = menu.svg button.svg | 13 EXTRA_DIST = menu.svg button.svg |
5 | 14 |
6 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h | 15 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h |
7 nodist_dynamic_SOURCES = menu.c menu.h menu.mb | 16 nodist_dynamic_SOURCES = |
8 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) | 17 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) |
9 dynamic_LDFLAGS = @cairo_LIBS@ | 18 dynamic_LDFLAGS = @cairo_LIBS@ |
10 dynamic_LDADD = $(top_builddir)/src/libmbfly.la | 19 dynamic_LDADD = $(top_builddir)/src/libmbfly.la |
11 BUILT_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb | 20 BUILT_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb |
12 CLEANFILES = menu.c menu.h menu.mb button.c button.h button.mb | 21 CLEANFILES = menu.c menu.h menu.mb button.c button.h button.mb |
14 | 23 |
15 hello_SOURCES = hello.c mbapp.c mbapp.h | 24 hello_SOURCES = hello.c mbapp.c mbapp.h |
16 hello_LDFLAGS = @cairo_LIBS@ | 25 hello_LDFLAGS = @cairo_LIBS@ |
17 hello_LDADD = $(top_builddir)/src/libmbfly.la | 26 hello_LDADD = $(top_builddir)/src/libmbfly.la |
18 | 27 |
19 menu.mb: $(srcdir)/menu.svg | 28 list_SOURCES = list.c mbapp.c mbapp.h |
20 $(top_srcdir)/tools/svg2code.py $? $@ | 29 list_LDFLAGS = @cairo_LIBS@ |
30 list_LDADD = $(top_builddir)/src/libmbfly.la | |
21 | 31 |
22 menu.h: menu.mb | |
23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | |
24 | 32 |
25 menu.c: menu.mb | |
26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ | |
27 | |
28 button.so: button.o button.h | |
29 gcc -shared -o button.so button.o | |
30 | |
31 button.mb: $(srcdir)/button.svg | |
32 $(top_srcdir)/tools/svg2code.py $? $@ | |
33 | |
34 button.h: button.mb | |
35 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | |
36 | |
37 button.c: button.mb | |
38 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ | |
39 | |
40 scene.so: scene.o scene.h | |
41 gcc -shared -o scene.so scene.o | |
42 | |
43 scene.mb: $(srcdir)/scene.svg | |
44 $(top_srcdir)/tools/svg2code.py $? $@ | |
45 | |
46 scene.h: scene.mb | |
47 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | |
48 | |
49 scene.c: scene.mb | |
50 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |