view examples/dynamic/Makefile.am @ 230:3e6da6f6a226

Call the button callback when the button is clicked
author wycc
date Wed, 17 Dec 2008 21:37:39 +0800
parents cc8dd16d8b6a
children 2637519e2bd7
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
dynamic_CPPFLAGS = @cairo_CFLAGS@ -I$(top_srcdir)
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
INCLUDES= @cairo_CFLAGS@ -I$(top_srcdir)

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 $< > $@