]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - battlestar/Makefile
cgram: provide usage on incorrect invocation
[bsdgames-darwin.git] / battlestar / Makefile
index 70c79ea71f25f119a296ead7203cb224eea056f0..ebd7618731d6ff1fa585ae418b402f05284e237e 100644 (file)
@@ -7,13 +7,18 @@ SRCS= battlestar.c command1.c command2.c command3.c command4.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
 MAN=   battlestar.6
-DPADD= ${LIBCURSES} ${LIBTERMINFO}
-LDADD= -lcurses -lterminfo
-HIDEGAME=hidegame
-SETGIDGAME=yes
 
-.if !empty(MACHINE_ARCH:Msh3*)
-COPTS.parse.c+=-Wno-restrict
-.endif
+all: $(PROG)
 
-.include <bsd.prog.mk>
+$(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