]> git.mcshandy.xyz Git - assteroids/commitdiff
Gave up on windows make rule, do it yourself, asshole
authorrandy <randy@mcshandy.xyz>
Sun, 3 Apr 2022 20:53:15 +0000 (16:53 -0400)
committerrandy <randy@mcshandy.xyz>
Sun, 3 Apr 2022 20:53:15 +0000 (16:53 -0400)
Makefile

index de14bc89e78ab2b7b1258c4b942a0057387dcdfc..37baf83f7f5e587c43b0b72ebb0bac0603ff8c63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
 LIBS = -lraylib
-WINLIBS = -lraylib -lgdi32 -lwinmm
+WINLIBS = -lgdi32 -lwinmm
 
+# build in linux for linux
 game: game.cpp
-       $(CXX) -static game.cpp $(LIBS) -o assteroids
+       $(CXX) game.cpp $(LIBS) -o assteroids
 
+# build in windows for windows (raylib distros with mingw)
 win_game: game.cpp
-       $(CXX) -static game.cpp $(WINLIBS) -o assteroids.exe
+       $(CXX) game.cpp $(LIBS) $(WINLIBS) -o assteroids.exe