retool build utils

This commit is contained in:
Kevin Lange 2012-12-05 21:40:30 -08:00
parent e9f89f157b
commit 942c49806b
7 changed files with 8 additions and 9 deletions

View File

@ -21,9 +21,8 @@ MISCMODS = $(patsubst %.c,%.o,$(wildcard kernel/misc/*.c))
SYSTEM = $(patsubst %.c,%.o,$(wildcard kernel/sys/*.c))
DATASTRUCTS = $(patsubst %.c,%.o,$(wildcard kernel/ds/*.c))
CPUBITS = $(patsubst %.c,%.o,$(wildcard kernel/cpu/*.c))
REALEMU = $(patsubst %.c,%.o,$(wildcard kernel/v8086/*.c))
SUBMODULES = ${MODULES} ${FILESYSTEMS} ${VIDEODRIVERS} ${DEVICES} ${VIRTUALMEM} ${MISCMODS} ${SYSTEM} ${DATASTRUCTS} ${CPUBITS} ${REALEMU}
SUBMODULES = ${MODULES} ${FILESYSTEMS} ${VIDEODRIVERS} ${DEVICES} ${VIRTUALMEM} ${MISCMODS} ${SYSTEM} ${DATASTRUCTS} ${CPUBITS}
UTILITIES = util/bin/readelf util/bin/typewriter util/bin/bim
EMU = qemu-system-i386

@ -1 +1 @@
Subproject commit f7860e400ada0cd118916cc78af7de041711cf5f
Subproject commit 6cb509abf950cbce665d740252a15ba2cfcaadf3

View File

@ -39,7 +39,7 @@ clean:
@${ENDRM} "RM" "Cleaned userspace full-toolchain applications."
${FTARGETS}: $(TARGETDIR)% : %.c ${LOCAL_LIBS}
@${BEG} "CC" "$@ $< [w/libs]"
@${BEG} "CC" "$< [w/libs]"
@${CC} -flto ${CFLAGS} ${EXTRAFLAGS} ${FREETYPE_INC} -o $@ $< ${LOCAL_LIBS} ${LIBM} ${FREETYPE_LIB} ${LIBPNG} ${LIBZ} ${ERRORS}
@${STRIP} $@
@${END} "CC" "$< [w/libs]"

View File

@ -6,4 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo -n > /tmp/.`whoami`-build-errors
CMD=`cpad "$1" 8 " "`
echo -e -n "\033[32m${CMD}${2}\033[0m\n"
echo -e -n "\033[32m${CMD}${2}\033[0m"

View File

@ -6,4 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo -n > /tmp/.`whoami`-build-errors
CMD=`cpad "$1" 8 " "`
echo -e -n "\033[31m${CMD}${2}\033[0m\n"
echo -e -n "\033[31m${CMD}${2}\033[0m"

View File

@ -5,8 +5,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CMD=`cpad "$1" 8 " "`
if [[ -s /tmp/.`whoami`-build-errors ]] ; then
cat /tmp/.`whoami`-build-errors
echo -e -n "\r\033[1;33m${CMD}${2}\033[0m\n"
cat /tmp/.`whoami`-build-errors
else
echo -e -n "\r\033[A\033[1;32m${CMD}${2}\033[0m\033[K\n"
echo -e -n "\r\033[1;32m${CMD}${2}\033[0m\033[K\n"
fi

View File

@ -4,4 +4,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "$DIR/cpad.sh"
CMD=`cpad "$1" 8 " "`
echo -e -n "\r\033[A\033[1;31m${CMD}${2}\033[0m\033[K\n"
echo -e -n "\r\033[1;31m${CMD}${2}\033[0m\033[K\n"