build: Clean up output a bit.

This commit is contained in:
Solomon Peachy 2013-08-03 20:16:29 -04:00
parent 6cfcd4e207
commit 5c15204ea1
2 changed files with 9 additions and 7 deletions

View File

@ -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:

View File

@ -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)