-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
12 lines (9 loc) · 878 Bytes
/
Makefile
File metadata and controls
12 lines (9 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
dynamic_macos:
clang++ -dynamiclib -undefined suppress -Iinclude src/imu.cpp src/switch_controller.cpp src/rumble.cpp src/joycon_report.cpp -I /opt/homebrew/Cellar/hidapi/0.14.0/include -std=c++11 -o switchkit.dylib
dynamic_test_macos: dynamic_macos main.cpp
clang++ -o joycon_test main.cpp libjoycon.dylib -Iinclude /opt/homebrew/Cellar/hidapi/0.14.0/lib/libhidapi.dylib -I /opt/homebrew/Cellar/hidapi/0.14.0/include -std=c++11
static_macos:
clang++ -c -Iinclude src/imu.cpp src/switch_controller.cpp src/rumble.cpp src/joycon_report.cpp -I /opt/homebrew/Cellar/hidapi/0.14.0/include -std=c++11
clang++ -r imu.o joycon_report.o rumble.o switch_controller.o -o switchkit.o
static_test_macos: static_macos
clang++ -o joycon_test main.cpp switchkit.o -Iinclude /opt/homebrew/Cellar/hidapi/0.14.0/lib/libhidapi.dylib -I /opt/homebrew/Cellar/hidapi/0.14.0/include -std=c++11