diff --git a/arm/makefile b/arm/makefile index b1b0f5e..f2615e2 100644 --- a/arm/makefile +++ b/arm/makefile @@ -4,7 +4,7 @@ CXX = arm-none-eabi-g++ OBJCOPY = arm-none-eabi-objcopy linker_script = bootloader.ld -includes = +includes = sources = CFLAGS = -march=armv6-m -g -ffunction-sections -fdata-sections -Os -Werror -Wall -flto @@ -43,9 +43,6 @@ app.elf: $(app_objects) app.ld deps = $(app_objects:.o=.d) $(bootloader_objects:.o=.d) -clean: - rm -rf *.elf *.bin $(tests) $(app_objects) $(bootloader_objects) $(deps) - HOSTCXX = /usr/local/opt/llvm/bin/clang++ HOSTLDFLAGS = -lgmock -lgtest -lgtest_main -L/usr/local/opt/llvm/lib -L/usr/local/lib HOSTCFLAGS = -std=c++20 -g\ @@ -83,5 +80,10 @@ async_test_asan: async_test.cc async.host.o test_deps = async.host.d + +clean: + rm -rf *.elf *.bin $(app_objects) $(bootloader_objects) $(deps) + rm -rf test/ *.dSYM $(tests) $(test_deps) *.o + -include $(deps) -include $(test_deps)