From: Austin Clements Date: Sun, 4 Sep 2011 19:19:43 +0000 (-0400) Subject: kernel depends on kernel.ld X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=68b58727166bbb339f4790ec779a5a16772557f6;p=cs3210-lab1.git kernel depends on kernel.ld --- diff --git a/Makefile b/Makefile index b13ab4d..3ce1cb4 100644 --- a/Makefile +++ b/Makefile @@ -109,8 +109,8 @@ initcode: initcode.S $(OBJCOPY) -S -O binary initcode.out initcode $(OBJDUMP) -S initcode.o > initcode.asm -kernel: $(OBJS) entry.o entryother initcode - $(LD) $(LDFLAGS) -T kernel.ld -e entry -o kernel entry.o $(OBJS) -b binary initcode entryother +kernel: $(OBJS) entry.o entryother initcode kernel.ld + $(LD) $(LDFLAGS) -T kernel.ld -o kernel entry.o $(OBJS) -b binary initcode entryother $(OBJDUMP) -S kernel > kernel.asm $(OBJDUMP) -t kernel | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > kernel.sym