seb15753

root Makefile

Jun 24th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #a.michelizza.free.fr
  2. OBJ=floppyA
  3.  
  4. all: $(OBJ)
  5.  
  6. floppyA: bootsect kernel trueKern
  7.     cat boot/bootsect kern/kernel /dev/zero     | dd of=floppyA.tmp bs=512 count=2880
  8.     cat floppyA.tmp truekern/kernel /dev/zero   | dd of=floppyA bs=512 count=43008
  9.     rm floppyA.tmp
  10.     cp floppyA /tmp/floppyA.img
  11.  
  12. bootsect:
  13.     make -C boot
  14.  
  15. kernel:
  16.     make -C kern
  17.  
  18. trueKern:
  19.     make -C truekern
  20.  
  21. clean:
  22.     rm -f $(OBJ) *.o
  23.     make -C boot clean
  24.     make -C kern clean
  25.     make -C truekern clean
  26.     rm /tmp/floppy*
Advertisement
Add Comment
Please, Sign In to add comment