-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# midi2cpp / daisyseed-midi2
#
# USB MIDI 2.0 device on the Daisy Seed, built with the libDaisy makefile.
#
# Set LIBDAISY_DIR to a libDaisy checkout on branch feat/usb-midi2-transport, then:
#
# make LIBDAISY_DIR=/path/to/libDaisy
#
# MIDI2CPP_DIR defaults to this repo root (../..) and rarely needs overriding.
TARGET = daisyseed-midi2
# midi2cpp requires C++17; the libDaisy core makefile defaults to gnu++14.
CPP_STANDARD = -std=gnu++17
MIDI2CPP_DIR ?= ../..
ifeq ($(LIBDAISY_DIR),)
$(error LIBDAISY_DIR is not set. Point it at a libDaisy checkout on branch feat/usb-midi2-transport)
endif
# Recipe sources
CPP_SOURCES = src/main.cpp src/daisyseed_midi2.cpp
# midi2cpp C++ wrapper
CPP_SOURCES += $(MIDI2CPP_DIR)/src/midi2_device.cpp \
$(MIDI2CPP_DIR)/src/midi2_ci.cpp \
$(MIDI2CPP_DIR)/src/midi2_host.cpp \
$(MIDI2CPP_DIR)/src/midi2_bridge.cpp
# midi2 C99 core (amalgamated single translation unit)
C_SOURCES += $(MIDI2CPP_DIR)/src/midi2.c
C_INCLUDES += -I$(MIDI2CPP_DIR)/src
# Core location and generic libDaisy makefile.
SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core
include $(SYSTEM_FILES_DIR)/Makefile