windows cross-compliation

This commit is contained in:
onezplpl 2024-07-14 19:27:52 -04:00
parent f27d19b6c8
commit 887dfbe5c4
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
4 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,6 @@
CC=gcc
make:
$(CC) -lm -lglfw -o ./monke *.c
gcc -lm -lglfw -o ./monke *.c
windows:
x86_64-w64-mingw32-gcc -lm -o ./monke.exe ./*.c ./libglfw3.a ./libwinpthread.a ./libopengl32.a ./libgdi32.a
clean:
rm ./*.o ./*.exe ./monke