From 6f8841ae3739339eb5bf93648290734828a72251 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(-) (limited to 'broccoli') 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.3