Lab 3
This commit is contained in:
18
GNUmakefile
18
GNUmakefile
@@ -138,6 +138,8 @@ $(OBJDIR)/.vars.%: FORCE
|
||||
# Include Makefrags for subdirectories
|
||||
include boot/Makefrag
|
||||
include kern/Makefrag
|
||||
include lib/Makefrag
|
||||
include user/Makefrag
|
||||
|
||||
|
||||
QEMUOPTS = -drive file=$(OBJDIR)/kern/kernel.img,index=0,media=disk,format=raw -serial mon:stdio -gdb tcp::$(GDBPORT)
|
||||
@@ -298,6 +300,22 @@ myapi.key:
|
||||
#handin-prep:
|
||||
# @./handin-prep
|
||||
|
||||
# For test runs
|
||||
|
||||
prep-%:
|
||||
$(V)$(MAKE) "INIT_CFLAGS=${INIT_CFLAGS} -DTEST=`case $* in *_*) echo $*;; *) echo user_$*;; esac`" $(IMAGES)
|
||||
|
||||
run-%-nox-gdb: prep-% pre-qemu
|
||||
$(QEMU) -nographic $(QEMUOPTS) -S
|
||||
|
||||
run-%-gdb: prep-% pre-qemu
|
||||
$(QEMU) $(QEMUOPTS) -S
|
||||
|
||||
run-%-nox: prep-% pre-qemu
|
||||
$(QEMU) -nographic $(QEMUOPTS)
|
||||
|
||||
run-%: prep-% pre-qemu
|
||||
$(QEMU) $(QEMUOPTS)
|
||||
|
||||
# This magic automatically generates makefile dependencies
|
||||
# for header files included from C source files we compile,
|
||||
|
||||
Reference in New Issue
Block a user