Fixed makefile and put it on the root dir.
This commit is contained in:
12
makefile
Normal file
12
makefile
Normal 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}
|
||||
Reference in New Issue
Block a user