diff options
| author | LelixSuper <emanuele98@openmailbox.org> | 2016-03-12 19:08:54 +0100 |
|---|---|---|
| committer | LelixSuper <emanuele98@openmailbox.org> | 2016-03-12 19:08:54 +0100 |
| commit | ea8363a3b0c87629d027e4aad13654e5cf6b2fe9 (patch) | |
| tree | 06c61ca1405e9293004b2f8aef43aeb996014603 /templates/basic_game | |
| parent | c5931c75c64bfcc582ca7ed646ca5cdd0b876fbb (diff) | |
| download | raylib-ea8363a3b0c87629d027e4aad13654e5cf6b2fe9.tar.gz raylib-ea8363a3b0c87629d027e4aad13654e5cf6b2fe9.zip | |
Update "libraries" and "includes" section
I've cleaned the GNU/Linux compilation, now you can compile without useless parameters.
Diffstat (limited to 'templates/basic_game')
| -rw-r--r-- | templates/basic_game/makefile | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/templates/basic_game/makefile b/templates/basic_game/makefile index ccca5bd1..ea97d6b9 100644 --- a/templates/basic_game/makefile +++ b/templates/basic_game/makefile @@ -87,7 +87,7 @@ endif ifeq ($(PLATFORM),PLATFORM_DESKTOP) # add standard directories for GNU/Linux ifeq ($(PLATFORM_OS),LINUX) - INCLUDES = -I/usr/local/include/raylib/ + INCLUDES = -I. -I../src -I/usr/local/include/raylib/ else INCLUDES = -I. -I../../src -IC:/raylib/raylib/src # external libraries headers @@ -103,16 +103,22 @@ endif # define library paths containing required libs ifeq ($(PLATFORM),PLATFORM_RPI) LFLAGS = -L. -L../../src -L/opt/vc/lib -else - LFLAGS = -L. -L../../src -LC:/raylib/raylib/src - # external libraries to link with - # GLFW3 - LFLAGS += -L../../external/glfw3/lib/$(LIBPATH) - ifneq ($(PLATFORM_OS),OSX) - # OpenAL Soft - LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH) - # GLEW: Not used, replaced by GLAD - #LFLAGS += -L../../external/glew/lib/$(LIBPATH) +endif +ifeq ($(PLATFORM),PLATFORM_DESKTOP) + # add standard directories for GNU/Linux + ifeq ($(PLATFORM_OS),LINUX) + LFLAGS = -L. -L../../src + else + LFLAGS = -L. -L../../src -LC:/raylib/raylib/src + # external libraries to link with + # GLFW3 + LFLAGS += -L../../external/glfw3/lib/$(LIBPATH) + ifneq ($(PLATFORM_OS),OSX) + # OpenAL Soft + LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH) + # GLEW: Not used, replaced by GLAD + #LFLAGS += -L../../external/glew/lib/$(LIBPATH) + endif endif endif |
