Espresso 0.0.0e
This commit is contained in:
6
Makefile
6
Makefile
@ -5,6 +5,8 @@ CC := i686-elf-gcc
|
||||
AS := i686-elf-as
|
||||
NASM := nasm
|
||||
QEMU_MKE_IMG := qemu-img create -f raw espresso.img 64M
|
||||
MKFS_VFAT := sudo mkfs.vfat
|
||||
MKFS_FLAGS := -F 32 --mbr -S 512
|
||||
NASMFLAGS := -f elf32
|
||||
WNOFLAGS := -Wno-discarded-qualifiers
|
||||
CFLAGS := -std=gnu99 -ffreestanding -O2 -Wall -Wextra -msse $(WNOFLAGS)
|
||||
@ -21,7 +23,7 @@ GRUB_CFG := grub.cfg
|
||||
# === File collection ===
|
||||
C_SRCS := $(foreach dir, $(SRC_DIRS), $(shell find $(dir) -name '*.c'))
|
||||
S_SRCS := boot.s crti.s crtn.s misc_asm.s
|
||||
NASM_SRCS := idt.asm isr128.asm gdt.asm isr_stub_table.asm pit.asm
|
||||
NASM_SRCS := gdt.asm pit.asm isr.asm
|
||||
CRTI_OBJ := crti.o
|
||||
CRTBEGIN_OBJ := $(shell $(CC) $(CFLAGS) -print-file-name=crtbegin.o)
|
||||
CRTEND_OBJ := $(shell $(CC) $(CFLAGS) -print-file-name=crtend.o)
|
||||
@ -64,6 +66,8 @@ iso: $(TARGET)
|
||||
# === Run in QEMU ===
|
||||
run: iso
|
||||
$(QEMU_MKE_IMG)
|
||||
echo "\n"
|
||||
$(MKFS_VFAT) $(MKFS_FLAGS) espresso.img
|
||||
qemu-system-i386 $(QEMUFLAGS)
|
||||
|
||||
# === Clean all build artifacts ===
|
||||
|
Reference in New Issue
Block a user