Minimal adjustments to get the Stallion utilities to build and install

in a FreeBSD style source tree.
This commit is contained in:
peter 1996-05-04 08:02:31 +00:00
parent f5a3323cf9
commit 43c386824b
9 changed files with 70 additions and 7 deletions

View File

@ -0,0 +1,5 @@
# $Id$
SUBDIR= bootcode stlload stlstats
.include <bsd.subdir.mk>

View File

@ -0,0 +1,7 @@
# $Id$
BOOTDIR= /usr/libdata/stallion
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,4 +1,4 @@
begin 440 2681.sys
begin 444 2681.sys
M````````````````````````````````````````````````````````````
M``````!>`0``````````````````````````````````````````````````
M````````````````````````````````````````````````````````````

View File

@ -0,0 +1,30 @@
# $Id$
FILES = 2681.sys cdk.sys
LIBMODE = 444
LIBOWN = bin
LIBGRP = bin
CLEANFILES= ${FILES}
all: $(FILES)
install:
@if [ ! -d ${DESTDIR}${BOOTDIR} ]; then mkdir ${DESTDIR}${BOOTDIR};fi
@for i in ${FILES}; do \
${ECHO} "installing $$i into ${DESTDIR}${BOOTDIR}"; \
${INSTALL} -c -m ${LIBMODE} -o ${LIBOWN} -g ${LIBGRP} \
$$i ${DESTDIR}${BOOTDIR}; \
done
clean:
rm -f ${CLEANFILES}
.include <bsd.prog.mk>
cdk.sys: ${.CURDIR}/cdk.sys.uu
uudecode ${.CURDIR}/$@.uu
2681.sys: ${.CURDIR}/2681.sys.uu
uudecode ${.CURDIR}/$@.uu

View File

@ -1,4 +1,4 @@
begin 440 cdk.sys
begin 444 cdk.sys
M````````````````````````````````````````````````````````````
M``````!@`0``````````````````````````````````````````````````
M````````````````````````````````````````````````````````````

View File

@ -0,0 +1,8 @@
# $Id$
PROG= stlload
NOMAN= #oops
CFLAGS+=-DBOOTDIR=\"${BOOTDIR}\"
.include <bsd.prog.mk>

View File

@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
*/
/*****************************************************************************/
@ -45,14 +47,14 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "cdk.h"
#include <machine/cdk.h>
/*****************************************************************************/
char *version = "0.0.5";
char *defdevice = "/dev/staliomem%d";
char *image = "/usr/lib/stallion/cdk.sys";
char *oldimage = "/usr/lib/stallion/2681.sys";
char *image = BOOTDIR "/cdk.sys";
char *oldimage = BOOTDIR "/2681.sys";
char *progname;
char *memdevice;

View File

@ -0,0 +1,9 @@
# $Id$
PROG= stlstats
NOMAN= #oops
LDADD= -lncurses
DPADD= ${LIBNCURSES}
.include <bsd.prog.mk>

View File

@ -32,6 +32,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
*/
/*****************************************************************************/
@ -46,8 +48,8 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "cdk.h"
#include "comstats.h"
#include <machine/cdk.h>
#include <machine/comstats.h>
/*****************************************************************************/