Mercurial > MadButterfly
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 | 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 | 9 list.svg.mb: $(srcdir)/list.svg |
308 | 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 | 12 list.c: list.svg.mb list.h |
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 | 15 list.h: list.svg.mb |
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 | 19 $(MAKE) $(<:.svg=.o) |
320 | 20 $(CC) $(CFLAGS) -I../../include -I ../../include -shared -o $@ $(<:.svg=.o) |
308 | 21 |
316
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
22 browser.h: browser.mb |
320 | 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 | 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 | 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 | 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 | 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 | 42 filebrowser_SOURCES = filebrowser.c animated_menu.c animated_menu.h |
43 filebrowser_CFLAGS = @pangocairo_CFLAGS@ | |
44 filebrowser_LDFLAGS = @pangocairo_LIBS@ | |
45 filebrowser_LDADD = $(top_builddir)/src/libmbfly.la |