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
23 ACLOCAL_AMFLAGS = -I m4
25 AM_CFLAGS = -Wall -Wextra -Werror
27 ##### single-threading variant
29 lib_LTLIBRARIES = libnobug.la
30 libnobug_la_SOURCES = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c src/mpool.c
31 libnobug_la_CFLAGS = $(AM_CFLAGS) @VALGRIND_CFLAGS@
32 libnobug_la_CPPFLAGS = -DNOBUG_USE_PTHREAD=0
34 bin_PROGRAMS = nobug_rbdump
35 nobug_rbdump_SOURCES = src/nobug_rbdump.c
36 nobug_rbdump_LDADD = libnobug.la
37 nobug_rbdump_CFLAGS = $(AM_CFLAGS) @VALGRIND_CFLAGS@
39 noinst_HEADERS = src/llist.h src/mpool.h
41 ##### multi-threading variant
45 lib_LTLIBRARIES += libnobugmt.la
46 libnobugmt_la_SOURCES = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c src/nobug_thread.c src/mpool.c
47 libnobugmt_la_CFLAGS = $(AM_CFLAGS) @PTHREAD_CFLAGS@ @VALGRIND_CFLAGS@
49 endif # HAVE_THREADING
53 include tests/Makefile.am
56 ##### maintainer targets
59 $(libnobugmt_la_SOURCES) \
60 $(nobug_rbdump_SOURCES)
62 nobug_manual.txt: doc/manual.conf doc/asciidoc.pawk $(wildcard $(top_srcdir)/doc/*.txt) $(manual_ASCIIDOCS)
63 ( cd $(top_srcdir) ; ./pipadoc doc/manual.conf doc/asciidoc.pawk \
64 $(patsubst $(top_srcdir)/%,%,$(wildcard $(top_srcdir)/doc/*.txt)) \
65 $(manual_ASCIIDOCS) ) >$(top_builddir)/nobug_manual.txt
76 README: nobug_manual.txt
77 cp nobug_manual.txt $(top_srcdir)/README
79 doc: nobug_manual.html nobug_manual.pdf
83 w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Authors?action=print' |\
84 (read; read; cat) > $(top_srcdir)/AUTHORS
85 w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/News?action=print' |\
86 (read; read; cat) > $(top_srcdir)/NEWS
89 # git whatchanged --max-count=100 | sed -e 's/:.*\.\.\.//' > $(top_srcdir)/ChangeLog
92 list='$(DIST_ARCHIVES)'; for i in $$list; do \