kernel - TMPFS - Stabilization pass, fix lockf()
[dragonfly.git] / contrib / ipfilter / ipsd / Makefile
blobb9ad044619deca950dee13da2a84c7ac87ec4644
2 # Copyright (C) 1993-1998 by Darren Reed.
4 # Redistribution and use in source and binary forms are permitted
5 # provided that this notice is preserved and due credit is given
6 # to the original author and the contributors.
8 OBJS=ipsd.o
9 BINDEST=/usr/local/bin
10 SBINDEST=/sbin
11 MANDIR=/usr/share/man
12 BPF=sbpf.o
13 NIT=snit.o
14 SUNOS4=
15 BSD=
16 LINUX=slinux.o
17 SUNOS5=dlcommon.o sdlpi.o
19 CC=gcc
20 CFLAGS=-g -I.. -I../ipsend
22 all:
23 @echo "Use one of these targets:"
24 @echo " sunos4-nit (standard SunOS 4.1.x)"
25 @echo " sunos4-bpf (SunOS4.1.x with BPF in the kernel)"
26 @echo " bsd-bpf (4.4BSD variant with BPF in the kernel)"
27 @echo " linux (Linux kernels)"
28 @echo " sunos5 (Solaris 2.x)"
30 .c.o:
31 $(CC) $(CFLAGS) -c $< -o $@
33 ipsdr: ipsdr.o
34 $(CC) ipsdr.o -o $@ $(LIBS)
36 bpf sunos4-bpf :
37 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \
38 "CFLAGS=$(CFLAGS)"
40 nit sunos4 sunos4-nit :
41 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \
42 "CFLAGS=$(CFLAGS)"
44 sunos5 :
45 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \
46 CFLAGS="$(CFLAGS) -Dsolaris" "LIBS=-lsocket -lnsl"
48 bsd-bpf :
49 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(BSD)" "CC=$(CC)" \
50 "CFLAGS=$(CFLAGS)"
52 linux :
53 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(LINUX)" "CC=$(CC)" \
54 CFLAGS="$(CFLAGS) -I /usr/src/linux"
56 ipsd: $(OBJS) $(UNIXOBJS)
57 $(CC) $(OBJS) $(UNIXOBJS) -o $@ $(LIBS)
59 ../ipft_sn.o ../ipft_pc.o:
60 (cd ..; make $(@:../%=%))
62 clean:
63 rm -rf *.o core a.out ipsd ipsdr