diff --git a/Makefile b/Makefile index 08f2f57..5094846 100644 --- a/Makefile +++ b/Makefile @@ -79,12 +79,13 @@ default: all: $(KERNEL) $(Q)compiledb -n make +.PHONY: __build_all __build_all: $(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build _all obj=. $(KOBJ): __build_all -$(KERNEL): $(KOBJ) linker.ld +$(KERNEL): $(KOBJ) built-in.o linker.ld $(Q)echo " LD $@" $(Q)$(LD) $(KOBJ) $(LDFLAGS) -T linker.ld -o $@