chiark / gitweb /
New encrypting tunnel seems to work !
[userv-utils] / ipif / Makefile
CommitLineData
12ecfeab 1# Copyright (C) 1999 Ian Jackson
1c1a9fa1 2#
12ecfeab 3# This is free software; you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11# General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with userv-utils; if not, write to the Free Software
15# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16#
8bb9d875 17# $Id: Makefile,v 1.12 2000/05/31 00:58:53 ian Exp $
1c1a9fa1 18
2c310400 19OPTIMISE= -O2
1c1a9fa1 20CFLAGS= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith \
2c310400 21 -Wwrite-strings -g $(OPTIMISE) -D_GNU_SOURCE
1c1a9fa1 22
e5e5fd4e 23etcdir= /etc
6d90651a 24prefix= /usr/local
caad5ebb 25bindir= $(prefix)/bin
e5e5fd4e 26
27libdir= $(prefix)/lib
28libuserv= $(libdir)/userv
29
30etcuserv= $(etcdir)/userv
31services= $(etcuserv)/services.d
6d90651a 32
8bb9d875 33TARGETS= service udptunnel-forwarder blowfishtest
84f87e82 34
35MECHFILES= null pkcs5 timestamp sequence blowfish
36MECHOBJS= $(foreach m, $(MECHFILES), mech-$m.o)
37
aaa9ab3a 38OBJS_FORWARD= forwarder.o $(MECHOBJS) blowfish.o automech.c utils.c
8bb9d875 39OBJS_BFTEST= blowfishtest.o blowfish.o hex.o
6d90651a 40
41all: $(TARGETS)
42
43install: all
e5e5fd4e 44 mkdir -p $(libuserv) $(services)
8d9c5866 45 cp -b service $(libuserv)/ipif
e5e5fd4e 46 cp ipif $(services)/ipif:new
8d9c5866 47 cp -b udptunnel $(bindir)/.
e5e5fd4e 48 set -e; cd $(services); test -f ipif || mv ipif:new ipif
84f87e82 49
50udptunnel-forwarder: $(OBJS_FORWARD)
51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_FORWARD)
52
8bb9d875 53blowfishtest: $(OBJS_BFTEST)
54 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS_BFTEST)
55
84f87e82 56automech.c automech.h: automechgen.sh Makefile
57 ./$< $(MECHFILES)
58
aaa9ab3a 59forwarder.o $(MECHOBJS) automech.o utils.o: forwarder.h automech.h
8bb9d875 60blowfish.o mech-blowfish.o blowfishtest.o: blowfish.h
61blowfishtest.o hex.o: hex.h