root il y a 5 ans
Parent
commit
aaded51783
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 1
      Makefile
  2. 1 0
      lines

+ 3 - 1
Makefile

@@ -13,7 +13,8 @@ kbinary: $(KSRCS) boot/bootsect Makefile
 	ld -b elf64-x86-64 -o kernel.o $(KOBJS) -T kernel.lds
 	objcopy -I elf64-x86-64 -S -R ".comment" -R ".eh_frame" -O binary kernel.o kbinary
 
-
+vmxnix:
+    gcc kernel.o –s init vmxnix
 xnix.img: boot/bootsect $(KSRCS) Makefile kbinary
 	dd if=/dev/zero of=xnix.img bs=1024 count=1440
 	dd if=boot/bootsect of=xnix.img conv=notrunc seek=0
@@ -22,6 +23,7 @@ xnix.img: boot/bootsect $(KSRCS) Makefile kbinary
 
 lines: Makefile
 	wc -l `find ./ -name *.asm -o -name *.c -o -name *.h -o -name *.S -o -name *.s`
+	wc -l `find ./ -name *.asm -o -name *.c -o -name *.h -o -name *.S -o -name *.s`|grep total|awk '{print $1}'>lines
 
 
 clear: Makefile

+ 1 - 0
lines

@@ -0,0 +1 @@
+ 2134 total