Added new object dependencies and titleized the makefile.

This commit is contained in:
Murilo Soares Pereira
2010-04-12 23:14:39 -03:00
parent 9da78ff96c
commit 9459fc8242

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
CC = gcc
SRC_DIR = src
SRC = ${SRC_DIR}/tty-solitaire.c
CFLAGS = -W -Wall -pedantic -ansi -std=c99
OUTPUT = bin/tty-solitaire
LIB_DIR = lib
OBJECTS = ${LIB_DIR}/frame.o \
${LIB_DIR}/card.o \
${LIB_DIR}/stack.o \
${LIB_DIR}/deck.o \
${LIB_DIR}/util.o \
${LIB_DIR}/display.o \
${LIB_DIR}/game.o
LDFLAGS = -lncurses
tty-solitaire: ${OBJECTS}
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${OUTPUT} ${OBJECTS}
clean:
rm -rf ${LIB_DIR}/*.o ${OUTPUT}