New Makefile and gitignore; update copyright; make code compile
No install capability in this Makefile; this is just a development version.
This commit is contained in:
parent
1a9102b667
commit
8f233afc83
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
worm
|
10
Makefile.bsd
10
Makefile.bsd
|
@ -1,10 +0,0 @@
|
||||||
# $NetBSD: Makefile,v 1.6 1998/02/18 22:37:32 jtc Exp $
|
|
||||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
|
||||||
|
|
||||||
PROG= worm
|
|
||||||
MAN= worm.6
|
|
||||||
DPADD= ${LIBCURSES}
|
|
||||||
LDADD= -lcurses
|
|
||||||
HIDEGAME=hidegame
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
|
36
Makefrag
36
Makefrag
|
@ -1,36 +0,0 @@
|
||||||
# Makefrag - makefile fragment for worm
|
|
||||||
#
|
|
||||||
# Copyright (c) 1997, 1998 Joseph Samuel Myers.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the distribution.
|
|
||||||
# 3. The name of the author may not be used to endorse or promote products
|
|
||||||
# derived from this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
||||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
||||||
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
||||||
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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.
|
|
||||||
|
|
||||||
worm_DIRS := $(GAMESDIR) $(MAN6DIR)
|
|
||||||
|
|
||||||
worm_all: worm/worm worm/worm.6
|
|
||||||
|
|
||||||
worm_install: worm_all
|
|
||||||
$(INSTALL_BINARY) worm/worm $(INSTALL_PREFIX)$(GAMESDIR)/worm
|
|
||||||
$(HIDE_GAME) worm
|
|
||||||
$(INSTALL_MANUAL) worm/worm.6
|
|
5
worm.c
5
worm.c
|
@ -4,6 +4,9 @@
|
||||||
* Copyright (c) 1980, 1993
|
* Copyright (c) 1980, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2021
|
||||||
|
* Samuel L Sloniker. All rights reserved.
|
||||||
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
@ -29,6 +32,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||||
|
@ -42,6 +46,7 @@ static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93";
|
||||||
__RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $");
|
__RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif / * not lint * /
|
#endif / * not lint * /
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Worm. Written by Michael Toy
|
* Worm. Written by Michael Toy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user