]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - rogue/Makefile
Get all the games compiling for iOS
[bsdgames-darwin.git] / rogue / Makefile
1 # $NetBSD: Makefile,v 1.21 2019/10/13 07:28:09 mrg Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= rogue
5 CPPFLAGS+=-DUNIX
6 SRCS= hit.c init.c inventory.c level.c machdep.c main.c \
7 message.c monster.c move.c object.c pack.c play.c random.c ring.c \
8 room.c save.c score.c spec_hit.c throw.c trap.c use.c zap.c
9 MAN= rogue.6
10
11 all: $(PROG)
12
13 $(PROG): $(SRCS)
14 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw
15 $(STRIP) $(PROG)
16
17 install: $(PROG) $(MAN)
18 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
19 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
20 $(GINSTALL) -d $(DESTDIR)/var/games
21
22 clean:
23 rm -f $(CLEANFILES) $(PROG)
24
25 .PHONY: all clean install