From 7ca44b0755d65daa3474aea47288f71e9f64ba7a Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Tue, 11 Mar 2014 01:43:42 -0700 Subject: [PATCH] 2AM, time to make more Makefile tweaks --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04b4789e..7f999d05 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ ifneq ($(CCC_ANALYZE),yes) CC = i686-pc-toaru-gcc endif +NM = i686-pc-toaru-nm + # Build flags CFLAGS = -g -O0 -std=c99 CFLAGS += -finline-functions -ffreestanding @@ -112,8 +114,10 @@ toaruos-kernel: kernel/start.o kernel/link.ld kernel/main.o kernel/symbols.o ${K kernel/symbols.o: ${KERNEL_OBJS} util/generate_symbols.py @-rm -f kernel/symbols.o + @${BEG} "nm" "Generating symbol list..." @${CC} -T kernel/link.ld -nostdlib -o toaruos-kernel kernel/*.o ${KERNEL_OBJS} -lgcc ${ERRORS} - @i686-pc-toaru-nm toaruos-kernel -g | python2 util/generate_symbols.py > kernel/symbols.s + @${NM} toaruos-kernel -g | python2 util/generate_symbols.py > kernel/symbols.s + @${END} "nm" "Generated symbol list." @${BEG} "yasm" "kernel/symbols.s" @${YASM} -f elf -o $@ kernel/symbols.s ${ERRORS} @${END} "yasm" "kernel/symbols.s"