File: sdcc_mingw32

package info (click to toggle)
sdcc 4.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 105,232 kB
  • sloc: ansic: 956,095; cpp: 110,511; makefile: 59,314; sh: 29,875; asm: 17,178; perl: 12,136; yacc: 7,480; lisp: 1,672; python: 907; lex: 805; awk: 498; sed: 89
file content (29 lines) | stat: -rwxr-xr-x 820 bytes parent folder | download | duplicates (7)
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
#!/bin/sh
# Script to crosscompile with mingw32
if [ $(expr $(hostname) : '.*\.') != '0' ]
then
  HOSTNAME=$(expr $(hostname) : '\([^.]*\).')
else
  HOSTNAME=$(hostname)
fi
TOOLSPREFIX=${HOME}/local-${HOSTNAME}/cross-tools/bin/i586-mingw32msvc-

export CC=${TOOLSPREFIX}gcc
export CXX=${TOOLSPREFIX}g++
export AR=${TOOLSPREFIX}ar
export RANLIB=${TOOLSPREFIX}ranlib
export STRIP=${TOOLSPREFIX}strip

export SDCCCONFIGUREFLAGS=" \
--prefix=/sdcc \
--datarootdir=/sdcc \
docdir=\${datarootdir}/doc \
include_dir_suffix=include \
non_free_include_dir_suffix=non-free/include \
lib_dir_suffix=lib \
non_free_lib_dir_suffix=non-free/lib \
sdccconf_h_dir_separator=\\\\ \
--disable-device-lib \
--host=i586-mingw32msvc --build=unknown-unknown-linux-gnu"

( ../sdcc/configure ${SDCCCONFIGUREFLAGS} && make ) 2>&1 | tee make.log