adds some extensibility through putting the term into a variable
This commit is contained in:
4
Makefile
4
Makefile
@ -12,6 +12,8 @@ LDFLAGS = -T $(shell find . -name "link.ld") -melf_i386 --sysroot=$(PWD)/sysroot
|
|||||||
|
|
||||||
AR = i686-elf-ar
|
AR = i686-elf-ar
|
||||||
|
|
||||||
|
TERM_EXEC = kitty --hold sh -c
|
||||||
|
|
||||||
c_kern_objects := $(patsubst %.c,%.o,$(shell find kernel/ -name "*.c"))
|
c_kern_objects := $(patsubst %.c,%.o,$(shell find kernel/ -name "*.c"))
|
||||||
asm_kern_objects := $(patsubst %.s,%.o,$(shell find kernel/ -name "*.s"))
|
asm_kern_objects := $(patsubst %.s,%.o,$(shell find kernel/ -name "*.s"))
|
||||||
|
|
||||||
@ -44,7 +46,7 @@ os.iso: kernel.elf
|
|||||||
grub-mkrescue -o $@ iso
|
grub-mkrescue -o $@ iso
|
||||||
|
|
||||||
run: os.iso
|
run: os.iso
|
||||||
kitty --hold sh -c "gdb kernel.elf -x util/gdbcmds" &
|
$(TERM_EXEC) "gdb kernel.elf -x util/gdbcmds" &
|
||||||
qemu-system-i386 -s -cdrom os.iso
|
qemu-system-i386 -s -cdrom os.iso
|
||||||
|
|
||||||
#TODO: when i inevitably do add libc, this is going to fail because they have the same name as the libk objects
|
#TODO: when i inevitably do add libc, this is going to fail because they have the same name as the libk objects
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
qemu-system-i386 -s -cdrom os.iso & gdb kernel.elf -x=util/gdbcmds
|
|
Reference in New Issue
Block a user