summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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))