Moved the files around and made a Makefile

new file:   src/Makefile
	renamed:    nms.c -> src/nms.c
This commit is contained in:
Brian Barto 2016-04-05 16:55:07 -04:00
parent 3dc7cb41d4
commit 3632dbcdbe
2 changed files with 14 additions and 0 deletions

14
src/Makefile Normal file
View File

@ -0,0 +1,14 @@
CC=gcc
ODIR=obj
_OBJ = nms.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c
$(CC) -c -o $@ $<
nms: $(OBJ)
$(CC) -o $@ $^
clean:
rm -f $(ODIR)/*.o nms

View File