# Copyright (C) # 2007, Christian Thaeter # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AUTOMAKE_OPTIONS=gnu rxpd_srcdir = $(top_srcdir)/src bin_PROGRAMS = rxpd check_PROGRAMS = EXTRA_DIST = CLEANFILES = rxpd_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra -Werror rxpd_LDADD = -lpth rxpd_SOURCES = \ $(rxpd_srcdir)/rxpd.h \ $(rxpd_srcdir)/main.c \ $(rxpd_srcdir)/psplay.c \ $(rxpd_srcdir)/llist.h \ $(rxpd_srcdir)/psplay.h \ $(rxpd_srcdir)/rxpd_base.c \ $(rxpd_srcdir)/rxpd_buffer.c \ $(rxpd_srcdir)/rxpd_connection.c \ $(rxpd_srcdir)/rxpd_connection_cmd.c \ $(rxpd_srcdir)/rxpd_file.c \ $(rxpd_srcdir)/rxpd_rule.c \ $(rxpd_srcdir)/rxpd_socket.c #### test suite tests_srcdir = $(top_srcdir)/tests TESTS = $(tests_srcdir)/test.sh EXTRA_DIST += \ $(tests_srcdir)/test.sh \ $(tests_srcdir)/files/example \ $(tests_srcdir)/files/policy \ $(tests_srcdir)/*.tests CLEANFILES += ,* files/*/* files/* #### maintainer targets EXTRA_DIST += VERSION meta.TODO: w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/ToDo?action=print' |\ (read; read; cat) > $(top_srcdir)/TODO meta.README: w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Documentation?action=print' |\ (read; read; cat) > $(top_srcdir)/README meta.AUTHORS: w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Authors?action=print' |\ (read; read; cat) > $(top_srcdir)/AUTHORS meta.NEWS: w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/News?action=print' |\ (read; read; cat) > $(top_srcdir)/NEWS meta.ChangeLog: git log --pretty='format:HEADER:%ai %an <%ae>%n%n%s%n' |\ sed -e 's/\(.*\)/ \1/;s/ HEADER:\([-0-9]*\) [0-9:]* [0-9+]* \(.*\)/\1 \2/' > $(top_srcdir)/ChangeLog meta: meta.TODO meta.README meta.AUTHORS meta.NEWS meta.ChangeLog release: clean meta dist list='$(DIST_ARCHIVES)'; for i in $$list; do \ gpg -s $$i;\ rm $$i;\ done