]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - adventure/Makefile
fish: remove trailing whitespace
[bsdgames-darwin.git] / adventure / Makefile
1 # $NetBSD: Makefile,v 1.14 2013/02/16 16:30:28 jmcneill Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/12/93
3
4 PROG= adventure
5 SRCS= main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
6 MAN= adventure.6
7 CLEANFILES+=mkdata data.c
8
9 all: $(PROG)
10
11 $(PROG): $(SRCS)
12 $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
13 $(STRIP) $(PROG)
14
15 data.c: glorkz mkdata
16 ./mkdata glorkz > data.c
17
18 mkdata: setup.c
19 clang -o mkdata setup.c
20
21 install: $(PROG) $(MAN)
22 $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
23 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
24
25 clean:
26 rm -f $(CLEANFILES) $(PROG)
27
28 .PHONY: all clean install