Improve make target names
This commit is contained in:
parent
3b7543064d
commit
ef78de447f
12
Makefile
12
Makefile
@ -44,14 +44,15 @@ arch/$(ARCH)/irq_handler.o:arch/$(ARCH)/irq_handler.c
|
|||||||
$(CC) "-I$(PWD)" -c "$<" $(CFLAGS) -o "$@"
|
$(CC) "-I$(PWD)" -c "$<" $(CFLAGS) -o "$@"
|
||||||
|
|
||||||
|
|
||||||
self_test: CFLAGS += -DRUN_TEST -DDEBUG
|
test: CFLAGS += -DRUN_TEST
|
||||||
self_test: clean kernel
|
test: clean kernel
|
||||||
qemu-system-x86_64 -kernel kernel -serial stdio
|
qemu-system-x86_64 -kernel kernel -serial stdio
|
||||||
|
|
||||||
test:kernel
|
run:kernel
|
||||||
qemu-system-x86_64 -kernel $<
|
qemu-system-x86_64 -kernel $<
|
||||||
|
|
||||||
debug: CFLAGS += $(DEBUG_FLAGS)
|
|
||||||
|
debug: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
|
||||||
debug: CXXFLAGS += $(DEBUG_FLAGS)
|
debug: CXXFLAGS += $(DEBUG_FLAGS)
|
||||||
debug:kernel kernel.sym
|
debug:kernel kernel.sym
|
||||||
#qemu-system-x86_64 -s -S -kernel kernel&
|
#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 -s kernel.sym -ex "target remote localhost:1234" -ex "dir core:driver:arch/$(ARCH))'"
|
||||||
gdb -x debug.gdb
|
gdb -x debug.gdb
|
||||||
|
|
||||||
|
debug_test: CFLAGS += $(DEBUG_FLAGS) -DRUN_TEST
|
||||||
|
debug_test: debug
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) kernel $(asmobj) $(cobj) $(deps) fd.iso kernel.sym
|
$(RM) kernel $(asmobj) $(cobj) $(deps) fd.iso kernel.sym
|
||||||
$(RM) -r isodir
|
$(RM) -r isodir
|
||||||
|
Loading…
Reference in New Issue
Block a user