diff --git a/build.bat b/build.bat index efa8428..1497d9f 100644 --- a/build.bat +++ b/build.bat @@ -1,8 +1,7 @@ @echo off -if exist build ( - rmdir /s /q build +if not exist build ( + mkdir build ) -mkdir build pushd build diff --git a/build.sh b/build.sh index 4e8e539..fd37893 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,5 @@ #!/bin/sh -if [ -d build ]; then - rm -r build -fi - CC=x86_64-w64-mingw32-gcc CFLAGS="-g -O0 -std=c11 --static -D_CRT_SECURE_NO_WARNINGS -Wextra -Wno-sign-compare -Wno-unused-parameter diff --git a/build_dissassembly.bat b/build_dissassembly.bat deleted file mode 100644 index e0c9f47..0000000 --- a/build_dissassembly.bat +++ /dev/null @@ -1,18 +0,0 @@ - -@echo off -if exist build/dissassembly ( - rmdir /s /q build -) -if not exist build ( - mkdir build -) - -pushd build - -mkdir dissassembly -pushd dissassembly - -clang -o cgame.asm ../../build.c -Ofast -std=c11 -D_CRT_SECURE_NO_WARNINGS -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -Wno-deprecated-declarations -finline-functions -ffast-math -fno-math-errno -funsafe-math-optimizations -freciprocal-math -ffinite-math-only -fassociative-math -fno-signed-zeros -fno-trapping-math -ftree-vectorize -fomit-frame-pointer -funroll-loops -fno-rtti -fno-exceptions -S -masm=intel - -popd -popd \ No newline at end of file diff --git a/build_release.bat b/build_release.bat index 06d5bc2..ef6f8d9 100644 --- a/build_release.bat +++ b/build_release.bat @@ -1,15 +1,16 @@ @echo off -if exist build ( - rmdir /s /q build +if not exist build ( + mkdir build ) -mkdir build +if not exist "build\release" ( + mkdir build\release +) + pushd build - -mkdir release pushd release -clang -o cgame.exe ../../build.c -Ofast -DNDEBUG -std=c11 -D_CRT_SECURE_NO_WARNINGS -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -Wno-deprecated-declarations -lkernel32 -lgdi32 -luser32 -lruntimeobject -lwinmm -ld3d11 -ldxguid -ld3dcompiler -lshlwapi -lole32 -lavrt -lksuser -finline-functions -finline-hint-functions -ffast-math -fno-math-errno -funsafe-math-optimizations -freciprocal-math -ffinite-math-only -fassociative-math -fno-signed-zeros -fno-trapping-math -ftree-vectorize -fomit-frame-pointer -funroll-loops -fno-rtti -fno-exceptions +clang -o cgame.exe ../../build.c -Ofast -DNDEBUG -std=c11 -D_CRT_SECURE_NO_WARNINGS -Wextra -Wno-incompatible-library-redeclaration -Wno-sign-compare -Wno-unused-parameter -Wno-builtin-requires-header -Wno-deprecated-declarations -lkernel32 -lgdi32 -luser32 -lruntimeobject -lwinmm -ld3d11 -ldxguid -ld3dcompiler -lshlwapi -lole32 -lshcore -lavrt -lksuser -finline-functions -finline-hint-functions -ffast-math -fno-math-errno -funsafe-math-optimizations -freciprocal-math -ffinite-math-only -fassociative-math -fno-signed-zeros -fno-trapping-math -ftree-vectorize -fomit-frame-pointer -funroll-loops -fno-rtti -fno-exceptions popd popd \ No newline at end of file