Browse Source

Makefile: grouped targets for kernel.sym

allocArea
Mathieu Maret 2 months ago
parent
commit
5a078249d0
  1. 8
      Makefile

8
Makefile

@ -19,10 +19,10 @@ csrc=$(shell find $(SUBDIRS) -type f -name "*.c")# $(wildcard *.c)
cobj=$(csrc:%.c=%.o) arch/$(ARCH)/cpu_context_switch.o arch/$(ARCH)/irq_pit.o
deps = $(csrc:%.c=%.d)
kernel:$(asmobj) $(cobj) linker.ld
$(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o $@ -T linker.ld -lgcc
objcopy --only-keep-debug $@ $@.sym
objcopy --strip-debug $@
kernel kernel.sym &: $(asmobj) $(cobj) linker.ld
$(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o kernel -T linker.ld -lgcc
objcopy --only-keep-debug kernel kernel.sym
objcopy --strip-debug kernel
fd.iso: kernel
mkdir -p isodir/boot/grub

Loading…
Cancel
Save