Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
254:d9f007748bce | 255:96ca1357ebc4 |
---|---|
23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | 23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
24 | 24 |
25 menu.c: menu.mb | 25 menu.c: menu.mb |
26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ | 26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
27 | 27 |
28 button.so: button.o button.h | 28 button.so: button.o |
29 gcc -shared -o button.so button.o | 29 gcc -shared -o button.so button.o |
30 | 30 |
31 button.mb: $(srcdir)/button.svg | 31 button.mb: $(srcdir)/button.svg |
32 $(top_srcdir)/tools/svg2code.py $? $@ | 32 $(top_srcdir)/tools/svg2code.py $? $@ |
33 | 33 |
35 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | 35 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
36 | 36 |
37 button.c: button.mb | 37 button.c: button.mb |
38 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ | 38 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
39 | 39 |
40 scene.so: scene.o scene.h | 40 button.o: button.h |
41 | |
42 scene.so: scene.o | |
41 gcc -shared -o scene.so scene.o | 43 gcc -shared -o scene.so scene.o |
42 | 44 |
43 scene.mb: $(srcdir)/scene.svg | 45 scene.mb: $(srcdir)/scene.svg |
44 $(top_srcdir)/tools/svg2code.py $? $@ | 46 $(top_srcdir)/tools/svg2code.py $? $@ |
45 | 47 |
46 scene.h: scene.mb | 48 scene.h: scene.mb |
47 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ | 49 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ |
48 | 50 |
49 scene.c: scene.mb | 51 scene.c: scene.mb |
50 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ | 52 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ |
53 | |
54 scene.o: scene.h |