Fixed makefile and put it on the root dir.
This commit is contained in:
parent
9610d35611
commit
e83ea125a9
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}
|
11
src/makefile
11
src/makefile
@ -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}
|
|
Loading…
Reference in New Issue
Block a user