summaryrefslogtreecommitdiff
path: root/broccoli
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-10-03 09:25:39 +0200
committerRobert Gustafsson <robg@student.chalmers.se>2017-10-03 09:25:39 +0200
commit303be924d87e699bc21029fc71fd97cc676b88e3 (patch)
tree45b83b9b14bbbb50e27721d55d6d6791f670d11c /broccoli
parentcd393a04244181e73599b24ac38e70778501c120 (diff)
downloadmidbro-303be924d87e699bc21029fc71fd97cc676b88e3.tar.gz
midbro-303be924d87e699bc21029fc71fd97cc676b88e3.tar.bz2
Create output dirs when compiling
Diffstat (limited to 'broccoli')
-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)