Mercurial > MadButterfly
annotate examples/dynamic/Makefile.am @ 246:4df1b766bbf5
Fixed the Makefile.am to generate scene.so automatically.
iModify scene.svg to restore the scene
author | wycc |
---|---|
date | Thu, 01 Jan 2009 08:01:00 +0800 |
parents | d3fe0a0f3a8b |
children | d9a78c859660 |
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 |
246
4df1b766bbf5
Fixed the Makefile.am to generate scene.so automatically.
wycc
parents:
242
diff
changeset
|
3 noinst_PROGRAMS = dynamic button.so scene.so |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
4 EXTRA_DIST = menu.svg button.svg |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
5 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
6 dynamic_SOURCES = main.c |
246
4df1b766bbf5
Fixed the Makefile.am to generate scene.so automatically.
wycc
parents:
242
diff
changeset
|
7 nodist_dynamic_SOURCES = menu.c menu.h menu.mb |
231
2637519e2bd7
Move mouse event handler and interpreter to src/mouse.c.
Thinker K.F. Li <thinker@branda.to>
parents:
230
diff
changeset
|
8 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES) |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
9 dynamic_LDFLAGS = @cairo_LIBS@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
10 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
|
11 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
|
12 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
|
13 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
14 menu.mb: $(srcdir)/menu.svg |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
15 $(top_srcdir)/tools/svg2code.py $? $@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
16 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
17 menu.h: menu.mb |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
18 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
19 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
20 menu.c: menu.mb |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
21 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
22 |
242
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
23 button.so: button.o button.h |
229 | 24 gcc -shared -o button.so button.o |
25 | |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
26 button.mb: $(srcdir)/button.svg |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
27 $(top_srcdir)/tools/svg2code.py $? $@ |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
28 |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
29 button.h: button.mb |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
30 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
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 button.c: button.mb |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
33 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
242
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
34 |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
35 scene.so: scene.o scene.h |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
36 gcc -shared -o scene.so scene.o |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
37 |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
38 scene.mb: $(srcdir)/scene.svg |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
39 $(top_srcdir)/tools/svg2code.py $? $@ |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
40 |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
41 scene.h: scene.mb |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
42 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
43 |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
44 scene.c: scene.mb |
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
45 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |