-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathmake_seaseis_win64.bat
executable file
·63 lines (51 loc) · 1.89 KB
/
make_seaseis_win64.bat
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
echo off
rem -------------------------------------------------------
rem SEASEIS make utility
rem Windows 64bit version, compiled on Windows system
rem
rem NOTES
rem This make utility works with the MinGW cross-compiler, installed on a Windows system.
rem MinGW is available at http://mingw-w64.sourceforge.net/
rem
rem USAGE
rem (1) Build Windows 64bit version using make_seaseis_win64.bat
rem (2) Add 'bin' directory to binary PATH
rem
set SRCDIR=.\src
set JAVADIR=.\java
set CSEISDIR=.\..
set WIN_LIBDIR=win\win64
set CPP=g++.exe
set CC=gcc.exe
set LD=g++.exe
set F77=gfortran.exe
rem set CPP=x86_64-w64-mingw32-g++.exe
rem set CC=x86_64-w64-mingw32-gcc.exe
rem set LD=x86_64-w64-mingw32-g++.exe
rem set F77=x86_64-w64-mingw32-gfortran.exe
set MAKE=mingw32-make
set BINDIR=%CSEISDIR%\bin
set LIBDIR=%BINDIR%
set OBJDIR=%CSEISDIR%\obj
set GLOBAL_FLAGS=-fexpensive-optimizations -O3 -Wno-long-long -Wall -pedantic
set F77_FLAGS=-ffixed-line-length-132 -O3 -fexpensive-optimizations
set COMMON_FLAGS=%GLOBAL_FLAGS% -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
set RM="del /F"
set COPY=copy
rem -------------------------------------------------------------------
rem Check if output directories exist or not. If not create them
if not exist %OBJDIR% ( mkdir %OBJDIR% )
if not exist %BINDIR% ( mkdir %BINDIR% )
if not exist %BINDIR%\include ( mkdir %BINDIR%\include )
rem -------------------------------------------------------------------
rem Build CSEIS
echo "Start building CSEIS..."
if exist %BINDIR%\seaseis.exe ( del %BINDIR%\seaseis.exe )
%MAKE% -f %SRCDIR%\make\win\Makefile_build
%MAKE% -f %SRCDIR%\make\win\Makefile_all
%MAKE% -f %SRCDIR%\make\win\Makefile_seaview
copy %JAVADIR%\jar\CSeisLib.jar %BINDIR%
copy %JAVADIR%\jar\SeaView.jar %BINDIR%
copy %JAVADIR%\bin\seaview.bat %BINDIR%
copy %JAVADIR%\bin\plotimage.bat %BINDIR%
echo "End..."