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.
17 SUNOS5=dlcommon.o sdlpi.o
20 CFLAGS=-g -I.. -I../ipsend
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)"
31 $(CC) $(CFLAGS) -c $< -o $@
34 $(CC) ipsdr.o -o $@ $(LIBS)
37 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(SUNOS4)" "CC=$(CC)" \
40 nit sunos4 sunos4-nit :
41 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(NIT) $(SUNOS4)" "CC=$(CC)" \
45 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(SUNOS5)" "CC=$(CC)" \
46 CFLAGS="$(CFLAGS) -Dsolaris" "LIBS=-lsocket -lnsl"
49 make ipsd "OBJS=$(OBJS)" "UNIXOBJS=$(BPF) $(BSD)" "CC=$(CC)" \
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 $(@:../%=%))
63 rm -rf *.o core a.out ipsd ipsdr