| Revision 2821,
1.0 KB
checked in by sam, 5 years ago
(diff) |
|
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | #! /bin/sh |
|---|
| 2 | |
|---|
| 3 | ## Kernel-mode libcaca compilation script -- Sam Hocevar <sam@zoy.org> |
|---|
| 4 | ## $Id$ |
|---|
| 5 | |
|---|
| 6 | set -x |
|---|
| 7 | set -e |
|---|
| 8 | |
|---|
| 9 | CFLAGS="-fno-builtin -O2 -I. -I.. -I../caca/ -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 | # We need this. |
|---|
| 19 | make clean |
|---|
| 20 | |
|---|
| 21 | cd caca && make && cd .. |
|---|
| 22 | |
|---|
| 23 | cd src && make cacademo.o && cd .. |
|---|
| 24 | |
|---|
| 25 | cd kernel && |
|---|
| 26 | gcc $CFLAGS -c multiboot.S -o multiboot.o && |
|---|
| 27 | gcc $CFLAGS $CPPFLAGS -c kernel.c -o kernel.o && |
|---|
| 28 | cd .. |
|---|
| 29 | |
|---|
| 30 | gcc $LDFLAGS -o src/cacademo kernel/multiboot.o kernel/kernel.o src/cacademo.o caca/.libs/libcaca.a |
|---|
| 31 | |
|---|
| 32 | objcopy -O binary src/cacademo cacademo.boot |
|---|
| 33 | |
|---|
| 34 | # For further development: create floppy images using the kernel |
|---|
| 35 | gcc -traditional -c -o bootsect.o kernel/bootsect.S |
|---|
| 36 | ld -Ttext 0x0 -s --oformat binary bootsect.o -o cacademo.img |
|---|
| 37 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.