Mercurial > MadButterfly
annotate examples/dynamic/Makefile.am @ 331:2a8bf3efbc67
Change makefile to support building in other directory.
- Autoconf support building directory other than source directory.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Mar 2009 23:02:32 +0800 |
parents | 2e97e8082d83 |
children | 02e457d374f5 |
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 |
287 | 3 #SUFFIXES=.svg .mbso |
277 | 4 |
287 | 5 noinst_PROGRAMS = dynamic hello text button.so mytext.so scene.so |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
6 EXTRA_DIST = menu.svg button.svg |
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
7 |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
290
diff
changeset
|
8 dynamic_SOURCES = main.c |
277 | 9 nodist_dynamic_SOURCES = |
278
a90fd749af82
Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents:
277
diff
changeset
|
10 CPPFLAGS = @pangocairo_CFLAGS@ $(INCLUDES) |
a90fd749af82
Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents:
277
diff
changeset
|
11 dynamic_LDFLAGS = @pangocairo_LIBS@ |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
12 dynamic_LDADD = $(top_builddir)/src/libmbfly.la |
282 | 13 BUILT_SOURCES = |
287 | 14 CLEANFILES = menu.c menu.h menu.mb button.mb |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
15 |
247 | 16 |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
290
diff
changeset
|
17 hello_SOURCES = hello.c |
278
a90fd749af82
Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents:
277
diff
changeset
|
18 hello_LDFLAGS = @pangocairo_LIBS@ |
247 | 19 hello_LDADD = $(top_builddir)/src/libmbfly.la |
20 | |
201
31933f9ee70e
Chkec in demo for dynamic rectangle creation and button.
wycc@wycc-desktop
parents:
diff
changeset
|
21 |
296
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
290
diff
changeset
|
22 text_SOURCES = text.c |
285
248a40d51473
Check in test program for sh_text_set_text for debugging. It is not working yet.
wycc
parents:
283
diff
changeset
|
23 text_LDFLAGS = @pangocairo_LIBS@ |
248a40d51473
Check in test program for sh_text_set_text for debugging. It is not working yet.
wycc
parents:
283
diff
changeset
|
24 text_LDADD = $(top_builddir)/src/libmbfly.la |
242
d3fe0a0f3a8b
Implement MBApp API and modify the dynamic example to use this API.
wycc
parents:
231
diff
changeset
|
25 |
331
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
26 button.so: button.o |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
27 $(CC) $(CFLAGS) -I ../../include -shared -o $@ $< |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
28 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
29 button.o: button.c button.h |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
30 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
31 button.c: button.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
32 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
33 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
34 button.h: button.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
35 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
36 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
37 button.mb: button.svg |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
38 $(top_srcdir)/tools/svg2code.py $< $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
39 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
40 mytext.so: mytext.o |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
41 $(CC) $(CFLAGS) -I ../../include -shared -o $@ $< |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
42 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
43 mytext.o: mytext.c mytext.h |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
44 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
45 mytext.c: mytext.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
46 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
47 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
48 mytext.h: mytext.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
49 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
50 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
51 mytext.mb: mytext.svg |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
52 $(top_srcdir)/tools/svg2code.py $< $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
53 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
54 scene.so: scene.o |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
55 $(CC) $(CFLAGS) -I ../../include -shared -o $@ $< |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
56 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
57 scene.o: scene.c scene.h |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
58 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
59 scene.c: scene.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
60 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
61 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
62 scene.h: scene.mb |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
63 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
64 |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
65 scene.mb: scene.svg |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
66 $(top_srcdir)/tools/svg2code.py $< $@ |
2a8bf3efbc67
Change makefile to support building in other directory.
Thinker K.F. Li <thinker@branda.to>
parents:
296
diff
changeset
|
67 |