neorv32/sw/example/demo_spi_irq/makefile

16 lines
525 B
Makefile

# Modify this variable to fit your NEORV32 setup (neorv32 home folder)
OSFLAG :=
ifeq ($(OS),Windows_NT)
NEORV32_HOME ?= ..\..\..
APP_SRC ?= $(wildcard ./*.c) $(wildcard ./*.s) $(wildcard ./*.cpp) $(wildcard ./*.S) $(wildcard ./drv/*.c)
APP_INC ?= -I . -I .\drv
include $(NEORV32_HOME)\sw\common\common.mk
else
NEORV32_HOME ?= ../../..
APP_SRC ?= $(wildcard ./*.c) $(wildcard ./*.s) $(wildcard ./*.cpp) $(wildcard ./*.S) $(wildcard ./drv/*.c)
APP_INC ?= -I . -I ./drv
include $(NEORV32_HOME)/sw/common/common.mk
endif