#	Copyright (c) 1985,1986,1987  EXCELAN, INC. 	
#	  All Rights Reserved.                         	

#	The copyright notice above does not evidence any 	
#	actual or intended publication. 			

#	THIS IS UNPUBLISHED COMPUTER SOFTWARE CONTAINING TRADE SECRETS 	
#	AND CONFIDENTIAL INFORMATION PROPRIETARY TO EXCELAN, INC. 	
#
# $Header: Makefile,v 1.2 87/04/24 16:56:21 davidb Exp $
#
#

SYSTEM=S5vax750

VERSION=SYSTEM5

MACHINE=VAX

BUS=UNIBUS

# - set VCTR to the vector to be inserted on the bus 
#
#		0770 for in house 730

VCTR=0770

#
# - set SELECT to EXOSSELECT, if the EXOS select function is to be
#   included in your drivers, or HOSTSELECT if there is a BSD 4.2
#   style select function available on your system already.
#   The effect of select may be simulated by "forking" additional
#   processes.  If this is desired, set select to NOSELECT.
#   NOSELECT may be used to save space if kernel memory is critical,
#   or if select is buggy on your system.
#
#SELECT=HOSTSELECT
#SELECT=NOSELECT
SELECT=EXOSSELECT

# - HOST_DEFINES percolate down through secondary Makefiles, for drivers,
#   libraries, and utilities.
HOST_DEFINES= -D$(MACHINE) -D$(SYSTEM) -D$(VERSION) -D$(SELECT)

# - set KERN_DEFINES to the particular set of defines and flags which
#   will be needed to correctly compile kernel code on your
#   system.  Modify src/lib/libex_driver/Makefile if driver compilation
#   is especially weird.

KERN_DEFINES=

# - set INCL to the location of the EXOS includes, may be empty
#   if installed under /usr/include

INCL=/usr/src/EXOS/include/EXOS

# - set LIB to the proper library directory for the user subroutine
#   library libsocket.a.

LIB=/lib

# - set LIBC to the proper name of the standard C runtime library.
#   This is used to replace perror with a version of perror which
#   will print network error messages
# - set CLIBPATH to the directory in which the C runtime library 
#   resides

CLIBPATH=/lib
LIBC=libc.a

# - set BINDIR to the proper directory for user programs

BINDIR=/usr/bin

# - set NET to the proper directory for network daemons and support
#   programs

NET=/net

# - set ETC to the proper directory for host database files

ETC=/etc

# - Names of compiler/assembler/linker/archiver for cross-compilation purposes
#   For zilog S8000, AS="cas -u"  and CC is not defined

CC=cc
AS=as
LD=cc
AR=ar

# - Ranlib for systems that have it

#RANLIB=ranlib
RANLIB=echo ranlib not available for:

# - combination of all of the above passed down to other makefiles

DEFS=CC=$(CC) AS=$(AS) LD=$(LD) AR=$(AR)\
     SYSTEM=$(SYSTEM) VERSION=$(VERSION) MACHINE=$(MACHINE)\
     BUS=$(BUS)\
     VCTR=$(VCTR)\
     RANLIB="$(RANLIB)" \
     SELECT=$(SELECT)\
     HOST_DEFINES="$(HOST_DEFINES)" KERN_DEFINES="$(KERN_DEFINES)"\
     INCL="$(INCL)" LIB=$(LIB) BINDIR=$(BINDIR) NET=$(NET) ETC=$(ETC)

# - set PRINT to local print incantation
#   and PF to output filter(s) if any

PRINT=pr
PF=| lpr

# Now for the rules to generate and install everything

help:
	@echo "Use one of:"
	@echo " make setdefaults"
	@echo " make install"
	@echo " make receiver"
	@echo " make sender"


setdefaults:
	cd src/lib/libex_driver ; make setdefaults $(DEFS)

receiver:
	cd src/bin/test ; make recv LIBRARY=$(LIB)/libsocket.a $(DEFS)	

sender:
	cd src/bin/test ; make send LIBRARY=$(LIB)/libsocket.a $(DEFS)	

install:
	cd /net/scripts ; sh net.add
