BIN=bin
OBJ=obj
SRC=src

CC = gcc
LDLIBS = -lncurses

${BIN}/nms: ${OBJ}/nms.o ${OBJ}/main.o
	$(CC) -o $@ $^ $(LDLIBS)

${OBJ}/main.o: ${SRC}/main.c ${SRC}/nms.h
	$(CC) -o $@ -c ${SRC}/main.c

${OBJ}/nms.o: ${SRC}/nms.c ${SRC}/nms.h
	$(CC) -o $@ -c ${SRC}/nms.c

clean:
	rm -f ${BIN}/*
	rm -f $(OBJ)/*