head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	92.11.25.07.38.03;	author md;	state Exp;
branches;
next	1.3;

1.3
date	92.11.19.20.03.54;	author md;	state Exp;
branches;
next	1.2;

1.2
date	92.11.16.13.17.00;	author md;	state Exp;
branches;
next	1.1;

1.1
date	91.07.08.20.56.31;	author md;	state Exp;
branches;
next	;


desc
@original version
@


1.4
log
@fix reference to samkefile.
@
text
@#! /bin/sh
#$Header: /usr/src/sys/rtstand/RCS/samake,v 1.3 1992/11/19 20:03:54 md Exp md $
#$ACIS:samake 12.0$
#$Source: /usr/src/sys/rtstand/RCS/samake,v $
#
# invoke make with the appropriate makefile for standalone
# generation
#
#
# important note: This version of "samake" is designed to be 
# invoked from within the standca directory; to use from another
# (user) directory delete the STANDIR and LIBSA argument's to "make"
#
CPU="${CPU--DIBMRTPC -DROMPC -DMOD135 -UATR}"
# following is to work around bug in hc where -Dmain=_main -Umain 
# results in main being defined as _main
case "$FLAGS" in
*-Umain*)
	FLAGS="$CPU -DSTANDALONE -DDEBUG $FLAGS"
	;;
*)
	FLAGS="-Dmain=_main $CPU -DSTANDALONE -DDEBUG $FLAGS"
	;;
esac
case $# in
	0)	exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a
		;;
	*)	exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a "$@@"
		;;
esac
@


1.3
log
@better version -md
@
text
@d2 1
a2 1
#$Header: /usr/src/sys/rtstand/RCS/samake,v 1.2 91/07/08 20:56:27 rayan Exp $
d26 1
a26 1
	0)	exec /usr/bin/make -f ../samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a
d28 1
a28 1
	*)	exec /usr/bin/make -f ../samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a "$@@"
@


1.2
log
@mods for obj directory support
@
text
@a13 3

eval $1

d26 1
a26 1
	0)	cd ${DIR}; exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a
d28 1
a28 1
	*)	cd ${DIR}; exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a "$@@"
@


1.1
log
@Initial revision
@
text
@d14 3
d29 1
a29 1
	0)	exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a
d31 1
a31 1
	*)	exec /usr/bin/make -f samakefile "FLAGS=$FLAGS" STANDIR=. LIBSA=libsa.a "$@@"
@
