Fixed makefile and put it on the root dir.

This commit is contained in:
Murilo Soares Pereira 2010-03-28 21:11:29 -03:00
parent 9610d35611
commit e83ea125a9
2 changed files with 12 additions and 11 deletions

12
makefile Normal file
View File

@ -0,0 +1,12 @@
CC = gcc
SRC_DIR = src
SRC = ${SRC_DIR}/tty-solitaire.c
CFLAGS = -W -Wall -pedantic -ansi -std=c99
OUTPUT = bin/tty-solitaire
LDFLAGS = -lncurses
tty-solitaire: ${SRC}
${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${OUTPUT}
clean:
rm -rf ${SRC_DIR}/*.o ${OUTPUT}

View File

@ -1,11 +0,0 @@
CC = gcc
CFLAGS = -W -Wall -pedantic -ansi -std=c99
OUTPUT = ../bin/hatneck
OBJECTS =
LDFLAGS = -lncurses
hatneck: ${OBJECTS}
${CC} ${CFLAGS} ${LDFLAGS} hatneck.c -o ${OUTPUT} ${OBJECTS}
clean:
rm -rf *.o ${OUTPUT}