annotate examples/dynamic/Makefile.am @ 231:2637519e2bd7

Move mouse event handler and interpreter to src/mouse.c. - Also change makefiles of examples with a better configuration.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 18 Dec 2008 22:37:15 +0800
parents 3e6da6f6a226
children d3fe0a0f3a8b
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
230
3e6da6f6a226 Call the button callback when the button is clicked
wycc
parents: 229
diff changeset
3 noinst_PROGRAMS = dynamic button.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
207
fd3e311e7e5d Remove files that would be generated automatically.
Thinker K.F. Li <thinker@branda.to>
parents: 201
diff changeset
7 nodist_dynamic_SOURCES = menu.c menu.h menu.mb button.c button.h button.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
229
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
23 button.so: button.o
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
24 gcc -shared -o button.so button.o
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
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 $< > $@