xref: /btstack/port/daemon/example/Makefile.in (revision 09cf8159072d80e092b9c303cea9b43a81b36aee)
13edc84c5SMatthias RingwaldBTSTACK_ROOT=../../..
23edc84c5SMatthias Ringwald
33edc84c5SMatthias RingwaldCC = @CC@
43edc84c5SMatthias RingwaldLDFLAGS  = @LDFLAGS@ -lBTstack -L../src
53edc84c5SMatthias RingwaldCFLAGS = @CFLAGS@ \
6fc64f94aSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/daemon/src \
7dd9e275cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
8*09cf8159SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/windows \
93edc84c5SMatthias Ringwald	-I$(BTSTACK_ROOT)/src \
103edc84c5SMatthias Ringwald	-I..
113edc84c5SMatthias Ringwaldprefix = @prefix@
123edc84c5SMatthias Ringwald
132531c97eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/daemon/example
143edc84c5SMatthias Ringwald
15d6549a6eSMatthias Ringwaldall: test rfcomm_cat rfcomm_echo rfcomm_test inquiry l2cap_server l2cap_throughput le_scan
163edc84c5SMatthias Ringwald
173edc84c5SMatthias Ringwaldtest: test.c
183edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
193edc84c5SMatthias Ringwald
20d6549a6eSMatthias Ringwaldl2cap_server: l2cap_server.c
213edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
223edc84c5SMatthias Ringwald
23d6549a6eSMatthias Ringwaldl2cap_throughput: l2cap_throughput.c
243edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
253edc84c5SMatthias Ringwald
263edc84c5SMatthias Ringwaldinquiry: inquiry.c
273edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
283edc84c5SMatthias Ringwald
29d6549a6eSMatthias Ringwaldrfcomm_cat: rfcomm_cat.c
303edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
313edc84c5SMatthias Ringwald
32d6549a6eSMatthias Ringwaldrfcomm_echo: rfcomm_echo.c
333edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
343edc84c5SMatthias Ringwald
35d6549a6eSMatthias Ringwaldrfcomm_test: rfcomm_test.c
363edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
373edc84c5SMatthias Ringwald
383edc84c5SMatthias Ringwaldle_scan: le_scan.c
393edc84c5SMatthias Ringwald	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
403edc84c5SMatthias Ringwald
413edc84c5SMatthias Ringwaldclean:
42d6549a6eSMatthias Ringwald	rm -f test mitm rfcomm_cat rfcomm_echo rfcomm_test inquiry l2cap_server l2cap_throughput le_scan
433edc84c5SMatthias Ringwald	rm -rf *.dSYM
443edc84c5SMatthias Ringwald
453edc84c5SMatthias Ringwaldinstall:
463edc84c5SMatthias Ringwald	echo "nothing to be done"
473edc84c5SMatthias Ringwald
48