From 0567e7f3b6ddc42043c0fb1900307aa880c64813 Mon Sep 17 00:00:00 2001 From: Brian Barto Date: Tue, 12 Apr 2016 17:15:38 -0400 Subject: [PATCH] Updated Makefile to include the new header file modified: src/Makefile modified: src/obj/.gitignore --- src/Makefile | 7 ++++--- src/obj/.gitignore | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index ba76c5e..9c1509f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,11 @@ -CC=gcc -ODIR=obj +CC = gcc +ODIR = obj +DEPS = nms.h _OBJ = nms.o OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) -$(ODIR)/%.o: %.c +$(ODIR)/%.o: %.c $(DEPS) $(CC) -c -o $@ $< nms: $(OBJ) diff --git a/src/obj/.gitignore b/src/obj/.gitignore index 861051d..d6b7ef3 100644 --- a/src/obj/.gitignore +++ b/src/obj/.gitignore @@ -1,2 +1,2 @@ -* +* !.gitignore