DIR := arch/x64/ CXXFLAGS += -mno-red-zone -mcmodel=kernel -fno-omit-frame-pointer $(BUILDDIR)/kernel: $(OBJS) $(DIR)linker-script @echo $(COMP): Linking kernel: $@ @$(MKDIR) $(dir $@) @$(LD) $(OBJS) -o "$@" -T$(DIR)linker-script $(BUILDDIR)/kernel.stripped: $(BUILDDIR)/kernel @echo $(COMP): Stripping kernel: $@ @$(STRIP) $(BUILDDIR)/kernel -o "$@"