aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-10-03 09:25:39 +0200
committerAndreas Lindhé <andreas@lindhe.io>2017-10-09 12:14:35 +0200
commit6f8841ae3739339eb5bf93648290734828a72251 (patch)
treeaa31fbae855ad39ce27df643d0f2f24fea1d967c
parentf4a7033d3629976f9980cb956e2c29315c6306c0 (diff)
downloadmidbro-6f8841ae3739339eb5bf93648290734828a72251.tar.gz
midbro-6f8841ae3739339eb5bf93648290734828a72251.tar.bz2
Create output dirs when compiling
-rw-r--r--broccoli/Makefile5
1 files changed, 4 insertions, 1 deletions
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)