# $Id: Smakefile,v 1.1 1993/10/14 00:10:53 ppessi Exp $
#
# Smakefile for AmiTCP/IP Network Drivers
#
# Copyright  1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
#	           Helsinki University of Technology, Finland.
#                  All rights reserved.
#
# Created      : Fri May 14 22:23:09 1993 ppessi
# Last modified: Wed Oct 13 03:22:58 1993 ppessi
#
# $Log: Smakefile,v $
# Revision 1.1  1993/10/14  00:10:53  ppessi
# Initial revision
#
#

DEST = AmiTCP:

#
# These will be made
#
DEVS = agnet/agnet rhslip/rhslip.device rhslip/rhcslip.device

MAKELINK = makelink
MKDIR = makedir
MAKE = smake
RM   = delete
CP = copy dates

AGNET_SRC = agnet/Smakefile agnet/agnet_rev.rev \
	agnet/agnet.h agnet/agnet_protos.h agnet/bases.h agnet/lrandom.h \
	agnet/agnet.c agnet/device.c agnet/init.c agnet/lrandom.c \
	agnet/simplerexx.h agnet/simplerexx.c

RHSLIP_SRC = rhslip/COPYRIGHT rhslip/Smakefile 	rhslip/rhslip0.config \
	rhslip/Makefile.cslip rhslip/Makefile.slip \
	rhslip/README.Rhialto rhslip/cslip.c rhslip/cslip.h \
	rhslip/device_funcs.c rhslip/device_protos.h rhslip/endcode.asm \
	rhslip/slip_device.asm rhslip/slip_device.h rhslip/slip_device.i \
	rhslip/slip_rev.h rhslip/slip_rev.i rhslip/slip_rev.rev

all: devs 

devs: $(DEVS)

agnet/agnet: $(AGNET_SRC) 
	execute < <
	set echo on
	$(RM) $@
	cd agnet
	$(MAKE) 
	cd /
	set echo off
<

rhslip/rhslip.device: $(RHSLIP_SRC)
	execute < <
	$(RM) $@
	cd rhslip
	$(MAKE) rhslip.device
	cd /
<

rhslip/rhcslip.device: $(RHSLIP_SRC)
	execute < <
	$(RM) $@
	cd rhslip
	$(MAKE) rhcslip.device
	cd /
<

clean:
	-$(RM) \#?/(\#?.(o|lnk|map|test)|SCOPTIONS)

cleaner: clean
	-$(RM) $(DEVS) 

install: 
	execute < <
	cd agnet
	$(MAKE) DEST=$(DEST) install
	cd /rhslip
	$(MAKE) DEST=$(DEST) install
<
