summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2015-10-08 13:03:31 -0500
committerClark Williams <williams@redhat.com>2015-10-08 13:03:31 -0500
commitb335ce7417d0dc4e6bcb498fe866c9cbb4a4558b (patch)
tree21a72edb027cd403e5f4ae3e44a14a842365e737
parentb921fb3d1f13e18459c414032a003502883e1a56 (diff)
downloadrt-tests-b335ce7417d0dc4e6bcb498fe866c9cbb4a4558b.tar.gz
Makefile: add target to create OBJDIR before use
Signed-off-by: Clark Williams <williams@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))