# $Id: Smakefile,v 3.2 1994/02/26 09:23:56 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: Sun Feb 27 03:43:34 1994 ppessi
#
# $Log: Smakefile,v $
# Revision 3.2  1994/02/26  09:23:56  ppessi
# Added netinfo.device (for real)
#
# Revision 3.1  1994/02/25  14:59:29  ppessi
# Cleaned file; added netinfo device
#
# Revision 1.1  1993/10/14  00:10:53  ppessi
# Initial revision
#
#

DEST = AmiTCP:

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

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

NETINFO_SRC = \
	netinfo/Smakefile netinfo/base.h netinfo/config.h netinfo/entries.c \
	netinfo/entries.h netinfo/groupunit.c netinfo/init.c netinfo/misc.c \
	netinfo/netinfo.c netinfo/passwdunit.c netinfo/server.c netinfo/assert.c

AGNET_SRC = \
	agnet/Smakefile \
	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/Smakefile \
        rhslip/cslip.c rhslip/cslip.h rhslip/cslip_device.asm \
        rhslip/device_funcs.c rhslip/device_protos.h rhslip/endcode.asm \
        rhslip/slip_device.asm rhslip/slip_device.h rhslip/slip_device.i

all: devs 

devs: $(DEVS)

agnet/agnet: $(AGNET_SRC) 
	execute < <
	cd agnet
	$(MAKE) 
	cd /
<

netinfo/netinfo.device: $(NETINFO_SRC)
	execute < <
	cd netinfo
	$(MAKE) 
	cd /
<

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

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

clean: 
	execute < <
	cd agnet
	$(MAKE) clean
	cd /rhslip
	$(MAKE) clean
<

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

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