diff options
| author | raysan5 <[email protected]> | 2019-03-16 13:02:16 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-03-16 13:02:16 +0100 |
| commit | 2a92d6af3e63fcc47d1030c1274223afb4163a4b (patch) | |
| tree | 3eb48f193dabfdc5338073f200c23247650be97e /src/Makefile | |
| parent | a61d3ad5122e860e21211c8bacd30f560d71f3da (diff) | |
| download | raylib-2a92d6af3e63fcc47d1030c1274223afb4163a4b.tar.gz raylib-2a92d6af3e63fcc47d1030c1274223afb4163a4b.zip | |
Support no-audio no-models modules compilation
Renamed flags for convenience.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile index 4fbe1668..e483c64f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -59,9 +59,10 @@ RAYLIB_LIBTYPE ?= STATIC # Build mode for library: DEBUG or RELEASE RAYLIB_BUILD_MODE ?= RELEASE -# Included raylib audio module on compilation -# NOTE: Some programs like tools could not require audio support -INCLUDE_AUDIO_MODULE ?= TRUE +# Include raylib modules on compilation +# NOTE: Some programs like tools could not require those modules +RAYLIB_MODULE_AUDIO ?= TRUE +RAYLIB_MODULE_MODELS ?= TRUE # Use external GLFW library instead of rglfw module # TODO: Review usage of examples on Linux. @@ -393,7 +394,6 @@ OBJS = core.o \ shapes.o \ textures.o \ text.o \ - models.o \ utils.o ifeq ($(PLATFORM),PLATFORM_DESKTOP) @@ -401,8 +401,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) OBJS += rglfw.o endif endif - -ifeq ($(INCLUDE_AUDIO_MODULE),TRUE) +ifeq ($(RAYLIB_MODULE_MODELS),TRUE) + OBJS += models.o +endif +ifeq ($(RAYLIB_MODULE_AUDIO),TRUE) OBJS += raudio.o endif |
