diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2021-10-15 22:41:18 +0200 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2021-10-15 22:41:18 +0200 |
| commit | 1395dc42159d52ba36524fabe805897cd20bd01e (patch) | |
| tree | 85ab198e0e2497c70eced46ba1e16e035d48eb24 /Makefile | |
| parent | 4528b2347ac72ffdabdbe4d9e7bf7789c81e664f (diff) | |
Adding string.h & printf()
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -15,14 +15,14 @@ ISO_DIR=isodir TARGET=myos -OBJ_FILES=boot.o kernel.o gdt.o idt.o keyboard.o vga.o string.o tty.o +OBJ_FILES=boot.o kernel.o gdt.o idt.o keyboard.o vga.o string.o tty.o stdio.o CRTBEGIN_OBJ=$(shell $(CC) -print-file-name=crtbegin.o) CRTEND_OBJ=$(shell $(CC) -print-file-name=crtend.o) OBJ=$(BUILD_DIR)/crti.o $(CRTBEGIN_OBJ) $(patsubst %,$(BUILD_DIR)/%,$(OBJ_FILES)) $(CRTEND_OBJ) $(BUILD_DIR)/crtn.o # Default action is set to making kernel binary -.PHONY: all +.PHONY: all run run-iso debug clean all: $(BUILD_DIR)/$(TARGET).bin # Creating iso file @@ -48,22 +48,18 @@ $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.c $(CC) -c $< -o $@ -std=gnu99 $(CFLAGS) # Boot kernel binary in qemu -.PHONY: run run: $(BUILD_DIR)/$(TARGET).bin $(QEMU) -kernel $^ # Boot iso in qemu -.PHONY: run-iso run-iso: $(TARGET).iso $(QEMU) -cdrom $^ # Debug kernel binary in gdb -.PHONY: debug debug: $(TARGET).bin $(QEMU) -kernel $^ -s -S & gdb -x .gdbinit # Clean build files -.PHONY: clean clean: $(RM) $(BUILD_DIR) $(ISO_DIR) $(TARGET).iso |
