annotate 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
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
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
5 list.so:list.c list.h
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
6 $(MAKE) $(<:.svg=.o)
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
7 $(CC) $(CFLAGS) -I ../../include -shared -o $@ $(<:.svg=.o)
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
8
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
9 list.svg.mb: $(srcdir)/list.svg
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
10 $(top_srcdir)/tools/svg2code.py $< $<.mb
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
11
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
12 list.c: list.svg.mb list.h
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
13 m4 -I $(top_srcdir)/tools mb_c_source.m4 $< > $(<:.svg.mb=.c)
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
14
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
15 list.h: list.svg.mb
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
16 m4 -I $(top_srcdir)/tools mb_c_header.m4 $< > $(<:.svg.mb=.h)
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
17
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
18 browser.so: browser.c browser.h
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
19 $(MAKE) $(<:.svg=.o)
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
20 $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.svg=.o)
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
21
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
22 browser.h: browser.mb
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $(<:.svg=.mb) > $(<:.mb=.h)
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
24
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
25 browser.c: browser.mb browser.h
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $(<:.svg=.mb) > $(<:.mb=.c)
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
27
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
28 browser.mb: $(srcdir)/browser.svg
320
6e164a9dd46c Fix the Makefile to generate files correctly.
wycc
parents: 316
diff changeset
29 $(top_srcdir)/tools/svg2code.py $< $(<:.svg=.mb)
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
30
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
31 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
32 EXTRA_DIST =
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
33
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
34 menu_SOURCES = main.c animated_menu.c animated_menu.h
316
535731374dfb More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents: 308
diff changeset
35 nodist_menu_SOURCES =
296
2e97e8082d83 * Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff changeset
36 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
37 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
38 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
39 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
40 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
41
308
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
42 filebrowser_SOURCES = filebrowser.c animated_menu.c animated_menu.h
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
43 filebrowser_CFLAGS = @pangocairo_CFLAGS@
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
44 filebrowser_LDFLAGS = @pangocairo_LIBS@
9e1d72eca57b Seperate mb_animated_menu from the demo program
wycc
parents: 296
diff changeset
45 filebrowser_LDADD = $(top_builddir)/src/libmbfly.la