aboutsummaryrefslogtreecommitdiff
path: root/templates/basic_test
diff options
context:
space:
mode:
authorConstantine Tarasenkov <iamvfx@gmail.com>2015-01-25 17:53:29 +0300
committerConstantine Tarasenkov <iamvfx@gmail.com>2015-01-25 17:53:29 +0300
commitb92c1bbbf770da306059578cedc310f6d1542efb (patch)
tree78bb780cbb2106624117ab3d50cc0a13ee2ae8ed /templates/basic_test
parentf5048742aa8f77c5caedc2e224b70ee7583d2881 (diff)
downloadraylib-b92c1bbbf770da306059578cedc310f6d1542efb.tar.gz
raylib-b92c1bbbf770da306059578cedc310f6d1542efb.zip
Fixes for makefiles, GLFW 3.1 library for Linux
Diffstat (limited to 'templates/basic_test')
-rw-r--r--templates/basic_test/makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/basic_test/makefile b/templates/basic_test/makefile
index 5752cba3..cf763628 100644
--- a/templates/basic_test/makefile
+++ b/templates/basic_test/makefile
@@ -115,20 +115,20 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),LINUX)
# 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
+ # libopenal-dev libglew-dev libegl1-mesa-dev
+ LIBS = -lraylib -lglfw3 -lGLEW -lGL -lopenal -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor -lm -pthread
+ else
ifeq ($(PLATFORM_OS),OSX)
# libraries for OS X 10.9 desktop compiling
- # requires the following packages:
- # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
- LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
-
+ # requires the following packages:
+ # libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
+ LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
else
# libraries for Windows desktop compiling
# 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
@@ -166,8 +166,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
rm -f *.o
else
ifeq ($(PLATFORM_OS),LINUX)
- find . -type f -executable -delete
- rm -f *.o
+ find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f
else
del *.o *.exe
endif