Makefile (80486) | Makefile (92686) |
---|---|
1# 2# Copyright (C) 1993-2001 by Darren Reed. 3# 4# See the IPFILTER.LICENCE file for details on licencing. 5# | 1# 2# Copyright (C) 1993-2001 by Darren Reed. 3# 4# See the IPFILTER.LICENCE file for details on licencing. 5# |
6# $Id: Makefile,v 2.11.2.8 2001/06/26 10:43:10 darrenr Exp $ | 6# $Id: Makefile,v 2.11.2.13 2002/03/06 09:43:15 darrenr Exp $ |
7# 8BINDEST=/usr/local/bin 9SBINDEST=/sbin 10MANDIR=/usr/local/man 11#To test prototyping 12CC=gcc -Wstrict-prototypes -Wmissing-prototypes 13#CC=gcc 14#CC=cc -Dconst= --- 14 unchanged lines hidden (view full) --- 29# 30# The facility you wish to log messages from ipmon to syslogd with. 31# 32LOGFAC=-DLOGFAC=LOG_LOCAL0 33 34# 35# Uncomment the next 3 lines if you want to view the state table a la top(1) 36# (requires that you have installed ncurses). | 7# 8BINDEST=/usr/local/bin 9SBINDEST=/sbin 10MANDIR=/usr/local/man 11#To test prototyping 12CC=gcc -Wstrict-prototypes -Wmissing-prototypes 13#CC=gcc 14#CC=cc -Dconst= --- 14 unchanged lines hidden (view full) --- 29# 30# The facility you wish to log messages from ipmon to syslogd with. 31# 32LOGFAC=-DLOGFAC=LOG_LOCAL0 33 34# 35# Uncomment the next 3 lines if you want to view the state table a la top(1) 36# (requires that you have installed ncurses). |
37#STATETOP_CFLAGS=-DSTATETOP | 37STATETOP_CFLAGS=-DSTATETOP |
38# 39# Where to find the ncurses include files (if not in default path), 40# 41#STATETOP_INC= 42#STATETOP_INC=-I/usr/local/include 43# 44# How to link the ncurses library 45# | 38# 39# Where to find the ncurses include files (if not in default path), 40# 41#STATETOP_INC= 42#STATETOP_INC=-I/usr/local/include 43# 44# How to link the ncurses library 45# |
46#STATETOP_LIB=-lncurses | 46STATETOP_LIB=-lcurses |
47#STATETOP_LIB=-L/usr/local/lib -lncurses 48 49# 50# Uncomment this when building IPv6 capability. 51# 52#INET6=-DUSE_INET6 53# 54# For packets which don't match any pass rules or any block rules, set either 55# FR_PASS or FR_BLOCK (respectively). It defaults to FR_PASS if left 56# undefined. This is ignored for ipftest, which can thus return three 57# results: pass, block and nomatch. This is the sort of "block unless 58# explicitly allowed" type #define switch. 59# 60POLICY=-DIPF_DEFAULT_PASS=FR_PASS 61# | 47#STATETOP_LIB=-L/usr/local/lib -lncurses 48 49# 50# Uncomment this when building IPv6 capability. 51# 52#INET6=-DUSE_INET6 53# 54# For packets which don't match any pass rules or any block rules, set either 55# FR_PASS or FR_BLOCK (respectively). It defaults to FR_PASS if left 56# undefined. This is ignored for ipftest, which can thus return three 57# results: pass, block and nomatch. This is the sort of "block unless 58# explicitly allowed" type #define switch. 59# 60POLICY=-DIPF_DEFAULT_PASS=FR_PASS 61# |
62MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6)' \ | 62MFLAGS1='CFLAGS=$(CFLAGS) $(ARCHINC) $(SOLARIS2) $(INET6) $(IPFLOG)' \ |
63 "IPFLOG=$(IPFLOG)" "LOGFAC=$(LOGFAC)" "POLICY=$(POLICY)" \ 64 "SOLARIS2=$(SOLARIS2)" "DEBUG=$(DEBUG)" "DCPU=$(CPU)" \ 65 "CPUDIR=$(CPUDIR)" 'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' \ 66 'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)' \ 67 "BITS=$(BITS)" "OBJ=$(OBJ)" 68DEST="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)" 69MFLAGS=$(MFLAGS1) "IPFLKM=$(IPFLKM)" 70# --- 24 unchanged lines hidden (view full) --- 95 @echo "" 96 97tests: 98 @if [ -d test ]; then (cd test; make) \ 99 else echo test directory not present, sorry; fi 100 101include: 102 if [ ! -f netinet/done ] ; then \ | 63 "IPFLOG=$(IPFLOG)" "LOGFAC=$(LOGFAC)" "POLICY=$(POLICY)" \ 64 "SOLARIS2=$(SOLARIS2)" "DEBUG=$(DEBUG)" "DCPU=$(CPU)" \ 65 "CPUDIR=$(CPUDIR)" 'STATETOP_CFLAGS=$(STATETOP_CFLAGS)' \ 66 'STATETOP_INC=$(STATETOP_INC)' 'STATETOP_LIB=$(STATETOP_LIB)' \ 67 "BITS=$(BITS)" "OBJ=$(OBJ)" 68DEST="BINDEST=$(BINDEST)" "SBINDEST=$(SBINDEST)" "MANDIR=$(MANDIR)" 69MFLAGS=$(MFLAGS1) "IPFLKM=$(IPFLKM)" 70# --- 24 unchanged lines hidden (view full) --- 95 @echo "" 96 97tests: 98 @if [ -d test ]; then (cd test; make) \ 99 else echo test directory not present, sorry; fi 100 101include: 102 if [ ! -f netinet/done ] ; then \ |
103 (cd netinet; ln -s ../*.h .; ln -s ../ip_ftp_pxy.c .; ln -s ../ip_rcmd_pxy.c .; ln -s ../ip_raudio_pxy.c .); \ | 103 (cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .; ); \ |
104 (cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \ 105 touch netinet/done; \ 106 fi 107 108sunos solaris: include 109 CC="$(CC)" ./buildsunos 110 111freebsd22: include --- 51 unchanged lines hidden (view full) --- 163 164bsdi bsdos: include 165 make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)" 166 (cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= ; cd ..) 167 (cd BSD/$(CPUDIR); make -f Makefile.ipsend "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..) 168 169irix IRIX: include 170 make setup "TARGOS=IRIX" "CPUDIR=$(CPUDIR)" | 104 (cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \ 105 touch netinet/done; \ 106 fi 107 108sunos solaris: include 109 CC="$(CC)" ./buildsunos 110 111freebsd22: include --- 51 unchanged lines hidden (view full) --- 163 164bsdi bsdos: include 165 make setup "TARGOS=BSD" "CPUDIR=$(CPUDIR)" 166 (cd BSD/$(CPUDIR); make build "CC=$(CC)" TOP=../.. $(MFLAGS) LKM= ; cd ..) 167 (cd BSD/$(CPUDIR); make -f Makefile.ipsend "CC=$(CC)" TOP=../.. $(MFLAGS); cd ..) 168 169irix IRIX: include 170 make setup "TARGOS=IRIX" "CPUDIR=$(CPUDIR)" |
171 -(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) $(MFLAGS); else smake build TOP=../.. $(DEST) $(MFLAGS); fi;) 172 -(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); fi) | 171 -(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.std build TOP=../.. $(DEST) SGI=`../getrev` $(MFLAGS); else smake build SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi;) 172 -(cd IRIX/$(CPUDIR); if [ $(MAKE) = make ] ; then make -f Makefile.ipsend.std SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); else smake -f Makefile.ipsend SGI=`../getrev` TOP=../.. $(DEST) $(MFLAGS); fi) |
173 174linux: include 175 make setup "TARGOS=Linux" "CPUDIR=$(CPUDIR)" 176 ./buildlinux 177 178linuxrev: 179 (cd Linux/$(CPUDIR); make build TOP=../.. $(DEST) $(MFLAGS) LKM= ; cd ..) 180 (cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..) --- 72 unchanged lines hidden (view full) --- 253 (cd Linux/$(CPUDIR); make install "TOP=../.." $(DEST) $(MFLAGS); cd ..) 254 (cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(DEST) $(MFLAGS); cd ..) 255 256install-bsd: 257 (cd BSD/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..) 258 (cd BSD/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..) 259 260install-sunos4: solaris | 173 174linux: include 175 make setup "TARGOS=Linux" "CPUDIR=$(CPUDIR)" 176 ./buildlinux 177 178linuxrev: 179 (cd Linux/$(CPUDIR); make build TOP=../.. $(DEST) $(MFLAGS) LKM= ; cd ..) 180 (cd Linux/$(CPUDIR); make -f Makefile.ipsend TOP=../.. $(DEST) $(MFLAGS); cd ..) --- 72 unchanged lines hidden (view full) --- 253 (cd Linux/$(CPUDIR); make install "TOP=../.." $(DEST) $(MFLAGS); cd ..) 254 (cd Linux/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(DEST) $(MFLAGS); cd ..) 255 256install-bsd: 257 (cd BSD/$(CPUDIR); make install "TOP=../.." $(MFLAGS); cd ..) 258 (cd BSD/$(CPUDIR); make -f Makefile.ipsend INSTALL=$(INSTALL) install "TOP=../.." $(MFLAGS); cd ..) 259 260install-sunos4: solaris |
261 (cd SunOS4; $(MAKE) "CPU=$(CPU) TOP=.." install) | 261 (cd SunOS4; $(MAKE) "CPU=$(CPU)" "TOP=.." install) |
262 263install-sunos5: solaris 264 (cd SunOS5; $(MAKE) "CPUDIR=`uname -p`-`uname -r`" "CPU=$(CPU) TOP=.." install) 265 266install-irix: irix 267 (cd IRIX; smake install "CPU=$(CPU) TOP=.." $(DEST) $(MFLAGS)) 268 269rcsget: --- 15 unchanged lines hidden --- | 262 263install-sunos5: solaris 264 (cd SunOS5; $(MAKE) "CPUDIR=`uname -p`-`uname -r`" "CPU=$(CPU) TOP=.." install) 265 266install-irix: irix 267 (cd IRIX; smake install "CPU=$(CPU) TOP=.." $(DEST) $(MFLAGS)) 268 269rcsget: --- 15 unchanged lines hidden --- |