Debian Codegraph @

docker/make_dasm_all_platforms.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # this script builds platform-specific dasm binaries for all three supported OSs (Linux, Windows and macOS)
3
4 cd ..
5 mkdirscip-shell system . . mkdir. -p bin/32bit
6 mkdirscip-shell system . . mkdir. -p bin/64bit
7 cd src
8
9 #step 1: build dasm for Linux 32-bit and 64-bit
10 makescip-shell system . . make.
11 cpscip-shell system . . cp. dasm ../bin/64bit/dasm.Linux
12 makescip-shell system . . make. clean
13 export CFLAGS=' -m32'
14 export LDFLAGS=' -m32 -L/usr/lib32'
15 makescip-shell system . . make.
16 cpscip-shell system . . cp. dasm ../bin/32bit/dasm.Linux
17 makescip-shell system . . make. clean
18 unset CFLAGS
19 unset LDFLAGS
20
21 #step 2: build dasm for Windows 32-bit and 64-bit
22 export CC=x86_64-w64-mingw32-gcc
23 #TODO: fix warnings when compiling for win64 using x86_64-w64-mingw32-gcc
24 # the compiler warnings have to do with default size of 'long' on windows
25 makescip-shell system . . make.
26 cpscip-shell system . . cp. dasm ../bin/64bit/dasm.exe
27 makescip-shell system . . make. clean
28 export CC=i686-w64-mingw32-gcc
29 export CFLAGS=' -m32'
30 export LDFLAGS=' -m32 -L/usr/lib32'
31 makescip-shell system . . make.
32 cpscip-shell system . . cp. dasm ../bin/32bit/dasm.exe
33 makescip-shell system . . make. clean
34 unset CC
35 unset CFLAGS
36 unset LDFLAGS
37
38 #step 3: build dasm for macOS 32-bit and 64-bit
39 export LD=$CC
40 export CC=i686-apple-darwin10-gcc
41 makescip-shell system . . make.
42 cpscip-shell system . . cp. dasm ../bin/64bit/dasm.macOS
43 makescip-shell system . . make. clean
44 export CFLAGS=' -m32 -arch i386 '
45 export LDFLAGS=' -m32 -L/usr/i686-apple-darwin10/lib -arch i386'
46 makescip-shell system . . make.
47 cpscip-shell system . . cp. dasm ../bin/32bit/dasm.macOS
48 makescip-shell system . . make. clean
49 unset LD
50 unset CC
51 unset CFLAGS
52 unset LDFLAGS