Note that scores file moves from $PREFIX/var/games to /var/games PR: 192691 Submitted by: Christian Mangin Improvements: marino
26 lines
728 B
Text
26 lines
728 B
Text
--- Makefile.orig 2014-08-16 10:46:48 UTC
|
|
+++ Makefile
|
|
@@ -0,0 +1,23 @@
|
|
+# Makefile for Tetris
|
|
+# $FreeBSD: /tmp/pcvs/ports/games/bsdtris/files/patch-Makefile,v 1.1 2003-04-02 13:02:40 edwin Exp $
|
|
+
|
|
+TMPLDFLAGS+= -lcurses -ltermcap
|
|
+SRCS= screen.c shapes.c input.c tetris.c scores.c
|
|
+
|
|
+PREFIX?=/usr/local
|
|
+MKDIR?=mkdir -p
|
|
+
|
|
+all:
|
|
+. for files in ${SRCS}
|
|
+ ${CC} ${CFLAGS} ${LDFLAGS} -c ${files}
|
|
+. endfor
|
|
+ ${CC} ${CFLAGS} ${LDFLAGS} ${TMPLDFLAGS} -o tetris input.o scores.o \
|
|
+ screen.o shapes.o tetris.o
|
|
+
|
|
+install:
|
|
+ ${BSD_INSTALL_PROGRAM} tetris ${DESTDIR}${PREFIX}/bin/bsdtris
|
|
+ ${BSD_INSTALL_MAN} tetris.6 ${DESTDIR}${MANPREFIX}/man/man6/bsdtris.6
|
|
+ ${MKDIR} ${DESTDIR}/var/games
|
|
+
|
|
+clean:
|
|
+ rm -f *.o *.core
|