2015-05-21 20:43:39 +00:00
|
|
|
BTSTACK_ROOT=../../..
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
LDFLAGS = @LDFLAGS@ -lBTstack -L../src
|
2015-11-13 14:04:41 +00:00
|
|
|
CFLAGS = @CFLAGS@ \
|
2016-02-19 12:57:49 +00:00
|
|
|
-I$(BTSTACK_ROOT)/platform/daemon/src \
|
2016-01-20 13:20:47 +00:00
|
|
|
-I$(BTSTACK_ROOT)/platform/posix \
|
2015-11-13 14:04:41 +00:00
|
|
|
-I$(BTSTACK_ROOT)/src \
|
|
|
|
-I..
|
2015-05-21 20:43:39 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
|
2016-02-19 09:33:52 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/daemon/example
|
2015-05-21 20:43:39 +00:00
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
all: test rfcomm_cat rfcomm_echo rfcomm_test inquiry l2cap_server l2cap_throughput le_scan
|
2015-05-21 20:43:39 +00:00
|
|
|
|
|
|
|
test: test.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
l2cap_server: l2cap_server.c
|
2015-05-21 20:43:39 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
l2cap_throughput: l2cap_throughput.c
|
2015-05-21 20:43:39 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
|
|
|
inquiry: inquiry.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
rfcomm_cat: rfcomm_cat.c
|
2015-05-21 20:43:39 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
rfcomm_echo: rfcomm_echo.c
|
2015-05-21 20:43:39 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
2016-01-21 20:20:22 +00:00
|
|
|
rfcomm_test: rfcomm_test.c
|
2015-05-21 20:43:39 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
|
|
|
le_scan: le_scan.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
|
|
|
|
clean:
|
2016-01-21 20:20:22 +00:00
|
|
|
rm -f test mitm rfcomm_cat rfcomm_echo rfcomm_test inquiry l2cap_server l2cap_throughput le_scan
|
2015-05-21 20:43:39 +00:00
|
|
|
rm -rf *.dSYM
|
|
|
|
|
|
|
|
install:
|
|
|
|
echo "nothing to be done"
|
|
|
|
|