build: Clean up output a bit.
This commit is contained in:
parent
6cfcd4e207
commit
5c15204ea1
14
Makefile
14
Makefile
|
@ -47,19 +47,21 @@ $(MCU).ld: libs/$(MCU).ld.in inc/$(MCU)_hw.h
|
|||
|
||||
# Cleaning up..
|
||||
clean:
|
||||
${RM} -f $(SRC_OBJS) src/*.a $(MCU).ld
|
||||
@$(E) " CLEAN "
|
||||
$(Q)${RM} -f $(SRC_OBJS) src/*.a $(MCU).ld
|
||||
|
||||
distclean: clean
|
||||
${RM} -f $(DEPFILE) $(VERSION_H)
|
||||
${RM} -f $(LIBS_OBJS) $(LIBRARIES)
|
||||
${RM} -Rf $(TOOLCHAIN_SRC_DIR)/.build
|
||||
@if [ -r ${TOOLCHAIN_SRC_DIR}/Makefile ] ; then \
|
||||
@$(E) " DISTCLEAN"
|
||||
$(Q)${RM} -f $(DEPFILE) $(VERSION_H)
|
||||
$(Q)${RM} -f $(LIBS_OBJS) $(LIBRARIES)
|
||||
$(Q)${RM} -Rf $(TOOLCHAIN_SRC_DIR)/.build
|
||||
$(Q)if [ -r ${TOOLCHAIN_SRC_DIR}/Makefile ] ; then \
|
||||
cd ${TOOLCHAIN_SRC_DIR} ; \
|
||||
MAKELEVEL='' make clean ; \
|
||||
MAKELEVEL='' make distclean ; \
|
||||
fi
|
||||
@${RM} -f .toolchain
|
||||
${RM} -f tags TAGS
|
||||
$(Q)${RM} -f tags TAGS
|
||||
|
||||
# Toolchain
|
||||
.toolchain:
|
||||
|
|
|
@ -23,7 +23,7 @@ HOSTCC ?= gcc
|
|||
JLEVEL:=${shell cat /proc/cpuinfo |grep processor |wc -l}
|
||||
|
||||
# Libraries
|
||||
LIBDIR=$(TOP)/libs
|
||||
LIBDIR=libs
|
||||
|
||||
# Compiler flags
|
||||
CFLAGS += -pipe -Wall -Wextra -g -Os -flto -fuse-linker-plugin -fwhole-program -std=c99 $(MCU_CFLAGS) $(TARGET_CFLAGS)
|
||||
|
|
Loading…
Reference in New Issue