diff --git a/makefile b/makefile index 2f4e314..5f017cd 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,5 @@ sudokuloeser: sudokuloeser.c - gcc -Wall -pedantic -lrt sudokuloeser.c -o sudokuloeser + gcc -Wall -pedantic -O3 -lrt sudokuloeser.c -o sudokuloeser windows: sudokuloeser.c - i486-mingw32-gcc -Wall -pedantic sudokuloeser.c -o sudokuloeser.exe - -win: sudokuloeser.c - i586-mingw32msvc-gcc -Wall -pedantic sudokuloeser.c -o sudokuloeser.exe + sh -c '[ -x /usr/bin/i486-mingw32-gcc ] && i486-mingw32-gcc -Wall -pedantic sudokuloeser.c -o sudokuloeser.exe || [ -x /usr/bin/i586-mingw32msvc-gcc ] && i586-mingw32msvc-gcc -Wall -pedantic sudokuloeser.c -o sudokuloeser.exe || echo "Compiler not found"'