Support VMS 5.5_2 mode page bits.
[SCSI2SD-V6.git] / software / build.sh
1 #!/bin/sh
2
3 case `uname -s` in
4 Linux)
5         # Builds all of the utilities (not firmware) under Linux.
6         # Requires mingw installed to cross-compile Windows targets.
7
8         (cd scsi2sd-util && ./build.sh)
9
10         if [ $? -eq 0 ]; then
11                 mkdir -p build/linux
12                 mkdir -p build/windows/64bit
13                 mkdir -p build/windows/32bit
14
15                 cp scsi2sd-util/build/linux/scsi2sd-util build/linux
16
17                 cp scsi2sd-util/build/windows/32bit/scsi2sd-util.exe build/windows/32bit
18
19                 cp scsi2sd-util/build/windows/64bit/scsi2sd-util.exe build/windows/64bit
20         fi
21 ;;
22
23 Darwin)
24         make -C scsi2sd-util
25
26         if [ $? -eq 0 ]; then
27                 mkdir -p build/mac
28
29                 cp scsi2sd-util/build/mac/scsi2sd-util build/mac
30         fi
31
32 esac