annotate examples/dynamic/Makefile.am @ 255:96ca1357ebc4

Setup dependency between object file and header file in AM file. - *.o should rely on *.h that generated by svg2code.py and M4 macros.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 05 Jan 2009 10:20:25 +0800
parents d9a78c859660
children cac9ad3df633
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
247
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
3 noinst_PROGRAMS = dynamic hello 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
247
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
6 dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h
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
247
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
14
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
15 hello_SOURCES = hello.c mbapp.c mbapp.h
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
16 hello_LDFLAGS = @cairo_LIBS@
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
17 hello_LDADD = $(top_builddir)/src/libmbfly.la
d9a78c859660 Seperate the frameowrk codes from the main.c.
wycc
parents: 246
diff changeset
18
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
19 menu.mb: $(srcdir)/menu.svg
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
20 $(top_srcdir)/tools/svg2code.py $? $@
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
21
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
22 menu.h: menu.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
23 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
24
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
25 menu.c: menu.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
26 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
27
255
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
28 button.so: button.o
229
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
29 gcc -shared -o button.so button.o
cc8dd16d8b6a Modify dynamic to support the dynamic loading
wycc
parents: 207
diff changeset
30
201
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
31 button.mb: $(srcdir)/button.svg
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
32 $(top_srcdir)/tools/svg2code.py $? $@
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
33
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
34 button.h: button.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
35 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
36
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
37 button.c: button.mb
31933f9ee70e Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff changeset
38 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
39
255
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
40 button.o: button.h
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
41
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
42 scene.so: scene.o
242
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
43 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
44
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
45 scene.mb: $(srcdir)/scene.svg
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
46 $(top_srcdir)/tools/svg2code.py $? $@
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
47
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
48 scene.h: scene.mb
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
49 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
50
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
51 scene.c: scene.mb
d3fe0a0f3a8b Implement MBApp API and modify the dynamic example to use this API.
wycc
parents: 231
diff changeset
52 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@
255
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
53
96ca1357ebc4 Setup dependency between object file and header file in AM file.
Thinker K.F. Li <thinker@branda.to>
parents: 247
diff changeset
54 scene.o: scene.h