diff options
| author | Ray San <raysan5@gmail.com> | 2017-12-15 17:02:29 +0100 |
|---|---|---|
| committer | Ray San <raysan5@gmail.com> | 2017-12-15 17:02:29 +0100 |
| commit | b155333178247d917e99e806cdcb27e9ab2d5c3c (patch) | |
| tree | e37c9c66cf0504ed4073c6874975567e41096aaa /src | |
| parent | e17a9a82169935ea2d1eeb98425e608daf98b7f1 (diff) | |
| download | raylib-b155333178247d917e99e806cdcb27e9ab2d5c3c.tar.gz raylib-b155333178247d917e99e806cdcb27e9ab2d5c3c.zip | |
Support audio module skip on compiling
Some programs like tools could not require audio support
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index b9c21929..00f5fa2f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,6 +47,10 @@ API_VERSION = 1 PLATFORM ?= PLATFORM_DESKTOP RAYLIB_PATH = .. +# Included raylib audio module on compilation +# NOTE: Some programs like tools could not require audio support +INCLUDE_AUDIO_MODULE ?= YES + # Library type used for raylib: STATIC (.a) or SHARED (.so/.dll) RAYLIB_LIBTYPE ?= STATIC @@ -317,15 +321,18 @@ OBJS = core.o \ textures.o \ text.o \ models.o \ - audio.o \ - mini_al.o \ - stb_vorbis.o \ utils.o ifeq ($(PLATFORM),PLATFORM_DESKTOP) OBJS += rglfw.o endif +ifeq ($(INCLUDE_AUDIO_MODULE),YES) + OBJS += audio.o + OBJS += mini_al.o + OBJS += stb_vorbis.o +endif + # Default target entry all: raylib |
