no-more-secrets-rust/Makefile
Brian Barto 6da3bbdce5 Restructured the application file a bit.
modified:   Makefile
	renamed:    src/nms.c -> src/main.c
	copied:     src/nms.h -> src/nms.c
	modified:   src/nms.h
2016-04-18 12:00:57 -04:00

20 lines
302 B
Makefile

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)/*