summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-24 20:20:23 +0000
committerrsc <rsc>2007-08-24 20:20:23 +0000
commite0e7d07e5afc1a073b659cbf0b8594071f05a816 (patch)
treeca49d4be6d276c241ef2fff485c34b72090ce0f0 /Makefile
parent5af5f6aa7f52db85f0f22555ae39395dbe68b731 (diff)
downloadxv6-labs-e0e7d07e5afc1a073b659cbf0b8594071f05a816.tar.gz
xv6-labs-e0e7d07e5afc1a073b659cbf0b8594071f05a816.tar.bz2
xv6-labs-e0e7d07e5afc1a073b659cbf0b8594071f05a816.zip
test that fork fails gracefully
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e12ddf1..31bc946 100644
--- a/Makefile
+++ b/Makefile
@@ -72,9 +72,9 @@ vectors.S : vectors.pl
ULIB = ulib.o usys.o printf.o umalloc.o
-usertests : usertests.o $(ULIB)
- $(LD) -N -e main -Ttext 0 -o usertests usertests.o $(ULIB)
- $(OBJDUMP) -S usertests > usertests.asm
+_usertests : usertests.o $(ULIB)
+ $(LD) -N -e main -Ttext 0 -o _usertests usertests.o $(ULIB)
+ $(OBJDUMP) -S _usertests > usertests.asm
_echo : echo.o $(ULIB)
$(LD) -N -e main -Ttext 0 -o _echo echo.o $(ULIB)
@@ -117,10 +117,16 @@ _zombie: zombie.o $(ULIB)
$(LD) -N -e main -Ttext 0 -o _zombie zombie.o $(ULIB)
$(OBJDUMP) -S _zombie > zombie.asm
+_forktest: forktest.o $(ULIB)
+ # forktest has less library code linked in - needs to be small
+ # in order to be able to max out the proc table.
+ $(LD) -N -e main -Ttext 0 -o _forktest forktest.o ulib.o usys.o
+ $(OBJDUMP) -S _forktest > forktest.asm
+
mkfs : mkfs.c fs.h
cc -o mkfs mkfs.c
-UPROGS=usertests _echo _cat _init _kill _ln _ls _mkdir _rm _sh _zombie
+UPROGS=_usertests _echo _cat _init _kill _ln _ls _mkdir _rm _sh _zombie _forktest
fs.img : mkfs README $(UPROGS)
./mkfs fs.img README $(UPROGS)