xref: /btstack/port/posix-h4/Makefile (revision 8caefee39d444df6d8908a96a844825f10fbdaa4)
1*8caefee3SMatthias Ringwald# Makefile for libusb based examples
2*8caefee3SMatthias RingwaldBTSTACK_ROOT = ../..
3*8caefee3SMatthias RingwaldPOSIX_ROOT= ${BTSTACK_ROOT}/platforms/posix
4*8caefee3SMatthias Ringwald
5*8caefee3SMatthias RingwaldCORE += main.c stdin_support.c
6*8caefee3SMatthias Ringwald
7*8caefee3SMatthias RingwaldCOMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c
8*8caefee3SMatthias Ringwald
9*8caefee3SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/embedded/Makefile.inc
10*8caefee3SMatthias Ringwald
11*8caefee3SMatthias Ringwald# CC = gcc-fsf-4.9
12*8caefee3SMatthias RingwaldCFLAGS  += -g -Wall
13*8caefee3SMatthias Ringwald# CFLAGS += -Werror
14*8caefee3SMatthias Ringwald
15*8caefee3SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platforms/posix/src
16*8caefee3SMatthias Ringwald
17*8caefee3SMatthias Ringwaldifeq ($(OS),Windows_NT)
18*8caefee3SMatthias RingwaldLDFLAGS += -lws2_32
19*8caefee3SMatthias Ringwaldendif
20*8caefee3SMatthias Ringwald
21*8caefee3SMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts
22*8caefee3SMatthias Ringwaldifneq ($(OS),Windows_NT)
23*8caefee3SMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI}
24*8caefee3SMatthias RingwaldCFLAGS += -I${POSIX_ROOT}/src
25*8caefee3SMatthias Ringwaldendif
26*8caefee3SMatthias Ringwald
27*8caefee3SMatthias Ringwaldall: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES}
28