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}