diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:25:39 +0200 |
---|---|---|
committer | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-03 09:25:39 +0200 |
commit | 303be924d87e699bc21029fc71fd97cc676b88e3 (patch) | |
tree | 45b83b9b14bbbb50e27721d55d6d6791f670d11c | |
parent | cd393a04244181e73599b24ac38e70778501c120 (diff) | |
download | midbro-303be924d87e699bc21029fc71fd97cc676b88e3.tar.gz midbro-303be924d87e699bc21029fc71fd97cc676b88e3.tar.bz2 |
Create output dirs when compiling
-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) |