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}