2 changed files with 16 additions and 42 deletions
@ -1,27 +0,0 @@ |
|||||
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
|
||||
-include $(HERE)build.conf |
|
||||
|
|
||||
# Project Name
|
|
||||
TARGET?=blink |
|
||||
|
|
||||
# Configure for debugging
|
|
||||
# common configurations:
|
|
||||
# use DEBUG = 1 and OPT = -Og for debugging
|
|
||||
# or DEBUG = 0 and OPT = -O3 for performance
|
|
||||
DEBUG?=0 |
|
||||
OPT?=-O3 |
|
||||
|
|
||||
# (optional) Includes FatFS source files within project.
|
|
||||
#USE_FATFS = 1
|
|
||||
|
|
||||
# Relative to dir 'src'
|
|
||||
LIBDAISY_DIR?=../../heck_libDaisy |
|
||||
DAISYSP_DIR?=../../heck_DaisySP |
|
||||
|
|
||||
CXXFLAGS+=-Wall -Wno-unused -Wno-reorder-ctor -Wno-switch |
|
||||
|
|
||||
ifneq (,$(findstring g++,$(CXX))) |
|
||||
CXXFLAGS+=-fdiagnostics-color=always |
|
||||
else ifneq (,$(findstring clang,$(CXX))) |
|
||||
CXXFLAGS+=-fcolor-diagnostics |
|
||||
endif |
|
@ -1,19 +1,20 @@ |
|||||
include ../Makefile.conf |
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
||||
|
-include $(HERE)../build.conf |
||||
|
|
||||
ALL_SRC=$(wildcard *.cc) |
TARGET ?= main_blink |
||||
TARGET_SRC=main_$(TARGET).cc |
DEBUG ?= 0 |
||||
MODULES_SRC=$(filter-out main_%,$(ALL_SRC)) |
LIBDAISY_DIR ?= ../../heck_libDaisy |
||||
CXX_SRC=$(MODULES_SRC) $(TARGET_SRC) |
DAISYSP_DIR ?= ../../heck_DaisySP |
||||
|
|
||||
$(info CXXFLAGS: $(CXXFLAGS)) |
CXX_STANDARD ?= -std=c++17 |
||||
$(info SOURCES: $(ALL_SRC)) |
CXXFLAGS += -Wall -Wno-unused -Wno-reorder-ctor -Wno-switch |
||||
$(info MODULES: $(MODULES_SRC)) |
CXXFLAGS += -fdiagnostics-color=always |
||||
$(info TARGET_SRC: $(TARGET_SRC)) |
|
||||
$(info CXX_SRC: $(CXX_SRC)) |
|
||||
|
|
||||
# libDaisy Makefile variables
|
ALL_SRC = $(wildcard *.cc) |
||||
CPPFLAGS=$(CXXFLAGS) |
TARGET_SRC = $(TARGET).cc |
||||
SYSTEM_FILES_DIR=$(LIBDAISY_DIR)/core |
MODULES_SRC = $(filter-out main_%,$(ALL_SRC)) |
||||
CPP_SOURCES=$(CXX_SRC) |
CXX_SRC = $(MODULES_SRC) $(TARGET_SRC) |
||||
|
|
||||
include $(SYSTEM_FILES_DIR)/Makefile |
CXX_SOURCES = $(CXX_SRC) |
||||
|
|
||||
|
include $(LIBDAISY_DIR)/core/Makefile |
||||
|
Loading…
Reference in new issue