WIP: sequencer/BG95 driver

This commit is contained in:
2021-09-22 19:38:49 +03:00
parent 1d03f37e67
commit f9b2b8ff6b
9 changed files with 989 additions and 99 deletions
+13 -8
View File
@@ -85,7 +85,9 @@ SRC_FILES_LIST :=
# Include directories list(space seperated). Relative path
INC_DIR_LIST := ../include gtest
ifeq ($(OS), Windows_NT)
INC_DIR_LIST += mingw-std-threads
endif
# Exclude files list(space seperated). Filenames only.
# EXC_FILE_LIST := bad.cpp old.cpp
@@ -104,10 +106,13 @@ ODUMP := objdump
OCOPY := objcopy
# Compiler flags for debug and release
DEB_CFLAGS := -std=c++17 -DDEBUG -g3 -Wall -Wextra
REL_CFLAGS := -std=c++17 -Wall -Wextra -O2
DEB_CFLAGS := -std=gnu++17 -DDEBUG -g3 -Wall -Wextra -fmessage-length=0
REL_CFLAGS := -std=gnu++17 -g3 -Wall -Wextra -O2 -fmessage-length=0
# Pre-defines
# PRE_DEFS := MYCAB=1729 SUPER_MODE
PRE_DEFS :=
ifeq ($(OS), Windows_NT)
PRE_DEFS += WIN_TRHEADS
endif
# ============== Linker settings ==============
# Linker flags
@@ -183,8 +188,8 @@ $(BUILD_DIR)/$(TARGET): $(OBJ)
@mkdir -p $(@D)
@echo Linking to target: $(TARGET)
$(DOCKER) $(CXX) $(LDFLAGS) $(MAP_FLAG) -o $(@D)/$(TARGET) $(OBJ)
$(DOCKER) $(ODUMP) -h -S $(BUILD_DIR)/$(TARGET) > $(BUILD_DIR)/$(basename $(TARGET)).list
$(DOCKER) $(OCOPY) -O ihex $(BUILD_DIR)/$(TARGET) $(BUILD_DIR)/$(basename $(TARGET)).hex
$(DOCKER) $(ODUMP) -h -S $(BUILD_DIR)/$(TARGET) > $(BUILD_DIR)/$(basename $(TARGET)).list
# $(DOCKER) $(OCOPY) -O ihex $(BUILD_DIR)/$(TARGET) $(BUILD_DIR)/$(basename $(TARGET)).hex
@echo
@echo Print size information
@$(CSIZE) $(@D)/$(TARGET)
@@ -217,8 +222,8 @@ build-clang: $(BUILD_DIR)/$(TARGET)
debug: $(BUILD_DIR)/$(TARGET)
.PHONY: release
release: CFLAGS := $(REL_FLAGS)
release: clean $(BUILD_DIR)/$(TARGET)
release: CFLAGS := $(REL_CFLAGS)
release: $(BUILD_DIR)/$(TARGET)
.PHONY: all
all: clean release