diff options
author | kamil <kamil@NetBSD.org> | 2020-11-09 23:37:05 +0000 |
---|---|---|
committer | kamil <kamil@NetBSD.org> | 2020-11-09 23:37:05 +0000 |
commit | a931697f3be302466855163a7e216ffee7766445 (patch) | |
tree | 0ac2ab10bd68f8317dcf403536f0d612730ef35c /warp/Makefile | |
parent | 6d16c3b48f5f1f377e2be346c1189d9f8edac22d (diff) | |
download | bsdgames-darwin-a931697f3be302466855163a7e216ffee7766445.tar.gz bsdgames-darwin-a931697f3be302466855163a7e216ffee7766445.tar.zst bsdgames-darwin-a931697f3be302466855163a7e216ffee7766445.zip |
Add Warp Kit, Version 7.0 by Larry Wall
Warp is a real-time space war game that doesn't get boring very quickly.
Read warp.doc and the manual page for more information.
games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
world via NetBSD. Its remnants were still mentioned in games/Makefile.
Larry Wall, the original author and the copyright holder, generously
donated the game and copyright to The NetBSD Foundation, Inc.
Import the game sources as-is from 4.3BSD-Reno, with the cession
of the copyright and license to BSD-2-clause NetBSD-style.
Signed-off-by: Larry Wall <larry@wall.org>
Signed-off-by: Kamil Rytarowski <kamil@netbsd.org>
Diffstat (limited to 'warp/Makefile')
-rw-r--r-- | warp/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/warp/Makefile b/warp/Makefile new file mode 100644 index 00000000..0ae4411d --- /dev/null +++ b/warp/Makefile @@ -0,0 +1,61 @@ +CFLAGS+=-O +SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \ + them.c us.c util.c version.c warp.c weapon.c +OBJS= bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \ + them.o us.o util.o version.o warp.o weapon.o + +warp: ${OBJS} + ${CC} ${OBJS} -o $@ -ltermlib -lm + +install: warp + export PATH || exit 1 + - mv $(bin)/warp $(bin)/warp.old + - if test `pwd` != $(bin); then cp $(public) $(bin); fi + - cd $(bin); chmod 755 $(public); chown '$(CHOWNER)' $(public) + - chmod 4711 $(bin)/warp + - chmod 755 makedir + - ./makedir `./filexp $(privlib)` + - \ +if test `pwd` != `./filexp $(privlib)`; then \ +cp $(private) `./filexp $(privlib)`; \ +fi + - \ +cd `./filexp $(privlib)`; \ +chmod 755 $(private); \ +chown '$(CHOWNER)' . $(private); \ +cp /dev/null save.blurfl + - \ +if test ! -f `./filexp $(privlib)/warp.news`; then \ +cp warp.news `./filexp $(privlib)`; \ +fi + - \ +if test `pwd` != $(mansrc); then \ +for page in $(manpages); do \ +cp $$page $(mansrc)/`basename $$page .man`.$(manext); \ +done; \ +fi + +clean: + rm -f warp core ${OBJS} + +smap.0: smp.0 sm + sm <smp.0 >smap.0 +smap.1: smp.1 sm + sm <smp.1 >smap.1 +smap.2: smp.2 sm + sm <smp.2 >smap.2 +smap.3: smp.3 sm + sm <smp.3 >smap.3 +smap.4: smp.4 sm + sm <smp.4 >smap.4 +smap.5: smp.5 sm + sm <smp.5 >smap.5 +smap.6: smp.6 sm + sm <smp.6 >smap.6 +smap.7: smp.7 sm + sm <smp.7 >smap.7 +sm: sm.c + ${CC} sm.c -o $@ + +depend: ${SRCS} + mkdep ${SRCS} |