mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
23 lines
616 B
Makefile
23 lines
616 B
Makefile
CXX ?= g++
|
|
|
|
# Wiiuse owns the Balance Board's HID control/interrupt channels and applies the
|
|
# calibration stored in the board. This deliberately avoids BlueZ's generic HID
|
|
# profile: current BlueZ requests medium link security for a bonded board, and
|
|
# the original Balance Board rejects that negotiation before an input device is
|
|
# created.
|
|
CXXFLAGS ?= -O2 -std=c++17 -Wall -Wextra -pedantic
|
|
LDLIBS += -lwiiuse -lbluetooth -pthread
|
|
|
|
TARGET := balance_board_worker
|
|
SRC := balance_board_worker.cpp
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CXX) $(CXXFLAGS) -o $@ $< $(LDLIBS)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|