view examples/svg2code_ex/Makefile.am @ 231:2637519e2bd7

Move mouse event handler and interpreter to src/mouse.c. - Also change makefiles of examples with a better configuration.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 18 Dec 2008 22:37:15 +0800
parents c7e5b8779bb5
children 755bbf274259 a90fd749af82
line wrap: on
line source

include $(top_srcdir)/config.mk

noinst_PROGRAMS = ex1
EXTRA_DIST = svg2code_ex.svg

ex1_SOURCES = main.c
nodist_ex1_SOURCES = svg2code_ex.c svg2code_ex.h
ex1_CPPFLAGS = @cairo_CFLAGS@ -I$(top_srcdir)
ex1_LDFLAGS = @cairo_LIBS@ 
ex1_LDADD = $(top_builddir)/src/libmbfly.la
BUILT_SOURCES = svg2code_ex.c svg2code_ex.h svg2code_ex.mb
CLEANFILES = svg2code_ex.c svg2code_ex.h svg2code_ex.mb

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

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

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