
#	$RCSfile: Makefile,v $
#	$Revision: 2.0 $
#	$Author: ripe-dbm $
#	$Date: 1996/08/08 09:50:04 $

#############################################################################
#
# Make changes for local environtment below
#
#############################################################################

# You should change the definitions below to match your choice of
# directories for the executables/libraries

TOPDIR= /topdir

#
# where to put the database binaries

BINDIR   = $(TOPDIR)/bin

#
# where to put the (client) tools like whois

TOOLSDIR = $(BINDIR)

#
# where to put the libraries

LIBDIR   = $(TOPDIR)/lib

#
# where are the source files located

SRCDIR   = $(TOPDIR)/src


#
# This is the configuration file that will be opened when the environment
# variable $RIPEDBCNF is not set

DEFCONFIG= $(TOPDIR)/etc/ripedb.config


#
# Where is your PERL4 executable ?
#
# Note1: perl5 is not supported (yet) for the database software itself
#        but the tools like 'whois' do work with perl5 (see PERL5 variable)
#
# Note2: you will need a special (unsupported) perl4 version that emulates
#        'flock' calls on Solaris. You can obtain such a version from:
#
#        ftp://ftp.ripe.net/tools/perl4.036-for-solaris.tar.gz
#
#        See also the SOCK_STREAMVALUE variable further down for other
#        important notes on Solaris
  
PERL= /usr/local/bin/perl4


#
# PERL5
#
# Where is your perl5 executable (currently only a few programs work with perl5)
#
# Will only be used for programs that support perl5
# You can set it to $(PERL) if you always want to use perl4

PERL5= /usr/local/bin/perl5


#
# The default whois host

WHOISHOST=whois.ripe.net

#
# The SOCK_STREAM value is usual 1 but there are always some
# OSs that are different ... Slowaris needs this value to be 2
#
# Note: Solaris also needs some other patches that are done automatically
#       *after* a 'make install' has been run. So please don't try to run
#       the binaries in the sources directory since it might give
#       unpredictable results since they are *not* patched for Solaris.
#       Only the binaries and libraries in the $(BINDIR) & $(LIBDIR) are
#       patched for Solaris and are only installed after a 'make install'

SOCK_STREAMVALUE=1


#
# WNOHANG (see wait.h & waitpid manpages)

WNOHANGVALUE=1

##############################################################
#
# Values below here are supposed to be the same on all systems
#

#
# PERL5OPTIONS Can be used for perl5 and higher options
#              It will be ignored when running perl4
#
# Note: The RIPE database doesn't work with perl5 (yet)
#       This option is for development work only!

# PERL5OPTIONS= use DB_File; use strict;

#
# AF_INET

AF_INETVALUE=2

#
# SOCKADDRVALUE

SOCKADDRVALUE="S n a4 x8"



#############################################################################
#
# YOU ARE NOT SUPPOSED TO MAKE CHANGES TO ANYTHING BELOW
#
#############################################################################

#
# current name of the database

CURRENTNAME= ripe-dbase-2.00

#
# directory that contains the distribution files

DISTDIR= $(TOPDIR)/$(CURRENTNAME)

#
# The makefiles that we use

TOPMAKEFILE=	$(TOPDIR)/Makefile
SRCMAKEFILE=	$(SRCDIR)/Makefile

MAKE=	make -f $(SRCMAKEFILE) \
	TOPMAKEFILE='$(TOPMAKEFILE)' \
	SRCMAKEFILE='$(SRCMAKEFILE)' \
	TOPDIR='$(TOPDIR)' \
	BINDIR='$(BINDIR)' \
	TOOLSDIR='$(TOOLSDIR)' \
	LIBDIR='$(LIBDIR)' \
	SRCDIR='$(SRCDIR)' \
	DISTDIR='$(DISTDIR)' \
	CURRENTNAME='$(CURRENTNAME)' \
	DEFCONFIG='$(DEFCONFIG)' \
	PERL='$(PERL)' \
	PERL5='$(PERL5)' \
	PERL5OPTIONS='$(PERL5OPTIONS)' \
	SOCKADDRVALUE='$(SOCKADDRVALUE)' \
	SOCK_STREAMVALUE='$(SOCK_STREAMVALUE)' \
	WNOHANGVALUE='$(WNOHANGVALUE)' \
	AF_INETVALUE='$(AF_INETVALUE)' \
	WHOISHOST='$(WHOISHOST)'
	

all:
	@cd $(SRCDIR); $(MAKE) all

install:
	@cd $(SRCDIR); $(MAKE) install

uninstall:
	@cd $(SRCDIR); $(MAKE) uninstall

clean:
	@cd $(SRCDIR); $(MAKE) clean

distribution:
	@cd $(SRCDIR); $(MAKE) distribution

