blob: 9d43054c290c30d3a61f027a026048e177c90068 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--- setup.orig Thu Mar 21 02:59:51 2002
+++ setup Sat Apr 20 10:15:01 2002
@@ -6,7 +6,7 @@
TDMPATH=""
MESAPATH=""
MESADEFAULT=1
-XLIBPATH="/usr/X11R6/lib"
+XLIBPATH="%%LOCALBASE%%/lib"
TR=0
TRINCL=""
TRLIBS=""
@@ -262,22 +262,22 @@
FreeBSD)
if [ $ECH = "1" ] ; then echo A FreeBSD box...; fi
- CC="gcc"
+ CC="%%CC%%"
DLLIBS=""
if [ "$DEBUG" = "1" ] ; then
OT="-Wall -ansi -g"
else
- OT="-Wall -ansi -O2 -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -march=`uname -m`"
+ OT="%%PTHREAD_CFLAGS%% -Wall -ansi -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -march=`uname -m`"
fi
OS="-DMAV_LINUX -DMAV_FREEBSD" # The Linux defs also work for FreeBSD with a few exceptions
- CFLAG=`echo $OS $OT`
- LD="ld -shared"
+ CFLAG=`echo $OS -fPIC %%CFLAGS%%`
+ LD="${CC} -shared %%PTHREAD_LIBS%%"
LEX="flex"
- YACC="bison -y"
- CXX="g++"
- CXXFLAG=`echo $OS $OT`
+ YACC="yacc"
+ CXX="%%CXX%%"
+ CXXFLAG=`echo $OS $OT %%CXXFLAGS%%`
if [ "$MESADEFAULT" = "1" ] ; then
- MESAPATH="/usr/X11R6"
+ MESAPATH="%%LOCALBASE%%"
fi
OPENGLINCL="-I${MESAPATH}/include"
OPENGLLIBS="-L${MESAPATH}/lib -lGL -lGLU -L${XLIBPATH} -lX11 -lXext"
@@ -437,18 +437,6 @@
fi
cat <<EOF >>Makefile
- "OPENGLINCL= ${OPENGLINCL}" \\
- "OPENGLLIBS= ${OPENGLLIBS}"
-EOF
-
-cat <<EOF >>Makefile
- make egs \\
- MAV_HOME=\`pwd\` \\
- "CC= ${CC} ${ABI} ${MIPS} ${OT}" \\
- "CXX= ${CXX} ${ABI} ${MIPS} ${OT}"
- make dems \\
- MAV_HOME=\`pwd\` \\
- "CC= ${CC} ${ABI} ${MIPS} ${OT}" \\
"OPENGLINCL= ${OPENGLINCL}" \\
"OPENGLLIBS= ${OPENGLLIBS}"
EOF
|