Mercurial > MadButterfly
view examples/dynamic/Makefile.am @ 246:4df1b766bbf5
Fixed the Makefile.am to generate scene.so automatically.
iModify scene.svg to restore the scene
author | wycc |
---|---|
date | Thu, 01 Jan 2009 08:01:00 +0800 |
parents | d3fe0a0f3a8b |
children | d9a78c859660 |
line wrap: on
line source
include $(top_srcdir)/config.mk noinst_PROGRAMS = dynamic button.so scene.so EXTRA_DIST = menu.svg button.svg dynamic_SOURCES = main.c nodist_dynamic_SOURCES = menu.c menu.h menu.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 button.h 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 $< > $@ scene.so: scene.o scene.h gcc -shared -o scene.so scene.o scene.mb: $(srcdir)/scene.svg $(top_srcdir)/tools/svg2code.py $? $@ scene.h: scene.mb m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $@ scene.c: scene.mb m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $@