Minimal adjustments to get the Stallion utilities to build and install
in a FreeBSD style source tree.
This commit is contained in:
parent
f5a3323cf9
commit
43c386824b
5
usr.sbin/stallion/Makefile
Normal file
5
usr.sbin/stallion/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $Id$
|
||||
|
||||
SUBDIR= bootcode stlload stlstats
|
||||
|
||||
.include <bsd.subdir.mk>
|
7
usr.sbin/stallion/Makefile.inc
Normal file
7
usr.sbin/stallion/Makefile.inc
Normal file
@ -0,0 +1,7 @@
|
||||
# $Id$
|
||||
|
||||
BOOTDIR= /usr/libdata/stallion
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
@ -1,4 +1,4 @@
|
||||
begin 440 2681.sys
|
||||
begin 444 2681.sys
|
||||
M````````````````````````````````````````````````````````````
|
||||
M``````!>`0``````````````````````````````````````````````````
|
||||
M````````````````````````````````````````````````````````````
|
||||
|
30
usr.sbin/stallion/bootcode/Makefile
Normal file
30
usr.sbin/stallion/bootcode/Makefile
Normal 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
begin 440 cdk.sys
|
||||
begin 444 cdk.sys
|
||||
M````````````````````````````````````````````````````````````
|
||||
M``````!@`0``````````````````````````````````````````````````
|
||||
M````````````````````````````````````````````````````````````
|
||||
|
8
usr.sbin/stallion/stlload/Makefile
Normal file
8
usr.sbin/stallion/stlload/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
# $Id$
|
||||
|
||||
PROG= stlload
|
||||
NOMAN= #oops
|
||||
|
||||
CFLAGS+=-DBOOTDIR=\"${BOOTDIR}\"
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -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;
|
||||
|
9
usr.sbin/stallion/stlstats/Makefile
Normal file
9
usr.sbin/stallion/stlstats/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
# $Id$
|
||||
|
||||
PROG= stlstats
|
||||
NOMAN= #oops
|
||||
|
||||
LDADD= -lncurses
|
||||
DPADD= ${LIBNCURSES}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -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>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user