annotate examples/dynamic/Makefile.am @ 229:cc8dd16d8b6a

Modify dynamic to support the dynamic loading
author wycc
date Wed, 17 Dec 2008 21:18:44 +0800
parents fd3e311e7e5d
children 3e6da6f6a226
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
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
3 noinst_PROGRAMS = dynamic
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
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
8 dynamic_CPPFLAGS = @cairo_CFLAGS@ -I$(top_srcdir)
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
229
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
13 INCLUDES= @cairo_CFLAGS@ -I$(top_srcdir)
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
14
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
15 menu.mb: $(srcdir)/menu.svg
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
16 $(top_srcdir)/tools/svg2code.py $? $@
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
17
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
18 menu.h: menu.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
19 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
20
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
21 menu.c: menu.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
22 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
23
229
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
24 button.so: button.o
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
25 gcc -shared -o button.so button.o
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
26
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
27 button.mb: $(srcdir)/button.svg
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
28 $(top_srcdir)/tools/svg2code.py $? $@
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
29
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
30 button.h: button.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
31 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
32
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
33 button.c: button.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
34 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@