2021-01-20 08:34:08 -05:00
|
|
|
# Makefile for micropython on Raspberry Pi RP2
|
|
|
|
#
|
|
|
|
# This is a simple wrapper around cmake
|
|
|
|
|
|
|
|
BUILD = build
|
|
|
|
|
|
|
|
$(VERBOSE)MAKESILENT = -s
|
|
|
|
|
2021-02-23 17:57:14 -05:00
|
|
|
CMAKE_ARGS =
|
|
|
|
|
|
|
|
ifdef USER_C_MODULES
|
|
|
|
CMAKE_ARGS += -DUSER_C_MODULES=${USER_C_MODULES}
|
|
|
|
endif
|
|
|
|
|
2021-01-20 08:34:08 -05:00
|
|
|
all:
|
2021-02-23 17:57:14 -05:00
|
|
|
[ -d $(BUILD) ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
|
2021-01-20 08:34:08 -05:00
|
|
|
$(MAKE) $(MAKESILENT) -C $(BUILD)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -rf $(BUILD)
|