changeset 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 d9f007748bce
children cac9ad3df633
files examples/dynamic/Makefile.am
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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