llist.h update
[nobug.git] / Makefile.am
blob2467a533984ea1bcd5a459b1671dfb82939e1a8a
1 # This file is part of the NoBug debugging library.
3 # Copyright (C)
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
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@
40 ##### multi-threading variant
42 if HAVE_THREADING
44 lib_LTLIBRARIES                         += libnobugmt.la
45 libnobugmt_la_SOURCES                   = src/nobug.c src/nobug_env.c src/nobug_ringbuffer.c src/nobug_resources.c src/nobug_thread.c
46 libnobugmt_la_CFLAGS                    = $(AM_CFLAGS) @PTHREAD_CFLAGS@ @VALGRIND_CFLAGS@
48 endif   # HAVE_THREADING
50 ##### Testsuite
52 include tests/Makefile.am
55 ##### maintainer targets
57 meta:
58         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Documentation?action=print' |\
59         (read; read; cat) > $(top_srcdir)/README
60         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/Authors?action=print' |\
61         (read; read; cat) > $(top_srcdir)/AUTHORS
62         w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/NoBug/News?action=print' |\
63         (read; read; cat) > $(top_srcdir)/NEWS
65 #ChangeLog:
66 #       git whatchanged --max-count=100 | sed -e 's/:.*\.\.\.//' > $(top_srcdir)/ChangeLog
68 release: dist
69         list='$(DIST_ARCHIVES)'; for i in $$list; do \
70                 gpg -s $$i;\
71                 rm $$i;\
72         done