diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:25:39 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | 6f8841ae3739339eb5bf93648290734828a72251 (patch) | |
tree | aa31fbae855ad39ce27df643d0f2f24fea1d967c /broccoli | |
parent | f4a7033d3629976f9980cb956e2c29315c6306c0 (diff) | |
download | midbro-6f8841ae3739339eb5bf93648290734828a72251.tar.gz midbro-6f8841ae3739339eb5bf93648290734828a72251.tar.bz2 |
Create output dirs when compiling
Diffstat (limited to 'broccoli')
-rw-r--r-- | broccoli/Makefile | 5 |
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) |