diff examples/dynamic/Makefile.am @ 247:d9a78c859660

Seperate the frameowrk codes from the main.c. Write a simpler MBAF demo hello program.
author wycc
date Thu, 01 Jan 2009 08:32:03 +0800
parents 4df1b766bbf5
children 96ca1357ebc4 5006e4abdda5
line wrap: on
line diff
--- a/examples/dynamic/Makefile.am	Thu Jan 01 08:01:00 2009 +0800
+++ b/examples/dynamic/Makefile.am	Thu Jan 01 08:32:03 2009 +0800
@@ -1,9 +1,9 @@
 include $(top_srcdir)/config.mk
 
-noinst_PROGRAMS = dynamic button.so scene.so
+noinst_PROGRAMS = dynamic hello button.so scene.so
 EXTRA_DIST = menu.svg button.svg
 
-dynamic_SOURCES = main.c
+dynamic_SOURCES = main.c mbapp.c mbapp.h mbbutton.c mbbutton.h
 nodist_dynamic_SOURCES = menu.c menu.h menu.mb
 CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES)
 dynamic_LDFLAGS = @cairo_LIBS@ 
@@ -11,6 +11,11 @@
 BUILT_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb
 CLEANFILES = menu.c menu.h menu.mb button.c button.h button.mb
 
+
+hello_SOURCES = hello.c mbapp.c mbapp.h
+hello_LDFLAGS = @cairo_LIBS@ 
+hello_LDADD = $(top_builddir)/src/libmbfly.la
+
 menu.mb: $(srcdir)/menu.svg
 	$(top_srcdir)/tools/svg2code.py $? $@