Mercurial > MadButterfly
annotate examples/menu/Makefile.am @ 316:535731374dfb
More elegant dependency
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 05 Mar 2009 01:48:52 +0800 |
parents | 9e1d72eca57b |
children | 6e164a9dd46c |
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) |
2e97e8082d83
* Fix the symbol definition code which does not assume the id is the same as the mbname.
wycc
parents:
diff
changeset
|
7 $(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
|
8 |
316
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
9 list.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 |
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
12 list.c: list.mb list.h |
308 | 13 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) |
316
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
14 |
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
15 list.h: list.mb |
308 | 16 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.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) |
20 $(CC) -shared -o $@ $(<:.svg=.o) | |
21 | |
316
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
22 browser.h: browser.mb |
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
23 m4 -I $(top_srcdir)/tools mb_c_header.m4 $<.mb > $(<:.svg=.h) |
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 |
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
26 m4 -I $(top_srcdir)/tools mb_c_source.m4 $<.mb > $(<:.svg=.c) |
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 |
535731374dfb
More elegant dependency
Thinker K.F. Li <thinker@branda.to>
parents:
308
diff
changeset
|
29 $(top_srcdir)/tools/svg2code.py $< $<.mb |
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 |