Last active
December 13, 2015 17:39
-
-
Save starwing/4949819 to your computer and use it in GitHub Desktop.
Build freeglut with MinGW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rd /s /q obj 2>nul | |
@md obj | |
@cd obj | |
gcc -O2 -c -DFREEGLUT_EXPORTS ../src/*.c -I../include | |
gcc -mdll -o ../freeglut32.dll *.o^ | |
-Wl,--enable-stdcall-fixup,--out-implib,libfreeglut32.a^ | |
-lopengl32 -lgdi32 -lwinmm | |
gcc -O2 -c -DFREEGLUT_STATIC ../src/*.c -I../include | |
ar rcs ../libfreeglut32s.a *.o | |
@cd .. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment