diff options
| author | Ray <raysan5@gmail.com> | 2016-11-24 16:12:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-24 16:12:07 +0100 |
| commit | 784aa1b6b520868f52ce28fcfd1a326f54cd3c19 (patch) | |
| tree | e0cd5d7ad356585d2c47ff4068e3689725e92a36 | |
| parent | 0925f4ec4db5cf280ab988d8559f07996c1b0e16 (diff) | |
| parent | fda91436b5749912548292842f7797d0dbb7bc55 (diff) | |
| download | raylib-784aa1b6b520868f52ce28fcfd1a326f54cd3c19.tar.gz raylib-784aa1b6b520868f52ce28fcfd1a326f54cd3c19.zip | |
Merge pull request #197 from xspager/develop
[games] Fix building the games on Linux by adding missing libs
| -rw-r--r-- | games/drturtle/makefile | 7 | ||||
| -rw-r--r-- | games/just_do/makefile | 7 | ||||
| -rw-r--r-- | games/raylib_demo/makefile | 2 | ||||
| -rw-r--r-- | games/skully_escape/makefile | 7 |
4 files changed, 16 insertions, 7 deletions
diff --git a/games/drturtle/makefile b/games/drturtle/makefile index f9efd3e8..0a45e18a 100644 --- a/games/drturtle/makefile +++ b/games/drturtle/makefile @@ -112,8 +112,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # libraries for Debian GNU/Linux desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev - LIBS = -lraylib -lglfw -lGLEW -lGL -lopenal - endif + LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread -ldl + # on XWindow could require also below libraries, just uncomment + #LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor + else ifeq ($(PLATFORM_OS),OSX) # libraries for OS X 10.9 desktop compiling # requires the following packages: @@ -124,6 +126,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # NOTE: GLFW3 and OpenAL Soft libraries should be installed LIBS = -lraylib -lglfw3 -lglew32 -lopengl32 -lopenal32 -lgdi32 endif + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) # libraries for Raspberry Pi compiling diff --git a/games/just_do/makefile b/games/just_do/makefile index 5cca9df5..1a971081 100644 --- a/games/just_do/makefile +++ b/games/just_do/makefile @@ -117,8 +117,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # libraries for Debian GNU/Linux desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev - LIBS = -lraylib -lglfw -lGLEW -lGL -lopenal - endif + LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread -ldl + # on XWindow could require also below libraries, just uncomment + #LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor + else ifeq ($(PLATFORM_OS),OSX) # libraries for OS X 10.9 desktop compiling # requires the following packages: @@ -129,6 +131,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # NOTE: GLFW3 and OpenAL Soft libraries should be installed LIBS = -lraylib -lglfw3 -lglew32 -lopengl32 -lopenal32 -lgdi32 endif + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) # libraries for Raspberry Pi compiling diff --git a/games/raylib_demo/makefile b/games/raylib_demo/makefile index a4435bb0..0c22261c 100644 --- a/games/raylib_demo/makefile +++ b/games/raylib_demo/makefile @@ -117,7 +117,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # libraries for Debian GNU/Linux desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev - LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread + LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread -ldl # on XWindow could require also below libraries, just uncomment #LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor else diff --git a/games/skully_escape/makefile b/games/skully_escape/makefile index d47760d3..967c3da7 100644 --- a/games/skully_escape/makefile +++ b/games/skully_escape/makefile @@ -114,8 +114,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # libraries for Debian GNU/Linux desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev - LIBS = -lraylib -lglfw -lGLEW -lGL -lopenal - endif + LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lm -pthread -ldl + # on XWindow could require also below libraries, just uncomment + #LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor + else ifeq ($(PLATFORM_OS),OSX) # libraries for OS X 10.9 desktop compiling # requires the following packages: @@ -126,6 +128,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # NOTE: GLFW3 and OpenAL Soft libraries should be installed LIBS = -lraylib -lglfw3 -lglew32 -lopengl32 -lopenal32 -lgdi32 endif + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) # libraries for Raspberry Pi compiling |
