OSDN Git Service

c3ee51c73d07b0f8139548029578d18d84bce487
[ccunit/ccunit.git] / src / ccunit / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ##   Copyright (C) 2003 TSUTSUMI Kikuo.
3 ##   This file is part of the CCUnit Library.
4 ##
5 ##   The CCUnit Library is free software; you can redistribute it and/or
6 ##   modify it under the terms of the GNU Lesser General Public License
7 ##   as published by the Free Software Foundation; either version 2.1 of
8 ##   the License, or (at your option) any later version.
9 ##
10 ##   The CCUnit Library is distributed in the hope that it will be
11 ##   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 ##   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ##   GNU Lesser General Public License for more details.
14 ##
15 ##   You should have received a copy of the GNU Lesser General Public
16 ##   License along with the CCUnit Library; see the file COPYING.LESSER.
17 ##   If not, write to the Free Software Foundation, Inc., 59 Temple
18 ##   Place - Suite 330, Boston, MA 02111-1307, USA.  
19
20 # $Id$
21
22 lib_LTLIBRARIES = libccunit.la
23
24 ## ls -1 CCUnit*.[ch] | sort | sed -e 's/^/     /' -e 's/$/ \\/' -e '$s/\\$//'
25 libccunit_la_SOURCES = \
26         CCUnit.h \
27         CCUnitAssert.c \
28         CCUnitAssert.h \
29         CCUnitConfig.h \
30         CCUnitList.c \
31         CCUnitList.h \
32         CCUnitLogMessage.c \
33         CCUnitLogMessage.h \
34         CCUnitMakeSuite.c \
35         CCUnitMakeSuite.h \
36         CCUnitPrintSuite.c \
37         CCUnitReadSuite.c \
38         CCUnitTest.c \
39         CCUnitTest.h \
40         CCUnitTestCase.c \
41         CCUnitTestCase.h \
42         CCUnitTestFailure.c \
43         CCUnitTestFailure.h \
44         CCUnitTestFixture.c \
45         CCUnitTestFixture.h \
46         CCUnitTestListener.h \
47         CCUnitTestResult.c \
48         CCUnitTestResult.h \
49         CCUnitTestRunner.c \
50         CCUnitTestRunner.h \
51         CCUnitTestSuite.c \
52         CCUnitTestSuite.h \
53         CCUnitVersion.c
54
55 nodist_libccunit_la_SOURCES = config.h 
56
57 EXTRA_DIST= malloc.c realloc.c strdup.c 
58
59 libccunit_la_LIBADD = @LTLIBOBJS@
60 libccunit_la_LDFLAGS = -no-undefined -version-info 0:0:0
61
62 AM_CFLAGS=-Wall -Werror @COVERAGEFLAGS@
63 AM_CPPFLAGS=-I$(top_srcdir)/src 
64
65 CLEANFILES=*~ .*~ ./\#*\# *.log *.bb *.bbg *.da *.gcov *.cov
66
67 coverage: libccunit.cov
68
69 libccunit.cov: $(libccunit_a_SOURCES)
70         -rm $@
71         -touch $@
72         for f in *.c; do \
73           bn=$$(basename $$f .c); \
74           if test -f $$bn.da && test -f $$bn.bb; then \
75             (set -x; gcov -f $$f >> $@ ); \
76           fi;\
77         done