source: libcaca/trunk/build-kernel @ 4149

Last change on this file since 4149 was 4148, checked in by Sam Hocevar, 10 years ago

Update my e-mail address everywhere.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.0 KB
RevLine 
[568]1#! /bin/sh
2
[4148]3##  Kernel-mode libcaca compilation script -- Sam Hocevar <sam@hocevar.net>
[573]4##  $Id: build-kernel 4148 2009-12-19 14:38:38Z sam $
[568]5
6set -x
7set -e
8
[2821]9CFLAGS="-fno-builtin -O2 -I. -I.. -I../caca/ -Wall"
[568]10CPPFLAGS="-D__KERNEL__ -nostdinc -include kernel/kernel.h"
11LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
12
13./configure --disable-slang --disable-ncurses --disable-win32 \
14            --disable-conio --disable-x11 --disable-gl --disable-network \
15            --enable-vga --disable-imlib2 --disable-doc \
16            --host i386
17
[573]18# We need this.
19make clean
[568]20
[573]21cd caca && make && cd ..
[568]22
[1055]23cd src && make cacademo.o && cd ..
[568]24
[573]25cd kernel &&
26    gcc $CFLAGS -c multiboot.S -o multiboot.o &&
27    gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o &&
28cd ..
29
[2821]30gcc $LDFLAGS -o src/cacademo kernel/multiboot.o kernel/kernel.o src/cacademo.o caca/.libs/libcaca.a
[568]31
[1055]32objcopy -O binary src/cacademo cacademo.boot
[568]33
[573]34# For further development: create floppy images using the kernel
[2054]35gcc -traditional -c -o bootsect.o kernel/bootsect.S
[1757]36ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacademo.img
[573]37
Note: See TracBrowser for help on using the repository browser.