]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - tetris/Makefile
cgram: rename local functions
[bsdgames-darwin.git] / tetris / Makefile
1 # $NetBSD: Makefile,v 1.9 2020/09/06 10:51:20 mrg Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= tetris
5 SRCS= input.c screen.c shapes.c scores.c tetris.c
6 MAN= tetris.6
7
8 all: $(PROG)
9
10 $(PROG): $(SRCS)
11 $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
12 $(STRIP) $(PROG)
13
14 install: $(PROG) $(MAN)
15 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
16 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
17 $(GINSTALL) -d $(DESTDIR)/$(LOCALSTATEDIR)/games
18
19 clean:
20 rm -f $(CLEANFILES) $(PROG)
21
22 .PHONY: all clean install