]> git.gag.com Git - fw/sdcc/blob - sim/ucsim/conf
New target "hc08" for the Motorola 68hc08 family of micros
[fw/sdcc] / sim / ucsim / conf
1 #!/bin/bash
2
3 TARGET=linux
4
5 if [ "$#" -ge 1 ]; then
6     case "$1" in
7         [lL]*) TARGET=linux;shift;;
8         [mM]*) TARGET=mingw;shift;;
9         *) echo "Unknown target \"${1}\"" >&2; exit 1;;
10     esac
11 fi
12
13 if [ -f devel ]; then
14         export CXXFLAGS=""
15 fi
16
17 case $TARGET in
18     linux)
19         ./configure --prefix=${HOME}/local \
20         --enable-ucsim \
21         --enable-dlso \
22         --enable-serio \
23         --enable-z80 \
24         --enable-xa \
25         "$@"
26         ;;
27     mingw)
28         export CC=/usr/local/cross-tools/mingw32/bin/gcc
29         export CXX=/usr/local/cross-tools/mingw32/bin/g++
30         ./configure --prefix=${HOME}/local \
31         --disable-ucsim \
32         --disable-dlso \
33         --disable-serio \
34         --enable-z80 \
35         --enable-xa \
36         "$@"
37         ;;
38 esac
39
40 # End of conf