default: build/system.elf INCLUDES = -Iinclude COMMON_FLAGS = -g -Os -Wall -Wextra -unused -fno-rtti CFLAGS = -std=c99 CXXFLAGS = -std=c++14 TARGETS = src/app/${app}/main.cc src/os/object/cpp_helpers.cc src/os/object/outputstream.cc ifneq ($(findstring lm75,${drivers}), ) TARGETS += src/driver/lm75.cc COMMON_FLAGS += -DDRIVER_LM75 endif ifeq (${timer_cycles}, 1) COMMON_FLAGS += -DTIMER_CYCLES endif ifeq (${timer_us}, 1) COMMON_FLAGS += -DTIMER_US endif ifeq (${timer_s}, 1) COMMON_FLAGS += -DTIMER_S endif ifeq (${loop}, 1) COMMON_FLAGS += -DWITH_LOOP endif include src/arch/${arch}/Makefile.inc clean: arch_clean rm -f build/system.elf help: arch_help @echo @echo "Global flags:" @echo " timer_cycles timer_us timer_s" @echo " loop" @echo @echo "${arch} drivers:" @echo " $(shell ls src/arch/${arch}/driver | fgrep .c | cut -d . -f 1)" @echo @echo "Global drivers:" @echo " $(shell ls src/driver | fgrep .c | cut -d . -f 1)" @echo @echo "Global architectures:" @echo " $(shell ls src/arch)" .PHONY: clean help