aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)