-
Notifications
You must be signed in to change notification settings - Fork 3
/
wsc-ensbox-g++
executable file
·38 lines (25 loc) · 1.21 KB
/
wsc-ensbox-g++
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
#!/bin/bash
# This is not exactly portable.
# It just happens to work on the machines I have access to for cross-compilation.
echo Configuring to compile for arm-linux.
NSTARGATE_TOOLS_ROOT="/usr/arm-linux"
NSTARGATE_GCC_ROOT="$NSTARGATE_TOOLS_ROOT"
NSTARGATE_LINUX_ROOT="$NSTARGATE_TOOLS_ROOT/arm-linux"
GLIB_PATH="$NSTARGATE_LINUX_ROOT/lib/libglib-2.0.so"
#GLIB_CFLAGS=" -I$NSTARGATE_LINUX_ROOT/include/glib-2.0 -I$NSTARGATE_LINUX_ROOT/lib/glib-2.0/include "
EMLIB='/scratch/girod/emstar/obj.nims-stargate/lib'
ENSBOXLD=" \
$EMLIB/libensbox_ws.so $EMLIB/libemrun.so $EMLIB/liblink.so \
$EMLIB/libdev.so $EMLIB/libsync.so $EMLIB/libdev.so \
$EMLIB/libmisc.so $EMLIB/libfusd.so -lm -lasound $GLIB_PATH"
#CXX=$(NSTARGATE_GCC_ROOT)/bin/arm-linux-g++
#CXXFLAGS+= $(OPTS) -Wall -Werror -I$(EMSTAR_ROOT)/sensors/audiod/vxpc_server \
# -I./include -g -O2 -DENSBOX -DEMBEDDED -DARM -D$(STORAGEMGR) $(USEARRAY) $(GLIB_FLAGS)
#LDFLAGS+= -lrt
EXTRAFLAGS=" -I/usr/arm-linux/include -L/usr/arm-linux/lib -DENSBOX -DEMBEDDED -DARM $ENSBOXLD "
export PATH=$PATH:/usr/arm-linux/bin
export WSGPLUSPLUS="arm-linux-g++ $EXTRAFLAGS "
export WSEXESUFFIX="arm.exe"
export WSARCH=ensbox
# Now with the environment set.
wsc-g++ $*