1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
# Pluto Makefile
# Copyright (C) 2001 Michael Richardson
#
# 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. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# 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.
#
# RCSID $Id: Makefile,v 1.5 2002/03/27 23:28:25 mcr Exp $
include ../../../Makefile.inc
FMANDIR=$(MANTREE)/man5
PMANDIR=$(MANTREE)/man8
FREESWANSRCDIR=../../..
FREESWANLIBDIR=${FREESWANSRCDIR}/lib
FREESWANINCLS= -I$(FREESWANLIBDIR) -I${FREESWANSRCDIR}
FREESWANLIB=$(FREESWANLIBDIR)/libfreeswan.a
CFLAGS = -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast \
-Wcast-qual -Wmissing-declarations -Wwrite-strings
CFLAGS+= -Wstrict-prototypes
CFLAGS+= -Werror
#CFLAGS+= -Wundef
HDRDIRS = $(FREESWANINCLS)
CPPFLAGS = $(HDRDIRS) $(BYTE_ORDER) -DDEBUG
ALLFLAGS = $(CPPFLAGS) $(CFLAGS)
LIBSWHACK =
BINNAMEPING = ikeping
RM = /bin/rm
RMFLAGS = -f
.SUFFIXES:
.SUFFIXES: .c .o
# files for a (source) distribution
OBJSPING = ikeping.o $(FREESWANLIB)
all: $(BINNAMEPING)
install: all
$(INSTALL) $(INSTBINFLAGS) $(BINNAMEPING) $(BINDIR)
$(INSTALL) $(INSTMANFLAGS) ikeping.8 $(PMANDIR)/ipsec_ikeping.8
$(BINNAMEPING): $(OBJSPING)
$(CC) -o $(BINNAMEPING) $(LDFLAGS) $(OBJSPING) $(LIBSPING)
distlist:
@echo $(DIST)
# Exuberant Ctags doesn't work if LC_ALL is set to something other than C
CTAGSFLAGS = -N --format=1 # fishy options required for Exuberant Ctags
tags: $(DISTSRC)
LC_ALL=C ctags $(CTAGSFLAGS) $(DISTSRC)
cleanall: clean
distclean: clean
mostlyclean: clean
realclean: clean
clean:
$(RM) $(RMFLAGS) $(OBJSPING) *.core core *~ a.out ktrace.out
$(RM) $(RMFLAGS) $(BINNAMEPING)
check:
echo no checks in lib right now.
.c.o:
$(CC) $(COPTS) $(ALLFLAGS) -c $<
# These rules are not for production use
$(FREESWANLIB):
cd $(FREESWANLIBDIR) ; $(MAKE)
programs: ikeping
checkprograms: ikeping
check:
ikeping.o: ${FREESWANSRCDIR}/pluto/constants.h
ikeping.o: ${FREESWANSRCDIR}/pluto/packet.h
ikeping.o: ${FREESWANSRCDIR}/lib/freeswan.h
|