aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-06-24 19:31:07 -0600
committerAlexander Pickering <alex@cogarr.net>2018-06-24 19:31:07 -0600
commit2260a1dda8693664c77a03781ae07fbb5f0ea8a0 (patch)
treee72545949e32021513900b17101dd0e2b770f5a9 /Makefile
parent443771b4e1e1fea9e5abb4dd9ee78c9163c2aec3 (diff)
downloadbrokengine-2260a1dda8693664c77a03781ae07fbb5f0ea8a0.tar.gz
brokengine-2260a1dda8693664c77a03781ae07fbb5f0ea8a0.tar.bz2
brokengine-2260a1dda8693664c77a03781ae07fbb5f0ea8a0.zip
Made makefile use system-dependent name for OpenGL
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 67df657..d308319 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,12 @@ DLLIRR=$(LIRRDIR)/Irrlicht.dll
DYNAMIC_LIBS = #-lnanomsg.dll #-lIrrlicht
#order matters!
-STATIC_LIBS = -lBulletDynamics -lBulletCollision -lLinearMath -lIrrlicht -lluajit -lOpenGL32 -lnanomsg
+STATIC_LIBS = -lBulletDynamics -lBulletCollision -lLinearMath -lIrrlicht -lluajit -lnanomsg
+ifeq ($(UNAME),Windows)
+ STATIC_LIBS+=-lOpenGL32
+else
+ DYNAMIC_LIBS+=-lGL
+endif
LIBS=-Bstatic $(STATIC_LIBS) -Bdynamic $(DYNAMIC_LIBS)
SLIBS=$(LIBLUA) $(LIBIRR) $(LIBBDY) $(LIBBCO) $(LIBBLM) $(LIBNAN)