OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / testing / utils / uml_netjig / Makefile
1 # FreeS/WAN subdir makefile
2 # Copyright (C) 1998-2001  Henry Spencer.
3
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>.
8
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
12 # for more details.
13 #
14 # RCSID $Id: Makefile,v 1.8 2002/04/02 04:08:22 mcr Exp $
15
16 TOPDIR=../../..
17 OBJS = uml_netjig.o
18 OPTIONS=-DARP_PROCESS
19
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
24
25 # To read/write files, you need to have libpcap (-devel if on RH) installed.
26 PCAPH=-I/usr/include/pcap
27 PCAPLIB=-lpcap
28 #PCAPH=-I/home/mcr/src/libpcap
29 #PCAPLIB=-L/home/mcr/src/linux/i386/libpcap -lpcap
30
31 # to decode ESP packets, you need crypto, which you can get from ssl.
32 OPENSSL=-L/usr/local/ssl/lib -lcrypto
33
34 CFLAGS = -g -Wall ${PCAPH} ${NETDISSECTH} ${OPTIONS}
35 LIBS = ${NETDISSECTLIB} ${PCAPLIB} 
36
37
38 include $(TOPDIR)/Makefile.inc
39
40 def:
41         @echo "Please read doc/intro.html or INSTALL before running make"
42         @false
43
44 programs: uml_netjig
45
46 checkprograms: uml_netjig
47
48 uml_netjig : $(OBJS)
49         $(CC) $(CFLAGS) -o uml_netjig $(OBJS) $(LIBS)
50
51 clean : 
52         rm -f uml_netjig $(OBJS) *~
53
54 install :
55         install -d $(BINDIR)
56         install -s uml_netjig $(BINDIR)
57
58 check: