Keep files in their respective directories.
This commit is contained in:
parent
78c1155430
commit
842ae8b49d
4
Makefile
4
Makefile
@ -9,12 +9,12 @@ OBJ=kernel/kernel_entry.o kernel/kernel.o
|
||||
|
||||
all: os-image
|
||||
|
||||
os-image: boot/boot_sect.bin kernel.bin
|
||||
os-image: boot/boot_sect.bin kernel/kernel.bin
|
||||
mkdir -p $(BIN)
|
||||
cat $^ > $(BIN)/$@
|
||||
|
||||
# build kernel binary file
|
||||
kernel.bin: $(OBJ)
|
||||
kernel/kernel.bin: $(OBJ)
|
||||
$(LD) $(LDFLAGS) $^ -o $@
|
||||
|
||||
%.o: %.c ${HEADERS}
|
||||
|
Loading…
Reference in New Issue
Block a user