Skip to content

Add cross-platform support for Windows in Makefile#9

Open
korman wants to merge 1 commit intoconnor-brooks:masterfrom
korman:master
Open

Add cross-platform support for Windows in Makefile#9
korman wants to merge 1 commit intoconnor-brooks:masterfrom
korman:master

Conversation

@korman
Copy link
Copy Markdown

@korman korman commented Aug 4, 2025

  • Detect OS using uname -s to handle Windows (MinGW/MSYS2) specifically.
  • Use Windows-compatible libs: -lopengl32, -lglfw3, -lglew32.
  • Fall back to original libs (-lGL, -lglfw, -lGLEW) for Linux/Mac.
  • Tested on Windows 10 with MSYS2; builds and runs successfully without affecting other platforms.

- Detect OS using `uname -s` to handle Windows (MinGW/MSYS2) specifically.
- Use Windows-compatible libs: -lopengl32, -lglfw3, -lglew32.
- Fall back to original libs (-lGL, -lglfw, -lGLEW) for Linux/Mac.
- Tested on Windows 10 with MSYS2; builds and runs successfully without affecting other platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant