Improve make target names

This commit is contained in:
Mathieu Maret 2021-01-26 17:58:33 +01:00
parent 3b7543064d
commit ef78de447f
2 changed files with 9 additions and 5 deletions

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

View File

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