feat(make): update gitignore and Makefile to add source dependency
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2021-11-29 17:52:20 +01:00
parent c63fbff5b3
commit e141c788e8
2 changed files with 5 additions and 1 deletions

2
.gitignore vendored

@ -3,3 +3,5 @@ iso
*.iso *.iso
*.o *.o
julios julios
.gdb_history
peda-session-julios.txt

@ -9,6 +9,8 @@ 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)
$(ISO): install $(ISO): install
@ -23,7 +25,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): $(LIB_JULIOS): $(SRC)
cargo build cargo build