2010-03-29 00:11:29 +00:00
|
|
|
CC = gcc
|
|
|
|
SRC_DIR = src
|
|
|
|
SRC = ${SRC_DIR}/tty-solitaire.c
|
|
|
|
CFLAGS = -W -Wall -pedantic -ansi -std=c99
|
|
|
|
OUTPUT = bin/tty-solitaire
|
2010-04-01 05:28:00 +00:00
|
|
|
LIB_DIR = lib
|
2010-04-13 04:05:05 +00:00
|
|
|
OBJECTS = ${LIB_DIR}/frame.o \
|
|
|
|
${LIB_DIR}/card.o \
|
|
|
|
${LIB_DIR}/stack.o \
|
|
|
|
${LIB_DIR}/deck.o \
|
|
|
|
${LIB_DIR}/util.o \
|
2010-04-20 04:01:39 +00:00
|
|
|
${LIB_DIR}/cursor.o \
|
2010-04-13 04:05:05 +00:00
|
|
|
${LIB_DIR}/keyboard.o \
|
|
|
|
${LIB_DIR}/display.o \
|
2010-04-13 02:14:39 +00:00
|
|
|
${LIB_DIR}/game.o
|
2010-03-29 00:11:29 +00:00
|
|
|
LDFLAGS = -lncurses
|
|
|
|
|
2010-04-01 05:28:00 +00:00
|
|
|
tty-solitaire: ${OBJECTS}
|
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${OUTPUT} ${OBJECTS}
|
2010-03-29 00:11:29 +00:00
|
|
|
|
|
|
|
clean:
|
2010-04-01 05:28:00 +00:00
|
|
|
rm -rf ${LIB_DIR}/*.o ${OUTPUT}
|