Deleted Added
full compact
Makefile (24583) Makefile (26119)
1#
2# (C)opyright 1993, 1994, 1995 by Darren Reed.
3#
4# This code may be freely distributed as long as it retains this notice
5# and is not changed in any way. The author accepts no responsibility
6# for the use of this software. I hate legaleese, don't you ?
7#
1#
2# (C)opyright 1993, 1994, 1995 by Darren Reed.
3#
4# This code may be freely distributed as long as it retains this notice
5# and is not changed in any way. The author accepts no responsibility
6# for the use of this software. I hate legaleese, don't you ?
7#
8# $Id: Makefile,v 2.0.2.7 1997/04/02 12:23:14 darrenr Exp $
8# $Id: Makefile,v 2.0.2.12 1997/05/24 08:13:34 darrenr Exp $
9#
10# where to put things.
11#
9#
10# where to put things.
11#
12BINDEST=/usr/local/ip_fil3.1.1/bin
13SBINDEST=/usr/local/ip_fil3.1.1/sbin
14MANDIR=/usr/local/ip_fil3.1.1/man
12BINDEST=/usr/local/bin
13SBINDEST=/sbin
14MANDIR=/usr/local/man
15#To test prototyping
16#CC=gcc -Wstrict-prototypes -Wmissing-prototypes -Werror
17CC=gcc
18DEBUG=-g
19CFLAGS=-I$$(TOP)
20CPU=`uname -m`
21#
22# To enable this to work as a Loadable Kernel Module...

--- 37 unchanged lines hidden (view full) ---

60 @echo "bsd - compile for 4.4BSD based Unixes (FreeBSD/NetBSD/OpenBSD)"
61 @echo "bsdi - compile for BSD/OS"
62 @echo ""
63
64tests:
65 @if [ -d test ]; then (cd test; make) \
66 else echo test directory not present, sorry; fi
67
15#To test prototyping
16#CC=gcc -Wstrict-prototypes -Wmissing-prototypes -Werror
17CC=gcc
18DEBUG=-g
19CFLAGS=-I$$(TOP)
20CPU=`uname -m`
21#
22# To enable this to work as a Loadable Kernel Module...

--- 37 unchanged lines hidden (view full) ---

60 @echo "bsd - compile for 4.4BSD based Unixes (FreeBSD/NetBSD/OpenBSD)"
61 @echo "bsdi - compile for BSD/OS"
62 @echo ""
63
64tests:
65 @if [ -d test ]; then (cd test; make) \
66 else echo test directory not present, sorry; fi
67
68sunos solaris:
68include:
69 mkdir -p netinet
70 (cd netinet; /bin/rm -f *; ln -s ../*.h .; ln -s ../ip_ftp_pxy.c .)
71
72sunos solaris: include
69 ./buildsunos
70
73 ./buildsunos
74
71freebsd22 freebsd30:
75freebsd22 freebsd30: include
72 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
76 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
73 @if [ ! -f `uname -v|sed -e 's@^.*:\(/[^: ]*\).*@\1@'`/ioconf.h ] ; then \
74 echo "Can't find ioconf.h"; \
77 -rm -f BSD/$(CPU)/ioconf.h
78 @if [ -n $(IPFILKERN) ] ; then \
79 ln -s /sys/$(IPFILKERN)/ioconf.h BSD/$(CPU); \
80 elif [ ! -f `uname -v|sed -e 's@^.*:\(/[^: ]*\).*@\1@'`/ioconf.h ] ; then \
81 echo -n "Can't find ioconf.h in "; \
82 echo `uname -v|sed -e 's@^.*:\(/[^: ]*\).*@\1@'`; \
75 exit 1;\
83 exit 1;\
84 else \
85 ln -s `uname -v|sed -e 's@^.*:\(/[^: ]*\).*@\1@'`/ioconf.h BSD/$(CPU) ; \
76 fi
86 fi
77 rm -f BSD/$(CPU)/ioconf.h
78 ln -s `uname -v|sed -e 's@^.*:\(/[^: ]*\).*@\1@'`/ioconf.h BSD/$(CPU)
79 make bsd
87 make freebsd
80
88
81bsd netbsd freebsd freebsd20 freebsd21:
89netbsd: include
82 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
83 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
84 -ln -s ../Makefile BSD/$(CPU)/Makefile
85 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
90 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
91 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
92 -ln -s ../Makefile BSD/$(CPU)/Makefile
93 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
94 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS) "ML=mln_ipl.c"; cd ..)
95 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
96
97freebsd freebsd20 freebsd21: include
98 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
99 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
100 -ln -s ../Makefile BSD/$(CPU)/Makefile
101 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
102 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS) "ML=mlf_ipl.c"; cd ..)
103 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
104
105bsd: include
106 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
107 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
108 -ln -s ../Makefile BSD/$(CPU)/Makefile
109 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
86 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS); cd ..)
87 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
88
110 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS); cd ..)
111 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
112
89bsdi bsdos:
113bsdi bsdos: include
90 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
91 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
92 -ln -s ../Makefile BSD/$(CPU)/Makefile
93 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
94 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS) LKM= ; cd ..)
95 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
96
97clean:

--- 35 unchanged lines hidden (view full) ---

133 (cd SunOS5/$(CPU); make build TOP=../.. $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
134 (cd SunOS5/$(CPU); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
135
136sunos5x86 solaris2x86:
137 (cd SunOS5/$(CPU); make build TOP=../.. $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
138 (cd SunOS5/$(CPU); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
139
140install-bsd: bsd
114 -if [ ! -d BSD/$(CPU) ] ; then mkdir BSD/$(CPU); fi
115 -rm -f BSD/$(CPU)/Makefile BSD/$(CPU)/Makefile.ipsend
116 -ln -s ../Makefile BSD/$(CPU)/Makefile
117 -ln -s ../Makefile.ipsend BSD/$(CPU)/Makefile.ipsend
118 (cd BSD/$(CPU); make build "TOP=../.." $(MFLAGS) LKM= ; cd ..)
119 (cd BSD/$(CPU); make -f Makefile.ipsend "TOP=../.." $(MFLAGS); cd ..)
120
121clean:

--- 35 unchanged lines hidden (view full) ---

157 (cd SunOS5/$(CPU); make build TOP=../.. $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
158 (cd SunOS5/$(CPU); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
159
160sunos5x86 solaris2x86:
161 (cd SunOS5/$(CPU); make build TOP=../.. $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
162 (cd SunOS5/$(CPU); make -f Makefile.ipsend TOP=../.. $(MFLAGS); cd ..)
163
164install-bsd: bsd
141 (cd BSD/$(CPU); $(MAKE) "CPU=$(CPU) TOP=../.." install)
165 (cd BSD/$(CPU); make install "TOP=../.." $(MFLAGS); cd ..)
166 (cd BSD/$(CPU); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..)
167
142install-sunos4: solaris
143 (cd SunOS4; $(MAKE) "CPU=$(CPU) TOP=.." install)
168install-sunos4: solaris
169 (cd SunOS4; $(MAKE) "CPU=$(CPU) TOP=.." install)
170
144install-sunos5: solaris
145 (cd SunOS5; $(MAKE) "CPU=$(CPU) TOP=.." install)
146
171install-sunos5: solaris
172 (cd SunOS5; $(MAKE) "CPU=$(CPU) TOP=.." install)
173
147# XXX FIXME: bogus to depend on all!
148install: all ip_fil.h
149 -$(CP) ip_fil.h /usr/include/netinet/ip_fil.h
150 -$(CHMOD) 444 /usr/include/netinet/ip_fil.h
151 -$(INSTALL) -cs -g wheel -m 755 -o root ipfstat ipf ipnat $(SBINDEST)
152 -$(INSTALL) -cs -g wheel -m 755 -o root ipmon ipftest $(BINDEST)
153 (cd man; $(MAKE) INSTALL=$(INSTALL) MANDIR=$(MANDIR) install; cd ..)
154
155rcsget:
156 -@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
157 ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
158 mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
159 parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
160 ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
161 ip_frag.h ip_sfil.c misc.c; do \
162 if [ ! -f $$i ] ; then \
163 echo "getting $$i"; \
164 co $$i; \
165 fi \
166 done
167
168do-cvs:
169 find . -type d -name CVS -print | xargs /bin/rm -rf
170 find . -type f -name .cvsignore -print | xargs /bin/rm -f
174rcsget:
175 -@for i in ipf.c ipt.h solaris.c ipf.h kmem.c ipft_ef.c linux.h \
176 ipft_pc.c fil.c ipft_sn.c mln_ipl.c fils.c ipft_td.c \
177 mls_ipl.c ip_compat.h ipl.h opt.c ip_fil.c ipl_ldev.c \
178 parse.c ip_fil.h ipmon.c pcap.h ip_sfil.c ipt.c snoop.h \
179 ip_state.c ip_state.h ip_nat.c ip_nat.h ip_frag.c \
180 ip_frag.h ip_sfil.c misc.c; do \
181 if [ ! -f $$i ] ; then \
182 echo "getting $$i"; \
183 co $$i; \
184 fi \
185 done
186
187do-cvs:
188 find . -type d -name CVS -print | xargs /bin/rm -rf
189 find . -type f -name .cvsignore -print | xargs /bin/rm -f