comparison examples/menu/Makefile.am @ 319:1633b5aadfc3

Merge the result
author wycc
date Thu, 05 Mar 2009 07:54:35 +0800
parents 535731374dfb
children 6e164a9dd46c
comparison
equal deleted inserted replaced
318:4b58e58c78da 319:1633b5aadfc3
1 include $(top_srcdir)/config.mk 1 include $(top_srcdir)/config.mk
2 2
3 #SUFFIXES=.svg .so 3 #SUFFIXES=.svg .so
4 4
5 list.so:list.svg 5 list.so:list.c list.h
6 $(top_srcdir)/tools/svg2code.py $< $<.mb
7 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
8 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
9 $(MAKE) $(<:.svg=.o) 6 $(MAKE) $(<:.svg=.o)
10 $(CC) -shared -o $@ $(<:.svg=.o) 7 $(CC) -shared -o $@ $(<:.svg=.o)
11 8
12 browser.so:browser.svg 9 list.mb: $(srcdir)/list.svg
13 $(top_srcdir)/tools/svg2code.py $< $<.mb 10 $(top_srcdir)/tools/svg2code.py $< $<.mb
11
12 list.c: list.mb list.h
14 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) 13 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
14
15 list.h: list.mb
15 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) 16 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
17
18 browser.so: browser.c browser.h
16 $(MAKE) $(<:.svg=.o) 19 $(MAKE) $(<:.svg=.o)
17 $(CC) -shared -o $@ $(<:.svg=.o) 20 $(CC) -shared -o $@ $(<:.svg=.o)
21
22 browser.h: browser.mb
23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
24
25 browser.c: browser.mb browser.h
26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
27
28 browser.mb: $(srcdir)/browser.svg
29 $(top_srcdir)/tools/svg2code.py $< $<.mb
18 30
19 noinst_PROGRAMS = menu filebrowser list.so browser.so 31 noinst_PROGRAMS = menu filebrowser list.so browser.so
20 EXTRA_DIST = 32 EXTRA_DIST =
21 33
22 menu_SOURCES = main.c animated_menu.c animated_menu.h 34 menu_SOURCES = main.c animated_menu.c animated_menu.h
23 nodist_dynamic_SOURCES = 35 nodist_menu_SOURCES =
24 CFLAGS = @pangocairo_CFLAGS@ 36 CFLAGS = @pangocairo_CFLAGS@
25 menu_CFLAGS = @pangocairo_CFLAGS@ 37 menu_CFLAGS = @pangocairo_CFLAGS@
26 menu_LDFLAGS = @pangocairo_LIBS@ 38 menu_LDFLAGS = @pangocairo_LIBS@
27 menu_LDADD = $(top_builddir)/src/libmbfly.la 39 menu_LDADD = $(top_builddir)/src/libmbfly.la
28 CLEANFILES = menu.mb menu.c menu.h 40 CLEANFILES = menu.mb menu.c menu.h