4ecd5fcfb3
and added a bin dir. new file: Makefile renamed: src/obj/.gitignore -> bin/.gitignore new file: obj/.gitignore deleted: src/Makefile
17 lines
225 B
Makefile
17 lines
225 B
Makefile
BIN=bin
|
|
OBJ=obj
|
|
SRC=src
|
|
|
|
CC = gcc
|
|
CFLAGS = -lncurses
|
|
|
|
${BIN}/nms: ${OBJ}/nms.o
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
${OBJ}/nms.o: ${SRC}/nms.c ${SRC}/nms.h
|
|
$(CC) $(CFLAGS) -o $@ -c ${SRC}/nms.c
|
|
|
|
clean:
|
|
rm -f ${BIN}/*
|
|
rm -f $(OBJ)/*
|