$(BUILDDIR)/kernel: $(OBJS) $(LIBS) $(DIR)linker-script
@echo $(COMP): Linking kernel: $@
- @$(MKDIR) $(dir $@)
- @$(CXX) $(OBJS) $(LIBS) -lgcc -lsupc++ -nostdlib -o "$@" -Wl,-T$(DIR)linker-script
+ $(V)$(MKDIR) $(dir $@)
+ $(V)$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -lgcc -lsupc++ \
+ -nostdlib -o "$@" -Wl,-T$(DIR)linker-script
# GRUB refuses to use the addresses in the multiboot header if it
# finds a valid ELF header, so the dd hacks a zero into the high byte
$(BUILDDIR)/kernel.stripped: $(BUILDDIR)/kernel
@echo $(COMP): Stripping kernel: $@
- @$(STRIP) $(BUILDDIR)/kernel -o "$@"
- @dd if=/dev/zero of=$(BUILDDIR)/kernel.stripped conv=notrunc \
- bs=1 count=1 seek=67
+ $(V)$(STRIP) $(BUILDDIR)/kernel -o "$@"
+ $(V)dd if=/dev/zero of=$(BUILDDIR)/kernel.stripped conv=notrunc \
+ bs=1 count=1 seek=67