summaryrefslogtreecommitdiff
path: root/broccoli/Makefile
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-10-12 10:09:56 +0200
committerRobert Gustafsson <robg@student.chalmers.se>2017-10-12 10:11:23 +0200
commit8664b4c13a215221a1c26a6bc1de47226949b35d (patch)
tree61fa722a085d29618de9c154ba00e8ad1dda87ad /broccoli/Makefile
parent51048c85dd437d501ca82cdc7bb4edc4bb686100 (diff)
downloadmidbro-8664b4c13a215221a1c26a6bc1de47226949b35d.tar.gz
midbro-8664b4c13a215221a1c26a6bc1de47226949b35d.tar.bz2
Add debug mode
Diffstat (limited to 'broccoli/Makefile')
-rw-r--r--broccoli/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/broccoli/Makefile b/broccoli/Makefile
index a3bc87a..8e39783 100644
--- a/broccoli/Makefile
+++ b/broccoli/Makefile
@@ -3,22 +3,23 @@ LIBCFLAGS =-c -fPIC -DBROCCOLI
CFLAGS =-c -DBROCCOLI
INC =-I/usr/local/include -I/usr/local/include -I./includes
LDFLAGS = -L/usr/local/lib -lbroccoli -pthread
+DEBUG =
SRC = midbropasad.c broevent.c fifoqueue.c
OBJ = $(patsubst %.c, build/%.o, $(SRC))
-all: dirs bin/midbropasad
+all: dirs lib/midbropasad
dirs:
mkdir -p build bin lib
-bin/midbropasad: $(OBJ)
+lib/midbropasad: $(OBJ)
$(CC) -shared $^ -o lib/libmidbropasad.so $(LDFLAGS)
pasad_test:
$(CC) test/pasad_test.c -I./includes -o bin/pasad_test -L./lib -lmidbropasad
build/%.o: src/%.c
- $(CC) $(LIBCFLAGS) $(INC) $< -o $@
+ $(CC) $(LIBCFLAGS) $(DEBUG) $(INC) $< -o $@
bin/tests: build/fifoqueue.o build/tests.o
$(CC) $^ -o bin/tests $(LDFLAGS)