2020-06-03 18:40:05 -04:00
|
|
|
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2017-04-25 21:34:22 -04:00
|
|
|
# The following is a temporary hack to forefully undefine vars that might have
|
|
|
|
# be defined by a calling Makefile (from recursive make).
|
|
|
|
# TODO: Find a better way to be able to call this Makefile recursively.
|
2017-05-25 08:04:51 -04:00
|
|
|
ifneq ($(findstring undefine,$(.FEATURES)),)
|
2017-04-25 21:34:22 -04:00
|
|
|
override undefine COPT
|
|
|
|
override undefine CFLAGS_EXTRA
|
|
|
|
override undefine LDFLAGS_EXTRA
|
2018-07-29 07:58:30 -04:00
|
|
|
override undefine MICROPY_FORCE_32BIT
|
|
|
|
override undefine CROSS_COMPILE
|
2017-04-25 21:34:22 -04:00
|
|
|
override undefine FROZEN_DIR
|
|
|
|
override undefine FROZEN_MPY_DIR
|
2021-04-22 20:55:39 -04:00
|
|
|
override undefine USER_C_MODULES
|
|
|
|
override undefine SRC_MOD
|
2017-04-25 21:34:22 -04:00
|
|
|
override undefine BUILD
|
|
|
|
override undefine PROG
|
2017-05-25 08:04:51 -04:00
|
|
|
endif
|
2017-04-25 21:34:22 -04:00
|
|
|
|
2020-01-25 15:04:11 -05:00
|
|
|
include mpy-cross.mk
|
2022-08-31 11:13:39 -04:00
|
|
|
CFLAGS += -g
|
|
|
|
STRIP = :
|