# HG changeset patch # User Thinker K.F. Li # Date 1231122025 -28800 # Node ID 96ca1357ebc4c50416b3ee93b409c33e17b62d04 # Parent d9f007748bceee0580d0e2ab7fd0f9832cecb5fb Setup dependency between object file and header file in AM file. - *.o should rely on *.h that generated by svg2code.py and M4 macros. diff -r d9f007748bce -r 96ca1357ebc4 examples/dynamic/Makefile.am --- a/examples/dynamic/Makefile.am Sun Jan 04 15:43:41 2009 +0800 +++ b/examples/dynamic/Makefile.am Mon Jan 05 10:20:25 2009 +0800 @@ -25,7 +25,7 @@ menu.c: menu.mb m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ -button.so: button.o button.h +button.so: button.o gcc -shared -o button.so button.o button.mb: $(srcdir)/button.svg @@ -37,7 +37,9 @@ button.c: button.mb m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ -scene.so: scene.o scene.h +button.o: button.h + +scene.so: scene.o gcc -shared -o scene.so scene.o scene.mb: $(srcdir)/scene.svg @@ -48,3 +50,5 @@ scene.c: scene.mb m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ + +scene.o: scene.h