#!/bin/sh
#
# Mksrc - make source files for /dev/kmem-based Linux lslk
#
# WARNING: This script assumes it is running from the main directory
#	   of the lslk distribution.
#
# One environment variable applies:
#
# LSLK_MKC	is the method for creating the source files.
#		It defaults to "ln -s".  A common alternative is "cp".
#
#		Cp may be used when it is necessary to assemble a
#		source module from fragments.
#
# $Id: Mksrc,v 1.2 98/01/08 08:04:21 abe Exp $


D=dialects/linux/kmem
L="dlock.c dmnt.c dlslk.h dproto.h dstore.c machine.h"

for i in $L
do
  rm -f $i
  $LSLK_MKC $D/$i $i
  echo "$LSLK_MKC $D/$i $i"
done
