Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

38 righe
1.0 KiB

  1. #! /bin/sh
  2. ## Kernel-mode libcaca compilation script -- Sam Hocevar <sam@zoy.org>
  3. ## $Id$
  4. set -x
  5. set -e
  6. CFLAGS="-fno-builtin -O2 -I. -I.. -I../caca/ -Wall"
  7. CPPFLAGS="-D__KERNEL__ -nostdinc -include kernel/kernel.h"
  8. LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
  9. ./configure --disable-slang --disable-ncurses --disable-win32 \
  10. --disable-conio --disable-x11 --disable-gl --disable-network \
  11. --enable-vga --disable-imlib2 --disable-doc \
  12. --host i386
  13. # We need this.
  14. make clean
  15. cd caca && make && cd ..
  16. cd src && make cacademo.o && cd ..
  17. cd kernel &&
  18. gcc $CFLAGS -c multiboot.S -o multiboot.o &&
  19. gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o &&
  20. cd ..
  21. gcc $LDFLAGS -o src/cacademo kernel/multiboot.o kernel/kernel.o src/cacademo.o caca/.libs/libcaca.a
  22. objcopy -O binary src/cacademo cacademo.boot
  23. # For further development: create floppy images using the kernel
  24. gcc -traditional -c -o bootsect.o kernel/bootsect.S
  25. ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacademo.img