diff options
| author | raysan5 <raysan5@gmail.com> | 2017-12-28 17:58:09 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2017-12-28 17:58:09 +0100 |
| commit | c93bca8c272af83ae752afb46db2b54d85dca454 (patch) | |
| tree | 28d42d914e1d9da9f82da702e4005dbbb37babf6 /examples | |
| parent | 0bd06eec5100da648e1d3dc9bd0fd796b240e079 (diff) | |
| download | raylib-c93bca8c272af83ae752afb46db2b54d85dca454.tar.gz raylib-c93bca8c272af83ae752afb46db2b54d85dca454.zip | |
Review Makefile config flags
Support external GLFW usage
Renamed some flags for consistency
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile index fe3ff205..c9081b2e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -33,6 +33,9 @@ ifeq ($(PLATFORM),PLATFORM_RPI) RAYLIB_PATH ?= /home/pi/raylib endif +# Use external GLFW library instead of rglfw module +USE_EXTERNAL_GLFW ?= FALSE + # Library type used for raylib: STATIC (.a) or SHARED (.so/.dll) RAYLIB_LIBTYPE ?= STATIC @@ -235,6 +238,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # On XWindow requires also below libraries LDLIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor endif + ifeq ($(USE_EXTERNAL_GLFW),TRUE) + LDLIBS += -lglfw + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) # Libraries for Raspberry Pi compiling |
