Keep files in their respective directories.

This commit is contained in:
Nicolás Ortega Froysa 2018-02-23 18:52:17 +01:00
parent 78c1155430
commit 842ae8b49d
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -9,12 +9,12 @@ OBJ=kernel/kernel_entry.o kernel/kernel.o
all: os-image all: os-image
os-image: boot/boot_sect.bin kernel.bin os-image: boot/boot_sect.bin kernel/kernel.bin
mkdir -p $(BIN) mkdir -p $(BIN)
cat $^ > $(BIN)/$@ cat $^ > $(BIN)/$@
# build kernel binary file # build kernel binary file
kernel.bin: $(OBJ) kernel/kernel.bin: $(OBJ)
$(LD) $(LDFLAGS) $^ -o $@ $(LD) $(LDFLAGS) $^ -o $@
%.o: %.c ${HEADERS} %.o: %.c ${HEADERS}