Last change
on this file since 568 was
568,
checked in by Sam Hocevar, 16 years ago
|
- Added glue code to compile libcaca without a libc and build applications
as multiboot kernels.
|
File size:
885 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | ## Kernel-mode libcaca compilation script -- Sam Hocevar <sam@zoy.org> |
---|
4 | ## $Id: build-dos 333 2006-03-07 12:39:34Z sam $ |
---|
5 | |
---|
6 | set -x |
---|
7 | set -e |
---|
8 | |
---|
9 | CFLAGS="-fno-builtin -O2 -I. -I.. -Wall" |
---|
10 | CPPFLAGS="-D__KERNEL__ -nostdinc -include kernel/kernel.h" |
---|
11 | LDFLAGS="-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 | (cd cucul && make) |
---|
19 | (cd caca && make) |
---|
20 | |
---|
21 | (cd src && make cacafire-aafire.o) |
---|
22 | |
---|
23 | (cd kernel && |
---|
24 | gcc $CFLAGS -c multiboot.S -o multiboot.o |
---|
25 | gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o) |
---|
26 | |
---|
27 | gcc $LDFLAGS -o src/cacafire kernel/multiboot.o kernel/kernel.o src/cacafire-aafire.o caca/.libs/libcaca.a cucul/.libs/libcucul.a |
---|
28 | |
---|
29 | objcopy -O binary src/cacafire cacafire.boot |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.