-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathbuild_jconsole.sh
More file actions
executable file
·41 lines (36 loc) · 953 Bytes
/
build_jconsole.sh
File metadata and controls
executable file
·41 lines (36 loc) · 953 Bytes
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
#!/bin/bash
# $1 is j32 or j64
common=" -fPIC -O1 -Wextra -Wno-unused-parameter "
case $jplatform\_$1 in
linux_j32)
COMPILE="$common -m32 -DREADLINE"
LINK=" -l:libedit.so.2 -m32 -ldl -o jconsole "
;;
linux_j64)
COMPILE="$common -DREADLINE"
LINK=" -ledit -ldl -o jconsole "
;;
raspberry_j32)
COMPILE="$common -marm -march=armv6 -mfloat-abi=hard -mfpu=vfp -DREADLINE -DRASPI"
LINK=" -ledit -ldl -o jconsole "
;;
raspberry_j64)
COMPILE="$common -march=armv8-a+crc -DREADLINE -DRASPI"
LINK=" -ledit -ldl -o jconsole "
;;
darwin_j32)
COMPILE="$common -m32 -DREADLINE -mmacosx-version-min=10.5"
LINK=" -ledit -ldl -lncurses -m32 -mmacosx-version-min=10.5 -o jconsole "
;;
darwin_j64)
COMPILE="$common -DREADLINE -mmacosx-version-min=10.5"
LINK=" -ledit -ldl -lncurses -mmacosx-version-min=10.5 -o jconsole "
;;
*)
echo no case for those parameters
exit
esac
OBJS="jconsole.o jeload.o "
TARGET=jconsole
export OBJS COMPILE LINK TARGET
$jmake/domake.sh $1