X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/61578ee21bdadacc8093a846947cfc3b7b298bdf..46062f71bb0dbda76cf0bde5c52bc325c97fd7a9:/battlestar/Makefile diff --git a/battlestar/Makefile b/battlestar/Makefile index eed9c73e..ebd76187 100644 --- a/battlestar/Makefile +++ b/battlestar/Makefile @@ -1,12 +1,24 @@ -# @(#)Makefile 5.5 (Berkeley) 5/11/90 +# $NetBSD: Makefile,v 1.11 2019/10/29 21:30:42 christos Exp $ +# @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= battlestar -SRCS= battlestar.c com1.c com2.c com3.c com4.c com5.c com6.c com7.c \ +SRCS= battlestar.c command1.c command2.c command3.c command4.c \ + command5.c command6.c command7.c \ init.c cypher.c getcom.c parse.c room.c save.c fly.c misc.c \ globals.c dayfile.c nightfile.c dayobjs.c nightobjs.c words.c -MAN6= battlestar.0 -DPADD= ${LIBCURSES} ${LIBTERMCAP} -LDADD= -lcurses -ltermlib -HIDEGAME=hidegame +MAN= battlestar.6 -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT) + $(STRIP) $(PROG) + +install: $(PROG) $(MAN) + $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install