annotate examples/menu/Makefile.am @ 309:4dfb850dee92

Add filebrowser program and SVG file.
author wycc
date Sun, 22 Feb 2009 13:45:28 +0800
parents 9e1d72eca57b
children 535731374dfb
rev   line source
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
1 include $(top_srcdir)/config.mk
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
2
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
3 #SUFFIXES=.svg .so
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
4
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
5 list.so:list.svg
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
6 $(top_srcdir)/tools/svg2code.py $< $<.mb
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
7 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
8 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
9 $(MAKE) $(<:.svg=.o)
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
10 $(CC) -shared -o $@ $(<:.svg=.o)
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
11
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
12 browser.so:browser.svg
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
13 $(top_srcdir)/tools/svg2code.py $< $<.mb
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
14 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c)
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
15 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h)
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
16 $(MAKE) $(<:.svg=.o)
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
17 $(CC) -shared -o $@ $(<:.svg=.o)
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
18
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
19 noinst_PROGRAMS = menu filebrowser list.so browser.so
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
20 EXTRA_DIST =
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
21
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
22 menu_SOURCES = main.c animated_menu.c animated_menu.h
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
23 nodist_dynamic_SOURCES =
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
24 CFLAGS = @pangocairo_CFLAGS@
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
25 menu_CFLAGS = @pangocairo_CFLAGS@
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
26 menu_LDFLAGS = @pangocairo_LIBS@
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
27 menu_LDADD = $(top_builddir)/src/libmbfly.la
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
28 CLEANFILES = menu.mb menu.c menu.h
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
29
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
30 filebrowser_SOURCES = filebrowser.c animated_menu.c animated_menu.h
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
31 filebrowser_CFLAGS = @pangocairo_CFLAGS@
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
32 filebrowser_LDFLAGS = @pangocairo_LIBS@
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
33 filebrowser_LDADD = $(top_builddir)/src/libmbfly.la