From 303be924d87e699bc21029fc71fd97cc676b88e3 Mon Sep 17 00:00:00 2001 From: Robert Gustafsson Date: Tue, 3 Oct 2017 09:25:39 +0200 Subject: Create output dirs when compiling --- broccoli/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/broccoli/Makefile b/broccoli/Makefile index ea5465b..d115d95 100644 --- a/broccoli/Makefile +++ b/broccoli/Makefile @@ -5,7 +5,10 @@ LDFLAGS = -L/usr/local/lib -lbroccoli -pthread SRC = midbropasad.c broevent.c fifoqueue.c OBJ = $(patsubst %.c, build/%.o, $(SRC)) -all: bin/midbropasad bin/tests +all: dirs bin/midbropasad bin/tests + +dirs: + mkdir -p build bin bin/midbropasad: $(OBJ) $(CC) $^ -o bin/midbropasad $(LDFLAGS) -- cgit v1.2.1