blob: 35f5d236c45ecdd3028fc0b3fef8fff0450cc38e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
PREFIX = /usr/local
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
NCURSES = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -lncurses -ltinfo
CC = gcc
SRC = main.c input.c board.c
TARGET = chess
all:
${CC} ${SRC} -o ${TARGET} ${CFLAGS} ${NCURSES}
install: all
${CC} ${NCURSES} ${CFLAGS} ${SRC} -o ${TARGET}
cp -f stats ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/${TARGET}
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${TARGET}
|