1 # FreeS/WAN subdir makefile
2 # Copyright (C) 1998-2001 Henry Spencer.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # RCSID $Id: Makefile,v 1.8 2002/04/02 04:08:22 mcr Exp $
20 # To use the netdissect option, you have to have a very recent (pre-alpha) copy
21 # of tcpdump source code from www.tcpdump.org. For now, leave it unset.
22 #NETDISSECTH=-DNETDISSECT -I/home/mcr/src/tcpdump
23 #NETDISSECTLIB=-L/home/mcr/src/linux/i386/tcpdump -lnetdissect
25 # To read/write files, you need to have libpcap (-devel if on RH) installed.
26 PCAPH=-I/usr/include/pcap
28 #PCAPH=-I/home/mcr/src/libpcap
29 #PCAPLIB=-L/home/mcr/src/linux/i386/libpcap -lpcap
31 # to decode ESP packets, you need crypto, which you can get from ssl.
32 OPENSSL=-L/usr/local/ssl/lib -lcrypto
34 CFLAGS = -g -Wall ${PCAPH} ${NETDISSECTH} ${OPTIONS}
35 LIBS = ${NETDISSECTLIB} ${PCAPLIB}
38 include $(TOPDIR)/Makefile.inc
41 @echo "Please read doc/intro.html or INSTALL before running make"
46 checkprograms: uml_netjig
49 $(CC) $(CFLAGS) -o uml_netjig $(OBJS) $(LIBS)
52 rm -f uml_netjig $(OBJS) *~
56 install -s uml_netjig $(BINDIR)