Compare commits

...

2 Commits

Author SHA1 Message Date
fc5afb7e2f feat(make): make lib_julios .phony
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2021-12-01 09:30:53 +01:00
be3cc35e1d feat(make): add run and debug rules
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2021-11-30 07:05:25 +01:00

@ -9,10 +9,14 @@ LIB_JULIOS = target/x86_64-julios/debug/libjulios.a
GRUB_CFG = grub/grub.cfg GRUB_CFG = grub/grub.cfg
SRC = src/lib.rs
all: $(ISO) all: $(ISO)
run: $(ISO)
qemu-system-x86_64 -cdrom $<
debug: $(ISO)
bochs -q
$(ISO): install $(ISO): install
grub-mkrescue -o $@ $(INSTALL_ROOT) grub-mkrescue -o $@ $(INSTALL_ROOT)
@ -25,7 +29,7 @@ install: $(KERNEL) $(GRUB_CFG)
$(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS) $(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS)
ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS) ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS)
$(LIB_JULIOS): $(SRC) $(LIB_JULIOS):
cargo build cargo build
@ -38,4 +42,4 @@ clean:
$(RM) julios.iso $(RM) julios.iso
$(RM) -r iso $(RM) -r iso
.PHONY: $(INSTALL_ROOT) install clean all .PHONY: $(INSTALL_ROOT) install clean all run debug $(LIB_JULIOS)