aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-01-08 21:10:06 +0100
committerraysan5 <raysan5@gmail.com>2015-01-08 21:10:06 +0100
commitd739895e4a8602034d7a65a3be0c90163dabb817 (patch)
tree608e21363ecf36d6f520781df8d0f67b0c25e7a6 /src/makefile
parente37ef10595867e4f189fff0f87db5e6fdfcfc4d0 (diff)
downloadraylib-d739895e4a8602034d7a65a3be0c90163dabb817.tar.gz
raylib-d739895e4a8602034d7a65a3be0c90163dabb817.zip
Reorganized external folders by platform
Improved makefiles!
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/makefile b/src/makefile
index 8566abe4..a726b92e 100644
--- a/src/makefile
+++ b/src/makefile
@@ -25,18 +25,18 @@
# possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB
PLATFORM ?= PLATFORM_DESKTOP
-# determine SUBPLATFORM in case PLATFORM_DESKTOP selected
+# determine PLATFORM_OS in case PLATFORM_DESKTOP selected
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# No uname.exe on MinGW!, but OS=Windows_NT on Windows! ifeq ($(UNAME),Msys) -> Windows
ifeq ($(OS),Windows_NT)
- SUBPLATFORM=WINDOWS
+ PLATFORM_OS=WINDOWS
else
UNAMEOS:=$(shell uname)
ifeq ($(UNAMEOS),Linux)
- SUBPLATFORM=LINUX
+ PLATFORM_OS=LINUX
else
ifeq ($(UNAMEOS),Darwin)
- SUBPLATFORM=OSX
+ PLATFORM_OS=OSX
endif
endif
endif
@@ -82,7 +82,14 @@ endif
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
else
- INCLUDES = -I. -I../external/glfw3/include/ -I../external/openal_soft/include/
+ INCLUDES = -I. -I../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
# define all object files required
@@ -144,10 +151,10 @@ stb_vorbis.o: stb_vorbis.c
# clean everything
clean:
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
- ifeq ($(SUBPLATFORM),OSX)
+ ifeq ($(PLATFORM_OS),OSX)
rm -f *.o libraylib.a
else
- ifeq ($(SUBPLATFORM),LINUX)
+ ifeq ($(PLATFORM_OS),LINUX)
find . -type f -executable -delete
rm -f *.o libraylib.a
else