1 # This file is part of the NoBug debugging library.
4 # 2007, 2008, 2009, Christian Thaeter <ct@pipapo.org>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, contact Christian Thaeter <ct@pipapo.org>.
19 include_HEADERS = src/nobug.h
20 pcdir = $(libdir)/pkgconfig
21 pc_DATA = nobug.pc nobugmt.pc
24 AM_CFLAGS = -Wall -Wextra -Werror
26 ##### single-threading variant
28 lib_LTLIBRARIES = libnobug.la
29 libnobug_la_SOURCES = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c
30 libnobug_la_CFLAGS = $(AM_CFLAGS) @VALGRIND_CFLAGS@
31 libnobug_la_CPPFLAGS = -DNOBUG_USE_PTHREAD=0
33 bin_PROGRAMS = nobug_rbdump
34 nobug_rbdump_SOURCES = src/nobug_rbdump.c
35 nobug_rbdump_LDADD = libnobug.la
36 nobug_rbdump_CFLAGS = $(AM_CFLAGS) @VALGRIND_CFLAGS@
39 ##### multi-threading variant
43 lib_LTLIBRARIES += libnobugmt.la
44 libnobugmt_la_SOURCES = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c src/nobug_thread.c
45 libnobugmt_la_CFLAGS = $(AM_CFLAGS) @PTHREAD_CFLAGS@ @VALGRIND_CFLAGS@
47 endif # HAVE_THREADING
51 include tests/Makefile.am
54 ##### maintainer targets
57 w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Documentation?action=print' |\
58 (read; read; cat) > $(top_srcdir)/README
59 w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Authors?action=print' |\
60 (read; read; cat) > $(top_srcdir)/AUTHORS
61 w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/News?action=print' |\
62 (read; read; cat) > $(top_srcdir)/NEWS
65 # git whatchanged --max-count=100 | sed -e 's/:.*\.\.\.//' > $(top_srcdir)/ChangeLog
68 list='$(DIST_ARCHIVES)'; for i in $$list; do \