2000-05-24 02:14:22 +00:00
|
|
|
#
|
2005-12-30 11:34:54 +00:00
|
|
|
# $Id: Makefile.ipsend,v 2.8 2002/05/22 16:15:36 darrenr Exp $
|
2000-05-24 02:14:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
BINDEST=/usr/sbin
|
|
|
|
SBINDEST=/sbin
|
|
|
|
MANDIR=/usr/share/man
|
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
OBJS=ipsend.o ip.o ipsopt.o iplang_y.o iplang_l.o
|
1999-11-08 20:51:23 +00:00
|
|
|
IPFTO=ipft_ef.o ipft_hx.o ipft_pc.o ipft_sn.o ipft_td.o ipft_tx.o
|
2005-04-25 17:31:50 +00:00
|
|
|
ROBJS=ipresend.o ip.o resend.o
|
1999-11-08 20:51:23 +00:00
|
|
|
TOBJS=iptest.o iptests.o ip.o
|
|
|
|
UNIXOBJS=sbpf.o sock.o 44arp.o
|
2005-04-25 17:31:50 +00:00
|
|
|
OBJ=.
|
|
|
|
LIBS=-L$(OBJ) -lipf
|
1999-11-08 20:51:23 +00:00
|
|
|
|
|
|
|
CC=gcc -Wuninitialized -Wstrict-prototypes -O
|
|
|
|
CFLAGS=-g -I$(TOP)
|
|
|
|
#
|
|
|
|
MFLAGS="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)" \
|
|
|
|
'CFLAGS=$(CFLAGS) $(SOLARIS2)' "IPFLKM=$(IPFLKM)" \
|
|
|
|
"IPFLOG=$(IPFLOG)" "LOGFAC=$(LOGFAC)" "POLICY=$(POLICY)" \
|
|
|
|
"SOLARIS2=$(SOLARIS2)" "DEBUG=$(DEBUG)" "DCPU=$(CPU)" \
|
2005-04-25 17:31:50 +00:00
|
|
|
"CPUDIR=$(CPUDIR)" "LOOKUP=$(LOOKUP)"
|
1999-11-08 20:51:23 +00:00
|
|
|
#
|
|
|
|
all build bsd-bpf : ipsend ipresend iptest
|
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
iplang_y.o: $(TOP)/iplang/iplang_y.y
|
1999-11-08 20:51:23 +00:00
|
|
|
(cd $(TOP)/iplang; $(MAKE) ../BSD/$(CPUDIR)/$@ $(MFLAGS) 'DESTDIR=../BSD/$(CPUDIR)' )
|
|
|
|
|
2005-04-25 17:31:50 +00:00
|
|
|
iplang_l.o: $(TOP)/iplang/iplang_l.l
|
1999-11-08 20:51:23 +00:00
|
|
|
(cd $(TOP)/iplang; $(MAKE) ../BSD/$(CPUDIR)/$@ $(MFLAGS) 'DESTDIR=../BSD/$(CPUDIR)' )
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
ipsend: $(OBJS) $(UNIXOBJS)
|
|
|
|
$(CC) $(DEBUG) $(OBJS) $(UNIXOBJS) -o $@ $(LIBS) -ll
|
|
|
|
|
|
|
|
ipresend: $(ROBJS) $(UNIXOBJS)
|
|
|
|
$(CC) $(DEBUG) $(ROBJS) $(UNIXOBJS) -o $@ $(LIBS)
|
|
|
|
|
|
|
|
iptest: $(TOBJS) $(UNIXOBJS)
|
|
|
|
$(CC) $(DEBUG) $(TOBJS) $(UNIXOBJS) -o $@ $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2005-04-25 17:31:50 +00:00
|
|
|
rm -rf *.o core a.out ipsend ipresend iptest iplang_y.* iplang_l.*
|
1999-11-08 20:51:23 +00:00
|
|
|
|
|
|
|
ipsend.o: $(TOP)/ipsend/ipsend.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/ipsend.c -o $@
|
|
|
|
|
|
|
|
ipsopt.o: $(TOP)/ipsend/ipsopt.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/ipsopt.c -o $@
|
|
|
|
|
|
|
|
ipresend.o: $(TOP)/ipsend/ipresend.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/ipresend.c -o $@
|
|
|
|
|
|
|
|
ip.o: $(TOP)/ipsend/ip.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/ip.c -o $@
|
|
|
|
|
|
|
|
resend.o: $(TOP)/ipsend/resend.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/resend.c -o $@
|
|
|
|
|
|
|
|
ipft_sn.o: $(TOP)/ipft_sn.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipft_sn.c -o $@
|
|
|
|
|
|
|
|
ipft_pc.o: $(TOP)/ipft_pc.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipft_pc.c -o $@
|
|
|
|
|
|
|
|
iptest.o: $(TOP)/ipsend/iptest.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/iptest.c -o $@
|
|
|
|
|
|
|
|
iptests.o: $(TOP)/ipsend/iptests.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/iptests.c -o $@
|
|
|
|
|
|
|
|
sbpf.o: $(TOP)/ipsend/sbpf.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/sbpf.c -o $@
|
|
|
|
|
|
|
|
snit.o: $(TOP)/ipsend/snit.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/snit.c -o $@
|
|
|
|
|
|
|
|
sock.o: $(TOP)/ipsend/sock.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/sock.c -o $@
|
|
|
|
|
|
|
|
arp.o: $(TOP)/ipsend/arp.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/arp.c -o $@
|
|
|
|
|
|
|
|
44arp.o: $(TOP)/ipsend/44arp.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/44arp.c -o $@
|
|
|
|
|
|
|
|
lsock.o: $(TOP)/ipsend/lsock.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/lsock.c -o $@
|
|
|
|
|
|
|
|
slinux.o: $(TOP)/ipsend/slinux.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/slinux.c -o $@
|
|
|
|
|
|
|
|
larp.o: $(TOP)/ipsend/larp.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/larp.c -o $@
|
|
|
|
|
|
|
|
dlcommon.o: $(TOP)/ipsend/dlcommon.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/dlcommon.c -o $@
|
|
|
|
|
|
|
|
sdlpi.o: $(TOP)/ipsend/sdlpi.c
|
|
|
|
$(CC) $(DEBUG) $(CFLAGS) -c $(TOP)/ipsend/sdlpi.c -o $@
|
|
|
|
|
|
|
|
install:
|
|
|
|
-$(INSTALL) -cs -g wheel -m 755 -o root ipsend ipresend iptest $(BINDEST)
|
|
|
|
|