-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.bat
30 lines (29 loc) · 1.2 KB
/
build.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
@echo off
cls
set MinGW_DIR=C:\MinGW
echo ---------------------------------------------------------------
echo MinGW needs to be installed for running this program on Windows
echo ---------------------------------------------------------------
echo.
echo ---------------------------------------------------------------
echo Assuming MinGW installation folder: %MinGW_DIR%
echo ---------------------------------------------------------------
echo.
set PATH=%MinGW_DIR%\bin;%PATH%
cd Executables
echo ===========================================
echo Compiling sourcecode: Precalculate_Kernel.c
echo ===========================================
gcc -Ofast -march=native -std=c99 ../src/Precalculate_Kernel.c -o ./Precalculate_Kernel.exe
echo ======================
echo Precalculating kernels
echo ======================
Precalculate_Kernel.exe
echo ====================================================
echo Compiling sourcecode example: EfficientCalculation.c
echo ====================================================
gcc -Ofast -march=native -std=c99 ../src/EfficientCalculation.c -o ./EfficientCalculation.exe
echo ================
echo Runnning example
echo ================
EfficientCalculation.exe