source: libcaca/trunk/build-kernel @ 575

Last change on this file since 575 was 575, checked in by Jean-Yves Lamoureux, 14 years ago
  • Multiplexed sockets, it is now possible to have multiple clients at the same time watching for the same libcaca application. And no fork or threads involved. THAT'S high technology.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1#! /bin/sh
2
3##  Kernel-mode libcaca compilation script -- Sam Hocevar <sam@zoy.org>
4##  $Id: build-kernel 575 2006-03-09 19:27:14Z jylam $
5
6set -x
7set -e
8
9CFLAGS="-fno-builtin -O2 -I. -I.. -Wall"
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
18# We need this.
19make clean
20
21cd cucul && make && cd ..
22cd caca && make && cd ..
23
24cd src && make cacafire-aafire.o && cd ..
25
26cd kernel &&
27    gcc $CFLAGS -c multiboot.S -o multiboot.o &&
28    gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o &&
29cd ..
30
31gcc $LDFLAGS -o src/cacafire kernel/multiboot.o kernel/kernel.o src/cacafire-aafire.o caca/.libs/libcaca.a cucul/.libs/libcucul.a
32
33objcopy -O binary src/cacafire cacafire.boot
34
35# For further development: create floppy images using the kernel
36gcc -traditional -c -o bootsect.o /usr/src/linux/arch/i386/boot/bootsect.S
37ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacafire.img
38
Note: See TracBrowser for help on using the repository browser.