From e83ea125a9ca20746226cefb344e2f1c5c877084 Mon Sep 17 00:00:00 2001 From: Murilo Soares Pereira Date: Sun, 28 Mar 2010 21:11:29 -0300 Subject: [PATCH] Fixed makefile and put it on the root dir. --- makefile | 12 ++++++++++++ src/makefile | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 makefile delete mode 100644 src/makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..6a7a305 --- /dev/null +++ b/makefile @@ -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} diff --git a/src/makefile b/src/makefile deleted file mode 100644 index 0b70c70..0000000 --- a/src/makefile +++ /dev/null @@ -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}