2 # Copyright (C) 1993-1998 by Darren Reed.
4 # See the IPFILTER.LICENCE file for details on licencing.
15 SUNOS5
=dlcommon.o sdlpi.o
18 CFLAGS
=-g
-I..
-I..
/ipsend
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)"
29 $(CC
) $(CFLAGS
) -c
$< -o
$@
32 $(CC
) ipsdr.o
-o
$@
$(LIBS
)
35 make ipsd
"OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \
38 nit sunos4 sunos4-nit
:
39 make ipsd
"OBJS=$(OBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \
43 make ipsd
"OBJS=$(OBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \
44 CFLAGS
="$(CFLAGS) -Dsolaris" "LIBS=-lsocket -lnsl"
47 make ipsd
"OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(BSD)" "CC=$(CC)" \
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
$(@
:..
/%=%))
61 rm -rf
*.o core a.out ipsd ipsdr