Blob


1 .POSIX:
3 PREFIX = /usr/local
4 MANPREFIX = ${PREFIX}/man
5 LIBS = -lncurses
6 OBJ = input.o screen.o shapes.o scores.o tetris.o
7 CFLAGS += -D_XOPEN_SOURCE=700
9 all: tetris
11 clean:
12 rm -f *.o tetris
14 tetris: ${OBJ}
15 ${CC} -o $@ ${OBJ} ${CFLAGS} ${LIBS}
17 install: tetris
18 mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man6
19 cp -f tetris ${DESTDIR}${PREFIX}/bin/
20 cp -f tetris.6 ${DESTDIR}${MANPREFIX}/man6/