blob: cfc5e16c80a68eeac00c8b597faf391d23c8e52b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
message "${MESSAGE_COLOR}If this fails, disable kernel module versioning{$DEFAULT_COLOR}" &&
# First build static
make_single &&
make static &&
# Have to remove for shared to build ...
rm -f src/svgalib_helper.h &&
# Then build shared ...
make shared &&
# Missing in some cases ...
#ln -s libvga.so.${VERSION} sharedlib/libvga.so &&
# Build lrmi and tools ...
make LDFLAGS="-L../sharedlib" textutils lrmi utils &&
# Build the gl stuff too
make -C gl &&
make -C gl libvgagl.so.${VERSION} &&
# Missing in some cases ...
#ln -s libvgagl.so.${VERSION} sharedlib/libvgagl.so &&
rm -f src/svgalib_helper.h &&
make -C src libvga.so.${VERSION} &&
cp -a src/libvga.so.${VERSION} sharedlib/ &&
# Build threeDKit ...
make LDFLAGS='-L../sharedlib' -C threeDKit lib3dkit.a &&
# Build demo's ...
make CFLAGS="${CFLAGS} -I../gl -I../include" demoprogs \
LDFLAGS='-L../sharedlib' &&
cd kernel/svgalib_helper &&
local V=$(get_kernel_version)
if [[ "${V:0:3}" == "2.6" ]]; then
message "${MESSAGE_COLOR}Building for 2.6...${DEFAULT_COLOR}" &&
make
else
message "${MESSAGE_COLOR}Building for 2.4...${DEFAULT_COLOR}" &&
env -u ARCH \
make -f Makefile.alt INCLUDEDIR="/usr/src/linux/include" \
clean all
fi &&
cd - &&
sedit 's/\(install: $(INSTALLAOUTLIB) \)installheaders \(.*\)/\1\2/g' \
Makefile
|