diff --git a/Makefile b/Makefile index de022e07..d51078bd 100644 --- a/Makefile +++ b/Makefile @@ -161,7 +161,7 @@ $(PRJ_OBJS) $(PRJ_DEPS) : CFLAGS += -include ${PRJ_INCLUDE_H} LDFLAGS += -L${CMSIS}/Lib/GCC LDLIBS += -larm_cortexM0l_math -CFLAGS += ${DEFINES} +CFLAGS += ${DEFINES} $(foreach i,$(select),${${i}}) CPPFLAGS += -fsingle-precision-constant -fmerge-all-constants CFLAGS += -Os -fdata-sections -ffunction-sections -flto $(INCLUDE) CXXFLAGS += $(CFLAGS) -fno-exceptions -fno-rtti @@ -182,10 +182,13 @@ BINSIZE = arm-none-eabi-size ### MAKE RULES -.PHONY : one all clean realclean distclean depends T1 T2 ALL +.PHONY : any one all clean realclean distclean depends PRJ T1 T2 ALL .PRECIOUS : %.elf +any : distclean realclean ${MARLIN} ${BUILD} + $(call variant,PRJ) + one : ${MARLIN} ${BUILD} ifneq (${D_COUNT},$(words $(wildcard ${BUILD}/*.d))) # # something's missing, re-create dependencies @@ -230,6 +233,9 @@ distclean : clean depends : $(BSP_DEPS) $(PRJ_DEPS) +PRJ : ${PRJ}.otx ${PRJ}.bin ${PRJ}.map ${PRJ}.elf + @cp -u $^ ${ZD} && cat $< + T1 : ${T1}.otx ${T1}.bin ${T1}.map ${T1}.elf @cp -u $^ ${ZD} && cat $<