diff examples/menu/Makefile.am @ 308:9e1d72eca57b

Seperate mb_animated_menu from the demo program
author wycc
date Sun, 22 Feb 2009 11:52:56 +0800
parents 2e97e8082d83
children 535731374dfb
line wrap: on
line diff
--- a/examples/menu/Makefile.am	Sat Feb 21 21:51:05 2009 +0800
+++ b/examples/menu/Makefile.am	Sun Feb 22 11:52:56 2009 +0800
@@ -9,10 +9,17 @@
 	$(MAKE) $(<:.svg=.o)
 	$(CC) -shared -o $@ $(<:.svg=.o)
 
-noinst_PROGRAMS = menu
+browser.so:browser.svg
+	$(top_srcdir)/tools/svg2code.py $< $<.mb
+	m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
+	m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
+	$(MAKE) $(<:.svg=.o)
+	$(CC) -shared -o $@ $(<:.svg=.o)
+
+noinst_PROGRAMS = menu filebrowser list.so browser.so
 EXTRA_DIST = 
 
-menu_SOURCES = main.c
+menu_SOURCES = main.c animated_menu.c animated_menu.h
 nodist_dynamic_SOURCES = 
 CFLAGS = @pangocairo_CFLAGS@ 
 menu_CFLAGS = @pangocairo_CFLAGS@ 
@@ -20,3 +27,7 @@
 menu_LDADD = $(top_builddir)/src/libmbfly.la
 CLEANFILES = menu.mb menu.c menu.h
 
+filebrowser_SOURCES = filebrowser.c animated_menu.c animated_menu.h
+filebrowser_CFLAGS = @pangocairo_CFLAGS@ 
+filebrowser_LDFLAGS = @pangocairo_LIBS@ 
+filebrowser_LDADD = $(top_builddir)/src/libmbfly.la