feat(make): update gitignore and Makefile to add source dependency
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
c63fbff5b3
commit
e141c788e8
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@ iso
|
||||
*.iso
|
||||
*.o
|
||||
julios
|
||||
.gdb_history
|
||||
peda-session-julios.txt
|
||||
|
4
Makefile
4
Makefile
@ -9,6 +9,8 @@ LIB_JULIOS = target/x86_64-julios/debug/libjulios.a
|
||||
|
||||
GRUB_CFG = grub/grub.cfg
|
||||
|
||||
SRC = src/lib.rs
|
||||
|
||||
all: $(ISO)
|
||||
|
||||
$(ISO): install
|
||||
@ -23,7 +25,7 @@ install: $(KERNEL) $(GRUB_CFG)
|
||||
$(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS)
|
||||
ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS)
|
||||
|
||||
$(LIB_JULIOS):
|
||||
$(LIB_JULIOS): $(SRC)
|
||||
cargo build
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user