Transition to new testsuite
[nobug.git] / Makefile.am
blob9c5f82dfe5b2086d23190d7b480342b38a2a432e
1 # This file is part of the NoBug debugging library.
3 # Copyright (C) 2007, 2008, Christian Thaeter <ct@pipapo.org>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, contact Christian Thaeter <ct@pipapo.org>.
18 include_HEADERS                         = src/nobug.h
19 pcdir                                   = $(libdir)/pkgconfig
20 pc_DATA                                 = nobug.pc nobugmt.pc
22 ##### single-threading variant
24 lib_LTLIBRARIES                         = libnobug.la
25 libnobug_la_SOURCES                     = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c
26 libnobug_la_CPPFLAGS                    = -DNOBUG_USE_PTHREAD=0
28 bin_PROGRAMS                            = nobug_rbdump
29 nobug_rbdump_SOURCES                    = src/nobug_rbdump.c
30 nobug_rbdump_LDADD                      = libnobug.la
33 ##### multi-threading variant
35 if HAVE_THREADING
37 lib_LTLIBRARIES                         += libnobugmt.la
38 libnobugmt_la_SOURCES                   = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c src/nobug_thread.c
39 libnobugmt_la_CFLAGS                    = @PTHREAD_CFLAGS@
41 endif   # HAVE_THREADING
43 ##### Testsuite
45 include tests/Makefile.am
48 ##### maintainer targets
50 meta:
51         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Documentation?action=print' |\
52         (read; read; cat) > $(top_srcdir)/README
53         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Authors?action=print' |\
54         (read; read; cat) > $(top_srcdir)/AUTHORS
55         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/News?action=print' |\
56         (read; read; cat) > $(top_srcdir)/NEWS
58 #ChangeLog:
59 #       git whatchanged --max-count=100 | sed -e 's/:.*\.\.\.//' > $(top_srcdir)/ChangeLog
61 release: dist
62         list='$(DIST_ARCHIVES)'; for i in $$list; do \
63                 gpg -s $$i;\
64                 rm $$i;\
65         done