Merge pull request #107 from LelixSuper/develop
Cleaning of Makefile files
This commit is contained in:
commit
37cc45a0a8
7 changed files with 14 additions and 172 deletions
|
@ -90,8 +90,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -113,30 +111,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -147,14 +121,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
|
@ -84,8 +84,6 @@ else
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../external/glfw3/include
|
INCLUDES += -I../external/glfw3/include
|
||||||
# GLEW
|
|
||||||
INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../external/openal_soft/include
|
INCLUDES += -I../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -167,7 +165,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
rm -f *.o libraylib.a
|
rm -f *.o libraylib.a
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
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
|
rm -f *.o libraylib.a
|
||||||
else
|
else
|
||||||
del *.o libraylib.a
|
del *.o libraylib.a
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -93,8 +93,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -116,30 +114,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -150,14 +124,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
|
@ -93,8 +93,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -116,30 +114,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -150,14 +124,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
|
@ -92,8 +92,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -115,30 +113,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -149,14 +123,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
|
@ -93,8 +93,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -116,30 +114,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -150,14 +124,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
|
@ -93,8 +93,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
# external libraries headers
|
# external libraries headers
|
||||||
# GLFW3
|
# GLFW3
|
||||||
INCLUDES += -I../../external/glfw3/include
|
INCLUDES += -I../../external/glfw3/include
|
||||||
# GLEW - Not required any more, replaced by GLAD
|
|
||||||
#INCLUDES += -I../external/glew/include
|
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
INCLUDES += -I../../external/openal_soft/include
|
INCLUDES += -I../../external/openal_soft/include
|
||||||
endif
|
endif
|
||||||
|
@ -116,30 +114,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifneq ($(PLATFORM_OS),OSX)
|
ifneq ($(PLATFORM_OS),OSX)
|
||||||
# OpenAL Soft
|
# OpenAL Soft
|
||||||
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
|
||||||
# GLEW: Not used, replaced by GLAD
|
|
||||||
#LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# define library paths containing required libs
|
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
|
||||||
LFLAGS = -L. -L../../src -L/opt/vc/lib
|
|
||||||
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
|
|
||||||
LFLAGS += -L../../external/glew/lib/$(LIBPATH)
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -150,14 +124,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||||
ifeq ($(PLATFORM_OS),LINUX)
|
ifeq ($(PLATFORM_OS),LINUX)
|
||||||
# libraries for Debian GNU/Linux desktop compiling
|
# libraries for Debian GNU/Linux desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 \
|
||||||
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
-lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM_OS),OSX)
|
ifeq ($(PLATFORM_OS),OSX)
|
||||||
# libraries for OS X 10.9 desktop compiling
|
# libraries for OS X 10.9 desktop compiling
|
||||||
# requires the following packages:
|
# requires the following packages:
|
||||||
# libglfw3-dev libopenal-dev libglew-dev libegl1-mesa-dev
|
# libglfw3-dev libopenal-dev libegl1-mesa-dev
|
||||||
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
|
||||||
else
|
else
|
||||||
# libraries for Windows desktop compiling
|
# libraries for Windows desktop compiling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue