Mercurial > MadButterfly
comparison src/Makefile.am @ 408:7f7855df2af0
Make unittest built by automake and autoconf.
./configure --enable-testcase to build testcase.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 07 Jul 2009 22:46:19 +0800 |
parents | 44b8223f307c |
children | 1a923ea699c1 |
comparison
equal
deleted
inserted
replaced
407:92a459a1c5aa | 408:7f7855df2af0 |
---|---|
1 include $(top_srcdir)/config.mk | 1 include $(top_srcdir)/config.mk |
2 | 2 |
3 lib_LTLIBRARIES = libmbfly.la | 3 lib_LTLIBRARIES = libmbfly.la |
4 | 4 |
5 noinst_PROGRAMS = X_main | 5 noinst_PROGRAMS = X_main $(TESTCASE) |
6 | |
6 MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c | 7 MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c |
7 libmbfly_la_SOURCES = animate.c chgcolor.c coord.c event.c geo.c \ | 8 libmbfly_la_SOURCES = animate.c chgcolor.c coord.c event.c geo.c \ |
8 observer.c paint.c redraw_man.c rotate.c shape_path.c \ | 9 observer.c paint.c redraw_man.c rotate.c shape_path.c \ |
9 shape_rect.c shape_text.c shift.c subtree_free.c timer.c \ | 10 shape_rect.c shape_text.c shift.c subtree_free.c timer.c \ |
10 timertool.c tools.c visibility.c X_supp.c prop.c sprite.c \ | 11 timertool.c tools.c visibility.c X_supp.c prop.c sprite.c \ |
13 libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ @pangocairo_CFLAGS@ | 14 libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ @pangocairo_CFLAGS@ |
14 libmbfly_la_LDFLAGS = @cairo_LIBS@ @pangocairo_LIBS@ | 15 libmbfly_la_LDFLAGS = @cairo_LIBS@ @pangocairo_LIBS@ |
15 | 16 |
16 X_main_SOURCES = X_main.c | 17 X_main_SOURCES = X_main.c |
17 X_main_LDADD = $(top_builddir)/src/libmbfly.la | 18 X_main_LDADD = $(top_builddir)/src/libmbfly.la |
18 X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/src | 19 X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include |
19 X_main_LDFLAGS = @pangocairo_LIBS@ | 20 X_main_LDFLAGS = @pangocairo_LIBS@ |
21 | |
22 testcase_SOURCES = testcase.c $(libmbfly_la_SOURCES) | |
23 testcase_CFLAGS = -I$(top_builddir)/include \ | |
24 -DUNITTEST -g @cairo_CFLAGS@ \ | |
25 @pangocairo_CFLAGS@ | |
26 testcase_LDFLAGS = -lcunit -L/usr/local/lib/ @pangocairo_LIBS@ | |
27 | |
28 EXTRA_PROGRAMS = testcase |