Browse Source

New Makefile and gitignore; update copyright; make code compile

No install capability in this Makefile; this is just a development
version.
master
Samuel Sloniker 3 years ago
parent
commit
8f233afc83
  1. 1
      .gitignore
  2. 2
      Makefile
  3. 10
      Makefile.bsd
  4. 36
      Makefrag
  5. 9
      worm.c

1
.gitignore vendored

@ -0,0 +1 @@
worm

2
Makefile

@ -0,0 +1,2 @@
worm: worm.c
gcc -o worm worm.c -l curses

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

@ -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

9
worm.c

@ -4,6 +4,9 @@
* Copyright (c) 1980, 1993
* 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
* modification, are permitted provided that the following conditions
* are met:
@ -29,11 +32,12 @@
* SUCH DAMAGE.
*/
/*
#include <sys/cdefs.h>
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
The Regents of the University of California. All rights reserved.\n");
#endif /* not lint */
#endif / * not lint * /
#ifndef lint
#if 0
@ -41,7 +45,8 @@ static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $");
#endif
#endif /* not lint */
#endif / * not lint * /
*/
/*
* Worm. Written by Michael Toy

Loading…
Cancel
Save