chiark / gitweb /
configure.ac, debian/: Overhaul Wireshark plugin build machinery.
[tripe] / Makefile.am
index e1420ab0217b744d16f5eabebba38072ac122d8d..3c2c7f6f354a0bc222e74012219acc4cf4da9a1a 100644 (file)
-## -*-makefile-*-
-##
-## $Id: Makefile.am,v 1.6 2003/04/23 12:53:28 mdw Exp $
-##
-## Makefile for TrIPE
-##
-## (c) 2001 Straylight/Edgeware
-##
-
-##----- Licensing notice ----------------------------------------------------
-##
-## This file is part of Trivial IP Encryption (TrIPE).
-##
-## TrIPE 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.
-## 
-## TrIPE 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 TrIPE; if not, write to the Free Software Foundation,
-## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.6  2003/04/23 12:53:28  mdw
-## New pkstream program.
-##
-## Revision 1.5  2001/06/19 22:12:57  mdw
-## Build new proxy program.
-##
-## Revision 1.4  2001/02/22 09:07:28  mdw
-## Build documents now.
-##
-## Revision 1.3  2001/02/16 21:42:02  mdw
-## Only link the server against Catacomb.
-##
-## Revision 1.2  2001/02/05 19:48:18  mdw
-## Initial support for BSD tunnel devices.
-##
-## Revision 1.1  2001/02/03 20:26:37  mdw
-## Initial checkin.
-##
-
-AUTOMAKE_OPTIONS = foreign
-SUBDIRS = doc
-
-CATACOMB_LIBS = @CATACOMB_LIBS@
-tun = @tun@
-
-bin_PROGRAMS = tripe tripectl tripe-mitm pkstream
-tripe_SOURCES = \
-       tripe.c tripe.h \
-       admin.c peer.c tun-$(tun).c \
-       keymgmt.c keyexch.c keyset.c \
-       buf.c buf.h servutil.c util.c util.h
-EXTRA_tripe_SOURCES = \
-       tun-unet.c tun-bsd.c
-tripe_LDADD = $(CATACOMB_LIBS)
-tripectl_SOURCES = \
-       client.c util.c util.h
-       tun-unet.c tun-bsd.c
-tripe_mitm_SOURCES = \
-       mallory.c buf.c buf.h
-tripe_mitm_LDADD = $(CATACOMB_LIBS)
-pkstream_SOURCES = \
-       pkstream.c
-
-##----- That's all, folks ---------------------------------------------------
+### -*-makefile-*-
+###
+### Makefile for TrIPE
+###
+### (c) 2001 Straylight/Edgeware
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Trivial IP Encryption (TrIPE).
+###
+### TrIPE 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.
+###
+### TrIPE 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 TrIPE; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+include $(top_srcdir)/vars.am
+
+SUBDIRS                         =
+
+###--------------------------------------------------------------------------
+### Subdirectories.
+
+## Core components.
+SUBDIRS                        += common
+SUBDIRS                        += uslip
+SUBDIRS                        += client
+SUBDIRS                        += priv
+SUBDIRS                        += server
+SUBDIRS                        += proxy
+SUBDIRS                        += pkstream
+SUBDIRS                        += init
+
+## Path MTU discovery.
+SUBDIRS                        += pathmtu
+
+## Wireshark.
+if HAVE_WIRESHARK
+SUBDIRS                        += wireshark
+endif
+
+## Services.
+if HAVE_PYTHON
+if HAVE_PYMLIB
+SUBDIRS                        += py
+if HAVE_PYCDB
+SUBDIRS                        += peerdb
+SUBDIRS                        += svc
+endif
+endif
+endif
+
+## Key-management.
+if HAVE_PYTHON
+if HAVE_PYCATACOMB
+SUBDIRS                        += keys
+endif
+endif
+
+## Graphical monitor.
+if HAVE_PYTHON
+if HAVE_PYMLIB
+if HAVE_PYGTK
+SUBDIRS                        += mon
+endif
+endif
+endif
+
+## Contributed stuff.
+SUBDIRS                        += contrib
+
+## Testing.
+SUBDIRS                        += t
+
+###--------------------------------------------------------------------------
+### The pkg-config file.
+
+pkgconfigdir            = $(libdir)/pkgconfig
+pkgconfig_DATA          = tripe.pc
+EXTRA_DIST             += tripe.pc.in
+CLEANFILES             += tripe.pc
+
+tripe.pc: tripe.pc.in Makefile
+       $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
+###--------------------------------------------------------------------------
+### Release tweaking.
+
+## Distcheck tweaks.
+DISTCHECK_TUNNELS       = slip
+
+DISTCHECK_CONFIGURE_FLAGS = \
+       --with-tunnel='$(DISTCHECK_TUNNELS)' \
+       --with-wireshark='$${libdir}/wireshark/plugins'
+
+## Release number.
+dist-hook::
+       echo $(VERSION) >$(distdir)/RELEASE
+
+## Additional build tools.
+EXTRA_DIST             += config/confsubst
+EXTRA_DIST             += config/auto-version
+
+###--------------------------------------------------------------------------
+### Debian.
+
+## General stuff.
+EXTRA_DIST             += debian/rules
+EXTRA_DIST             += debian/control
+EXTRA_DIST             += debian/changelog
+EXTRA_DIST             += debian/copyright
+EXTRA_DIST             += debian/compat
+EXTRA_DIST             += debian/source/format
+
+## pkstream
+EXTRA_DIST             += debian/pkstream.copyright
+EXTRA_DIST             += debian/pkstream.install
+
+## pathmtu
+EXTRA_DIST             += debian/pathmtu.copyright
+EXTRA_DIST             += debian/pathmtu.install
+
+## server and client
+EXTRA_DIST             += debian/tripe.README
+EXTRA_DIST             += debian/tripe.dirs
+EXTRA_DIST             += debian/tripe.install
+EXTRA_DIST             += debian/tripe.postinst
+EXTRA_DIST             += debian/tripe.logrotate
+
+## uslip
+EXTRA_DIST             += debian/tripe-uslip.install
+
+## keys
+EXTRA_DIST             += debian/tripe-keys.install
+
+## modules
+EXTRA_DIST             += debian/python-tripe.install
+
+## peer services
+EXTRA_DIST             += debian/tripe-peer-services.install
+EXTRA_DIST             += debian/tripe-peer-services.postinst
+
+## monitor
+EXTRA_DIST             += debian/tripemon.install
+
+## wireshark
+EXTRA_DIST             += debian/tripe-wireshark.install
+
+###----- That's all, folks --------------------------------------------------