diff options
| author | LelixSuper <emanuele98@openmailbox.org> | 2016-03-12 18:49:28 +0100 |
|---|---|---|
| committer | LelixSuper <emanuele98@openmailbox.org> | 2016-03-12 18:49:28 +0100 |
| commit | c5931c75c64bfcc582ca7ed646ca5cdd0b876fbb (patch) | |
| tree | c83450b9e13a92f367d6219b29a208722f57f5ab /templates/basic_game | |
| parent | d07e4f44f18887a54a25748ce7f5b9e6cf310b22 (diff) | |
| download | raylib-c5931c75c64bfcc582ca7ed646ca5cdd0b876fbb.tar.gz raylib-c5931c75c64bfcc582ca7ed646ca5cdd0b876fbb.zip | |
Update GNU/Linux compilation
If you have raylib on standard directories ("/usr/local/include/raylib/raylib.h" for the header and "/usr/local/lib/libraylib.a" for raylib library) you can compile without edit the makefile.
Diffstat (limited to 'templates/basic_game')
| -rw-r--r-- | templates/basic_game/makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/templates/basic_game/makefile b/templates/basic_game/makefile index 41d9379e..ccca5bd1 100644 --- a/templates/basic_game/makefile +++ b/templates/basic_game/makefile @@ -83,15 +83,21 @@ endif # define any directories containing required header files ifeq ($(PLATFORM),PLATFORM_RPI) INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -else - INCLUDES = -I. -I../../src -IC:/raylib/raylib/src -# external libraries headers -# GLFW3 - INCLUDES += -I../../external/glfw3/include -# GLEW - INCLUDES += -I../../external/glew/include -# OpenAL Soft - INCLUDES += -I../../external/openal_soft/include +endif +ifeq ($(PLATFORM),PLATFORM_DESKTOP) + # add standard directories for GNU/Linux + ifeq ($(PLATFORM_OS),LINUX) + INCLUDES = -I/usr/local/include/raylib/ + else + INCLUDES = -I. -I../../src -IC:/raylib/raylib/src + # external libraries headers + # GLFW3 + INCLUDES += -I../../external/glfw3/include + # GLEW - Not required any more, replaced by GLAD + #INCLUDES += -I../external/glew/include + # OpenAL Soft + INCLUDES += -I../../external/openal_soft/include + endif endif # define library paths containing required libs |
