forked from schnaader/fairytale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
43 lines (34 loc) · 1.02 KB
/
make.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
@echo off
REM Usage:
REM "make" for a 64-bit compile
REM "make 32" for a 32-bit compile
REM g++ 32-bit/64-bit commands - change them according to your environment
set GPP32=g++
set GPP64=x86_64-w64-mingw32-g++
set GCC=%GCC64%
set GPP=%GPP64%
set MPARAM=-march=x86-64 -m64
set DBIT=
:parse
if "%1"=="" goto endparse
if "%1"=="32" (
set GPP=%GPP32%
set MPARAM=-march=pentiumpro
set DBIT=-DBIT32
)
:endparse
set PARSERSCPP=parsers\ddsparser.cpp parsers\modparser.cpp parsers\textparser.cpp
set TRANSFORMSCPP=transforms\zlibtransform.cpp
set MAINCPP=analyser.cpp block.cpp deduper.cpp filestream.cpp hybridstream.cpp storagemanager.cpp
%GPP% %MPARAM% %DBIT% -O2 -std=c++11 -fomit-frame-pointer -s -static -static-libgcc -static-libstdc++ -Wall %TRANSFORMSCPP% %PARSERSCPP% %MAINCPP% -lz fairytale.cpp -ofairytale.exe
if not %ERRORLEVEL% == 0 echo ERROR!!!
if %ERRORLEVEL% == 0 echo.
if %ERRORLEVEL% == 0 echo Build successful.
set PARSERSCPP=
set TRANSFORMSCPP=
set MAINCPP=
set CPPFILES=
set GPP32=
set GPP64=
set MPARAM=
set DBIT=