Browse Source

Improve make target names

master
Mathieu Maret 3 months ago
parent
commit
ef78de447f
2 changed files with 9 additions and 5 deletions
  1. +8
    -4
      Makefile
  2. +1
    -1
      README.md

+ 8
- 4
Makefile View File

@ -44,14 +44,15 @@ arch/$(ARCH)/irq_handler.o:arch/$(ARCH)/irq_handler.c
$(CC) "-I$(PWD)" -c "$<" $(CFLAGS) -o "$@"
self_test: CFLAGS += -DRUN_TEST -DDEBUG
self_test: clean kernel
test: CFLAGS += -DRUN_TEST
test: clean kernel
qemu-system-x86_64 -kernel kernel -serial stdio
test:kernel
run:kernel
qemu-system-x86_64 -kernel $<
debug: CFLAGS += $(DEBUG_FLAGS)
debug: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
debug: CXXFLAGS += $(DEBUG_FLAGS)
debug:kernel kernel.sym
#qemu-system-x86_64 -s -S -kernel kernel&
@ -59,6 +60,9 @@ debug:kernel kernel.sym
#gdb -s kernel.sym -ex "target remote localhost:1234" -ex "dir core:driver:arch/$(ARCH))'"
gdb -x debug.gdb
debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
debug_test: debug
clean:
$(RM) kernel $(asmobj) $(cobj) $(deps) fd.iso kernel.sym
$(RM) -r isodir


+ 1
- 1
README.md View File

@ -7,7 +7,7 @@ To generate iso image
# Run it
`make test`
`make run`
or


Loading…
Cancel
Save