view examples/dynamic/Makefile.am @ 241:104d83378582

Add scene support in svg2code.py. - Add mb_sprite_t::goto_scene() - svg2code.py recoganize "scenes" tag in metadata of SVG file. - tranform scenes into SCENE() macro. - define SCENE macro in mb_c_*.m4
author Thinker K.F. Li <thinker@branda.to>
date Wed, 31 Dec 2008 02:08:40 +0800
parents 2637519e2bd7
children d3fe0a0f3a8b
line wrap: on
line source

include $(top_srcdir)/config.mk

noinst_PROGRAMS = dynamic button.so
EXTRA_DIST = menu.svg button.svg

dynamic_SOURCES = main.c
nodist_dynamic_SOURCES = menu.c menu.h menu.mb button.c button.h button.mb
CPPFLAGS = @cairo_CFLAGS@ $(INCLUDES)
dynamic_LDFLAGS = @cairo_LIBS@ 
dynamic_LDADD = $(top_builddir)/src/libmbfly.la
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

menu.mb: $(srcdir)/menu.svg
	$(top_srcdir)/tools/svg2code.py $? $@

menu.h: menu.mb
	m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@

menu.c: menu.mb
	m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@

button.so: button.o
	gcc -shared -o button.so button.o

button.mb: $(srcdir)/button.svg
	$(top_srcdir)/tools/svg2code.py $? $@

button.h: button.mb
	m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@

button.c: button.mb
	m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@