2016-04-15 11:02:09 -07:00
|
|
|
BIN=bin
|
|
|
|
OBJ=obj
|
|
|
|
SRC=src
|
|
|
|
|
|
|
|
CC = gcc
|
2016-04-18 08:12:56 -07:00
|
|
|
LDLIBS = -lncurses
|
2016-04-15 11:02:09 -07:00
|
|
|
|
2016-04-18 09:00:57 -07:00
|
|
|
${BIN}/nms: ${OBJ}/nms.o ${OBJ}/main.o
|
|
|
|
$(CC) -o $@ $^ $(LDLIBS)
|
|
|
|
|
2016-04-19 15:18:02 -07:00
|
|
|
sneakers: ${OBJ}/nms.o ${OBJ}/sneakers.o
|
|
|
|
$(CC) -o ${BIN}/$@ $^ $(LDLIBS)
|
|
|
|
|
2016-04-18 09:00:57 -07:00
|
|
|
${OBJ}/main.o: ${SRC}/main.c ${SRC}/nms.h
|
|
|
|
$(CC) -o $@ -c ${SRC}/main.c
|
2016-04-15 11:02:09 -07:00
|
|
|
|
2016-04-19 15:18:02 -07:00
|
|
|
${OBJ}/sneakers.o: ${SRC}/sneakers.c ${SRC}/nms.h
|
|
|
|
$(CC) -o $@ -c ${SRC}/sneakers.c
|
|
|
|
|
2016-04-15 11:02:09 -07:00
|
|
|
${OBJ}/nms.o: ${SRC}/nms.c ${SRC}/nms.h
|
2016-04-18 08:12:56 -07:00
|
|
|
$(CC) -o $@ -c ${SRC}/nms.c
|
2016-04-15 11:02:09 -07:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${BIN}/*
|
|
|
|
rm -f $(OBJ)/*
|