# Most important part ;-) CC = cc CP = cp MAKE = make PREFIX = /usr/firewall # Please note that all following packages are mandatory. # All of them except libci_milter are to be found in your system distribution. # libci_milter is provided with OpenFWTK in the same tarball. # Don't forget to "make install" from ../libci_milter # Note: if you use X/Open curses instead of ncurses, the authentication # agent will build, but won't work. # Defines path where to find ncurses libraries NCURSES_LIBDIR=/usr/local/lib # Defines path where to find ncurses headers NCURSES_INCDIR=/usr/local/include/ncurses # Defines path where to find SSL libraries SSL_LIBDIR=/usr/local/ssl/lib # Defines path where to find SSL headers SSL_INCDIR=/usr/local/ssl/include # Defines path where to find GNU Magic/File libraries MAGIC_LIBDIR=/usr/local/lib # Defines path where to find GNU Magic/File headers MAGIC_INCDIR=/usr/local/include # Defines path where to find Milter client library (libci_milter) MILTER_LIBDIR=../../libci_milter # Defines path where to find Milter client headers MILTER_INCDIR=../../libci_milter/include # Defines path where to find berkeley bd headers DBM_INCDIR=/usr/include/gdbm #DBM_INCDIR=/usr/include/db4 #DBM_INCDIR=/usr/local/include # Defines for your operating system # # For RedHat Linux, BSD: DEFINES=-DPREFIX=\"$(PREFIX)\" # For Debian, Slackware (broken gdbm-ndbm interface, use db v4): #DEFINES=-DPREFIX=\"$(PREFIX)\" -DDB4 # For Solaris: #DEFINES=-DPREFIX=\"$(PREFIX)\" -DSYSV -DSOLARIS # For HP-UX 11i #DEFINES=-DPREFIX=\"$(PREFIX)\" -DHPUX -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 # For Mac OS X 10.4 #DEFINES=-DPREFIX=\"$(PREFIX)\" -DBIND_8_COMPAT # For gcc/OpenBSD: COPT= $(DEFINES) -Wall -pedantic -Wbad-function-cast -Wcast-align -std=c99 # For gcc/Linux #COPT= $(DEFINES) -Wall -Wbad-function-cast -Wcast-align # For SunWSPro/Solaris: #COPT= -xarch=native64 $(DEFINES) # For HP ansiC/HP-UX #COPT= $(DEFINES) +Olit=all # For all modern gcc OVERLDF=-Xlinker --allow-multiple-definition # For Mac OS X #OVERLDF=-Xlinker # Your ranlib utility (use "touch" if you don't have ranlib) RANLIB= ranlib #RANLIB= touch # Destination directory for installation of binaries DEST= $(PREFIX)/bin # Destination directory for installation of man pages #DESTMAN= $(DEST)/../man # For Solaris: #AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lresolv -lsocket -lnsl # For OpenBSD: AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lutil -lz -ldes # For FreeBSD: #AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lutil -lz -lcrypt # for Linux: #AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lutil -lz -lcrypt -lresolv # for HP-UX #AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lnsl # For other systems: #AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lutil -lz # For Mac OS X AUXLIB= -L$(MAGIC_LIBDIR) -lmagic -lcrypto -lz # For Linux: #MISSING = arc4random.o setproctitle.o strlcpy.o strlcat.o # For Solaris: #MISSING = arc4random.o setproctitle.o setenv.o # For BSD: MISSING = rexec.o # For HP-UX #MISSING = arc4random.o setproctitle.o setenv.o strlcpy.o strlcat.o vsyslog.o \ # openpty.o forkpty.o login_tty.o loadavg.o # For Mac OS X MISSING = rexec.o setproctitle.o # DBM library should be specified if it is an external library or # you with to use a different one than what is included in libc #DBMLIB= -lndbm # for RedHat Linux: #DBMLIB=-lgdbm # for Debian, Slackware: #DBMLIB=-ldb-4 # for BSD: DBMLIB= # for HP-UX ndbm #DBMLIB=-L/usr/local/lib -lndbm # Flags to pass to the linker (e.g. -Bstatic for static binaries under SunOS 4.1.x), -xarch=native64 to # build 64bit executables with SunWSPro #LDFL= -Bstatic #LDFL= -xarch=native64 # for gcc/Linux: # It seems to be impossible to make a true static app with modern glibc due to the libnss issue #LDFL = # for OpenBSD: LDFL= -static # for HP-UX PA-RISC 2.0 #LDFL= -Wl,+vnocompatwarnings # for HP-UX Itanium #LDFL= # Flags to build shared library (for PAM etc) # for gcc: SHLIB_LDFL= -shared # for HP ansiC #SHLIB_LDFL= -b # Flags for X gateway link - usually the same as LDFL XLDFL=$(LDFL) # Location of the fwtk sources [For #include by any external tools needing it] FWTKSRCDIR=$(PREFIX)/src/fwtk # Location of X libraries for X-gw XLIBDIR=/usr/X11R6/lib # X Libraries # For BSD: XLIBS= -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lSM -lICE #XLIBS= -L$(XLIBDIR) -lneXtaw -lXmu -lXt -lXext -lX11 -lSM -lICE #XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 # for Linux: #XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lc # for BSD/OS 2.0: #XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lSM -lICE -lXext # For SunOS: #XLIBS = -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 # Location of X include files XINCLUDE=/usr/X11R6/include # IPFilter location #IPFILTER=$(PREFIX)/development/src/ipfilter/ip_fil3.2.9 # authsrv agent communication socket AUTHSRV_SOCK_PATH=$(PREFIX)/var/