Mercurial > MadButterfly
annotate 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 |
rev | line source |
---|---|
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
1 include $(top_srcdir)/config.mk |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
2 |
277 | 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 | |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
13 EXTRA_DIST = menu.svg button.svg |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
14 |
247 | 15 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h |
277 | 16 nodist_dynamic_SOURCES = |
231
2637519e2bd7
Move mouse event handler and interpreter to src/mouse.c.
Thinker K.F. Li <thinker@branda.to>
parents:
230
diff
changeset
|
17 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
18 dynamic_LDFLAGS = @cairo_LIBS@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
19 dynamic_LDADD = $(top_builddir)/src/libmbfly.la |
207
fd3e311e7e5d
Remove files that would be generated automatically.
Thinker K.F. Li <thinker@branda.to>
parents:
201
diff
changeset
|
20 BUILT_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb |
fd3e311e7e5d
Remove files that would be generated automatically.
Thinker K.F. Li <thinker@branda.to>
parents:
201
diff
changeset
|
21 CLEANFILES = menu.c menu.h menu.mb button.c button.h button.mb |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
22 |
247 | 23 |
24 hello_SOURCES = hello.c mbapp.c mbapp.h | |
25 hello_LDFLAGS = @cairo_LIBS@ | |
26 hello_LDADD = $(top_builddir)/src/libmbfly.la | |
27 | |
277 | 28 list_SOURCES = list.c mbapp.c mbapp.h |
29 list_LDFLAGS = @cairo_LIBS@ | |
30 list_LDADD = $(top_builddir)/src/libmbfly.la | |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
31 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
32 |