Sync usage with man page.
[netbsd-mini2440.git] / dist / ipf / ipsd / Makefile
blob0f3ce08ba229ce81404ad3215e14bb279d893a59
2 # Copyright (C) 1993-1998 by Darren Reed.
4 # See the IPFILTER.LICENCE file for details on licencing.
6 OBJS=ipsd.o
7 BINDEST=/usr/local/bin
8 SBINDEST=/sbin
9 MANDIR=/usr/share/man
10 BPF=sbpf.o
11 NIT=snit.o
12 SUNOS4=
13 BSD=
14 LINUX=slinux.o
15 SUNOS5=dlcommon.o sdlpi.o
17 CC=gcc
18 CFLAGS=-g -I.. -I../ipsend
20 all:
21 @echo "Use one of these targets:"
22 @echo " sunos4-nit (standard SunOS 4.1.x)"
23 @echo " sunos4-bpf (SunOS4.1.x with BPF in the kernel)"
24 @echo " bsd-bpf (4.4BSD variant with BPF in the kernel)"
25 @echo " linux (Linux kernels)"
26 @echo " sunos5 (Solaris 2.x)"
28 .c.o:
29 $(CC) $(CFLAGS) -c $< -o $@
31 ipsdr: ipsdr.o
32 $(CC) ipsdr.o -o $@ $(LIBS)
34 bpf sunos4-bpf :
35 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \
36 "CFLAGS=$(CFLAGS)"
38 nit sunos4 sunos4-nit :
39 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \
40 "CFLAGS=$(CFLAGS)"
42 sunos5 :
43 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \
44 CFLAGS="$(CFLAGS) -Dsolaris" "LIBS=-lsocket -lnsl"
46 bsd-bpf :
47 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(BSD)" "CC=$(CC)" \
48 "CFLAGS=$(CFLAGS)"
50 linux :
51 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(LINUX)" "CC=$(CC)" \
52 CFLAGS="$(CFLAGS) -I /usr/src/linux"
54 ipsd: $(OBJS) $(UNIXOBJS)
55 $(CC) $(OBJS) $(UNIXOBJS) -o $@ $(LIBS)
57 ../ipft_sn.o ../ipft_pc.o:
58 (cd ..; make $(@:../%=%))
60 clean:
61 rm -rf *.o core a.out ipsd ipsdr