xref: /btstack/port/posix-h4/Makefile (revision dd9e275ce1e161b989cd6bcc449a6811be29e011)
18caefee3SMatthias Ringwald# Makefile for libusb based examples
28caefee3SMatthias RingwaldBTSTACK_ROOT = ../..
38caefee3SMatthias Ringwald
48caefee3SMatthias RingwaldCORE += main.c stdin_support.c
58caefee3SMatthias Ringwald
6ff839116SMatthias RingwaldCOMMON += hci_transport_h4_posix.c run_loop_posix.c remote_device_db_fs.c
78caefee3SMatthias Ringwald
88caefee3SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/embedded/Makefile.inc
98caefee3SMatthias Ringwald
10*dd9e275cSMatthias RingwaldCFLAGS  += -g -Wall \
11*dd9e275cSMatthias Ringwald		  -I$(BTSTACK_ROOT)/platform/embedded \
12*dd9e275cSMatthias Ringwald		  -I$(BTSTACK_ROOT)/platform/posix
13*dd9e275cSMatthias Ringwald
148caefee3SMatthias Ringwald# CFLAGS += -Werror
158caefee3SMatthias Ringwald
16*dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
173edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
188caefee3SMatthias Ringwald
198caefee3SMatthias Ringwaldifeq ($(OS),Windows_NT)
208caefee3SMatthias RingwaldLDFLAGS += -lws2_32
218caefee3SMatthias Ringwaldendif
228caefee3SMatthias Ringwald
238caefee3SMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts
248caefee3SMatthias Ringwaldifneq ($(OS),Windows_NT)
258caefee3SMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI}
268caefee3SMatthias Ringwaldendif
278caefee3SMatthias Ringwald
283edc84c5SMatthias Ringwaldall: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES}
29