Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/src/Makefile.am Tue Jul 07 22:45:12 2009 +0800 +++ b/src/Makefile.am Tue Jul 07 22:46:19 2009 +0800 @@ -2,7 +2,8 @@ lib_LTLIBRARIES = libmbfly.la -noinst_PROGRAMS = X_main +noinst_PROGRAMS = X_main $(TESTCASE) + MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c libmbfly_la_SOURCES = animate.c chgcolor.c coord.c event.c geo.c \ observer.c paint.c redraw_man.c rotate.c shape_path.c \ @@ -15,5 +16,13 @@ X_main_SOURCES = X_main.c X_main_LDADD = $(top_builddir)/src/libmbfly.la -X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/src +X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include X_main_LDFLAGS = @pangocairo_LIBS@ + +testcase_SOURCES = testcase.c $(libmbfly_la_SOURCES) +testcase_CFLAGS = -I$(top_builddir)/include \ + -DUNITTEST -g @cairo_CFLAGS@ \ + @pangocairo_CFLAGS@ +testcase_LDFLAGS = -lcunit -L/usr/local/lib/ @pangocairo_LIBS@ + +EXTRA_PROGRAMS = testcase