view examples/menu/Makefile.am @ 323:33e8ff8b7ad2

Check in missing file
author wycc
date Thu, 05 Mar 2009 14:31:38 +0800
parents 6e164a9dd46c
children 85951268ee0f
line wrap: on
line source

include $(top_srcdir)/config.mk

#SUFFIXES=.svg .so

list.so:list.c list.h
	$(MAKE) $(<:.svg=.o)
	$(CC) $(CFLAGS) -I ../../include -shared -o $@ $(<:.svg=.o)

list.svg.mb: $(srcdir)/list.svg
	$(top_srcdir)/tools/svg2code.py $< $<.mb

list.c: list.svg.mb list.h
	m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $(<:.svg.mb=.c)

list.h: list.svg.mb
	m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $(<:.svg.mb=.h)

browser.so: browser.c browser.h
	$(MAKE) $(<:.svg=.o)
	$(CC) $(CFLAGS) -I../../include  -I ../../include -shared -o $@ $(<:.svg=.o)

browser.h: browser.mb
	m4 -I $(top_srcdir)/tools mb_c_header.m4 $(<:.svg=.mb) > $(<:.mb=.h)

browser.c: browser.mb browser.h
	m4 -I $(top_srcdir)/tools mb_c_source.m4 $(<:.svg=.mb) > $(<:.mb=.c)

browser.mb: $(srcdir)/browser.svg
	$(top_srcdir)/tools/svg2code.py $< $(<:.svg=.mb)

noinst_PROGRAMS = menu filebrowser list.so browser.so
EXTRA_DIST = 

menu_SOURCES = main.c animated_menu.c animated_menu.h
nodist_menu_SOURCES = 
CFLAGS = @pangocairo_CFLAGS@ 
menu_CFLAGS = @pangocairo_CFLAGS@ 
menu_LDFLAGS = @pangocairo_LIBS@ 
menu_LDADD = $(top_builddir)/src/libmbfly.la
CLEANFILES = menu.mb menu.c menu.h

filebrowser_SOURCES = filebrowser.c animated_menu.c animated_menu.h
filebrowser_CFLAGS = @pangocairo_CFLAGS@ 
filebrowser_LDFLAGS = @pangocairo_LIBS@ 
filebrowser_LDADD = $(top_builddir)/src/libmbfly.la