25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

39 satır
1.1 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.. -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 cucul && make && cd ..
  16. cd caca && make && cd ..
  17. cd src && make cacademo.o && cd ..
  18. cd kernel &&
  19. gcc $CFLAGS -c multiboot.S -o multiboot.o &&
  20. gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o &&
  21. cd ..
  22. gcc $LDFLAGS -o src/cacademo kernel/multiboot.o kernel/kernel.o src/cacademo.o caca/.libs/libcaca.a cucul/.libs/libcucul.a
  23. objcopy -O binary src/cacademo cacademo.boot
  24. # For further development: create floppy images using the kernel
  25. #gcc -traditional -c -o bootsect.o /usr/src/linux/arch/i386/boot/bootsect.S
  26. #ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacademo.img