Mercurial > MadButterfly
changeset 326:85951268ee0f
Fix bug in makefile for examples/menu
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Mar 2009 00:10:02 +0800 |
parents | 4453ea44a83d |
children | 85b8bb36fe71 |
files | examples/menu/Makefile.am |
diffstat | 1 files changed, 18 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/menu/Makefile.am Thu Mar 05 14:52:06 2009 +0800 +++ b/examples/menu/Makefile.am Fri Mar 06 00:10:02 2009 +0800 @@ -2,31 +2,32 @@ #SUFFIXES=.svg .so -list.so:list.c list.h - $(MAKE) $(<:.svg=.o) - $(CC) $(CFLAGS) -I ../../include -shared -o $@ $(<:.svg=.o) +list.so: list.o + $(CC) $(CFLAGS) -I ../../include -shared -o $@ $< -list.svg.mb: $(srcdir)/list.svg - $(top_srcdir)/tools/svg2code.py $< $<.mb +list.o: list.h + +list.mb: $(srcdir)/list.svg + $(top_srcdir)/tools/svg2code.py $< $@ -list.c: list.svg.mb list.h - m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $(<:.svg.mb=.c) +list.c: list.mb + m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ -list.h: list.svg.mb - m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $(<:.svg.mb=.h) +list.h: list.mb + m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ -browser.so: browser.c browser.h - $(MAKE) $(<:.svg=.o) - $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.svg=.o) +browser.so: browser.o + $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $< + +browser.o: browser.h browser.h: browser.mb - m4 -I $(top_srcdir)/tools mb_c_header.m4 $(<:.svg=.mb) > $(<:.mb=.h) + m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ -browser.c: browser.mb browser.h - m4 -I $(top_srcdir)/tools mb_c_source.m4 $(<:.svg=.mb) > $(<:.mb=.c) - +browser.c: browser.mb + m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@ browser.mb: $(srcdir)/browser.svg - $(top_srcdir)/tools/svg2code.py $< $(<:.svg=.mb) + $(top_srcdir)/tools/svg2code.py $< $@ noinst_PROGRAMS = menu filebrowser list.so browser.so EXTRA_DIST =