summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2015-10-08 13:03:31 -0500
committerJohn Kacur <jkacur@redhat.com>2015-10-09 13:32:55 +0200
commitd68bda3d43bf9d79c633e4223eda8c4dac51b4e6 (patch)
tree3860364dcfdca51b8b8c3ad9fb27367c79c536d3
parentcfb349961787e4b577829d62226401eeb4704424 (diff)
downloadrt-tests-d68bda3d43bf9d79c633e4223eda8c4dac51b4e6.tar.gz
Makefile: add target to create OBJDIR before use
Signed-off-by: Clark Williams <williams@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5d7a23e..1c3ae50 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,10 @@ $(OBJDIR)/%.d: %.c
@$(CC) -MM $(CFLAGS) $(CPPFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ || rm -f $@
.PHONY: all
-all: $(TARGETS) hwlatdetect
+all: $(OBJDIR) $(TARGETS) hwlatdetect
+
+$(OBJDIR):
+ mkdir $(OBJDIR)
# Include dependency files, automatically generate them if needed.
-include $(addprefix $(OBJDIR)/,$(sources:.c=.d))