]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - rogue/Makefile
no longer need -Wno-error=implicit-fallthrough. don't provide common symbols that...
[bsdgames-darwin.git] / rogue / Makefile
index 238dea184e6787c388dbc36664f109012c819a35..a1c8d834533c19e926320cde5b7a60107913428d 100644 (file)
@@ -1,20 +1,25 @@
-#      $NetBSD: Makefile,v 1.13 1999/04/05 08:04:48 abs Exp $
+#      $NetBSD: Makefile,v 1.21 2019/10/13 07:28:09 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  rogue
-CPPFLAGS+=-DUNIX -fwritable-strings
-SRCS=  curses.c hit.c init.c inventory.c level.c machdep.c main.c \
+CPPFLAGS+=-DUNIX
+SRCS=  hit.c init.c inventory.c level.c machdep.c main.c \
        message.c monster.c move.c object.c pack.c play.c random.c ring.c \
        room.c save.c score.c spec_hit.c throw.c trap.c use.c zap.c
-DPADD= ${LIBCURSES}
-LDADD= -lcurses
-HIDEGAME=hidegame
-SETGIDGAME=yes
 MAN=   rogue.6
 
-.if make(install)
-SUBDIR+=USD.doc
-.endif
+all: $(PROG)
 
-.include <bsd.prog.mk>
-.include <bsd.subdir.mk>
+$(PROG): $(SRCS)
+       $(CC) $(CPPFLAGS) $(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)
+       $(GINSTALL) -d $(DESTDIR)/$(LOCALSTATEDIR)/games
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install