summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrtm <rtm>2006-06-22 20:47:23 +0000
committerrtm <rtm>2006-06-22 20:47:23 +0000
commitdf5cc91659b0a2190072e6fc305060c8de95ed82 (patch)
tree0965b8a673f0e2ddab08b2135ab1499f6455c648 /Makefile
parentbf49aedbed02cdbf40430178847d34c48c36c693 (diff)
downloadxv6-labs-df5cc91659b0a2190072e6fc305060c8de95ed82.tar.gz
xv6-labs-df5cc91659b0a2190072e6fc305060c8de95ed82.tar.bz2
xv6-labs-df5cc91659b0a2190072e6fc305060c8de95ed82.zip
compile "user programs"
curproc array
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c3495c0..870ea70 100644
--- a/Makefile
+++ b/Makefile
@@ -20,18 +20,22 @@ bootblock : bootasm.S bootmain.c
$(OBJCOPY) -S -O binary bootblock.o bootblock
./sign.pl bootblock
-kernel : $(OBJS) bootother.S
+kernel : $(OBJS) bootother.S user1
$(CC) -nostdinc -I. -c bootother.S
$(LD) -N -e start -Ttext 0x7000 -o bootother.out bootother.o
$(OBJCOPY) -S -O binary bootother.out bootother
$(OBJDUMP) -S bootother.o > bootother.asm
- $(LD) -Ttext 0x100000 -e main -o kernel $(OBJS) -b binary bootother
+ $(LD) -Ttext 0x100000 -e main -o kernel $(OBJS) -b binary bootother user1
$(OBJDUMP) -S kernel > kernel.asm
vectors.S : vectors.pl
perl vectors.pl > vectors.S
+user1 : user1.c
+ $(CC) -nostdinc -I. -c user1.c
+ $(LD) -N -e main -Ttext 0 -o user1 user1.o
+
-include *.d
clean :
- rm -f *.o bootblock kernel kernel.asm xv6.img *.d
+ rm -f *.o bootblock kernel kernel.asm xv6.img *.d user1