chiark / gitweb /
server/Makefile.am: Build most of the server into a library.
[tripe] / server / Makefile.am
CommitLineData
6b6ad670
MW
1### -*-makefile-*-
2###
3### Makefile for TrIPE server
4###
5### (c) 2001 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Trivial IP Encryption (TrIPE).
11###
11ad66c2
MW
12### TrIPE is free software: you can redistribute it and/or modify it under
13### the terms of the GNU General Public License as published by the Free
14### Software Foundation; either version 3 of the License, or (at your
15### option) any later version.
6b6ad670 16###
11ad66c2
MW
17### TrIPE is distributed in the hope that it will be useful, but WITHOUT
18### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20### for more details.
6b6ad670
MW
21###
22### You should have received a copy of the GNU General Public License
11ad66c2 23### along with TrIPE. If not, see <https://www.gnu.org/licenses/>.
6b6ad670
MW
24
25include $(top_srcdir)/vars.am
26
27sbin_PROGRAMS =
5febc302 28noinst_LIBRARIES =
19220671 29noinst_PROGRAMS =
6b6ad670
MW
30man_MANS =
31
530f09cb 32LDADD = $(libcommon) $(libpriv) \
971e5689 33 $(catacomb_LIBS) $(ADNS_LIBS)
7bd7331e 34
6b6ad670
MW
35###--------------------------------------------------------------------------
36### The main server.
37
5febc302
MW
38## Build a library, for special effects.
39noinst_LIBRARIES += libtripe.a
40libtripe_a_SOURCES =
6b6ad670
MW
41
42## Main header file.
5febc302 43libtripe_a_SOURCES += tripe.h
6b6ad670
MW
44
45## Main sources.
5febc302
MW
46libtripe_a_SOURCES += servutil.c
47libtripe_a_SOURCES += addrmap.c
48libtripe_a_SOURCES += keymgmt.c
49libtripe_a_SOURCES += bulkcrypto.c
50libtripe_a_SOURCES += dh.c
51libtripe_a_SOURCES += keyset.c
52libtripe_a_SOURCES += keyexch.c
53libtripe_a_SOURCES += chal.c
54libtripe_a_SOURCES += peer.c
55libtripe_a_SOURCES += privsep.c
56libtripe_a_SOURCES += admin.c
57libtripe_a_SOURCES += tripe.c
6b6ad670
MW
58
59## Tunnel drivers.
5febc302
MW
60libtripe_a_SOURCES += tun-std.c
61libtripe_a_SOURCES += tun-slip.c
62
63## The main server.
64sbin_PROGRAMS += tripe
65tripe_SOURCES = standalone.c
66tripe_LDADD = libtripe.a $(LDADD)
6b6ad670
MW
67
68## Server manual page.
0647ba7c
MW
69man_MANS += tripe.8tripe
70CLEANFILES += tripe.8tripe
6b6ad670
MW
71EXTRA_DIST += tripe.8.in
72
6b6ad670 73## The admin protocol manual page.
0647ba7c
MW
74man_MANS += tripe-admin.5tripe
75CLEANFILES += tripe-admin.5tripe
a62f8e8a 76EXTRA_DIST += tripe-admin.5.in
6b6ad670 77
97f898fb
MW
78## Services manual page.
79man_MANS += tripe-service.7tripe
80CLEANFILES += tripe-service.7tripe
81EXTRA_DIST += tripe-service.7.in
82
19220671
MW
83###--------------------------------------------------------------------------
84### Unit-test program.
85
86noinst_PROGRAMS += tripe-test
19220671 87tripe_test_SOURCES = test.c
5febc302 88tripe_test_LDADD = libtripe.a $(LDADD)
19220671 89
6b6ad670 90###----- That's all, folks --------------------------------------------------