diff options
| author | raysan5 <[email protected]> | 2019-03-17 12:21:51 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-03-17 12:21:51 +0100 |
| commit | 0bbf857b00ab111749aa7ae22d942108ef06455f (patch) | |
| tree | caed61bce732a9d2612f9e4a9d5d1cbf8cd68ec9 /src/Makefile | |
| parent | f02a0334d8f86277916c52b274a0c7c21b6b9cd0 (diff) | |
| download | raylib-0bbf857b00ab111749aa7ae22d942108ef06455f.tar.gz raylib-0bbf857b00ab111749aa7ae22d942108ef06455f.zip | |
Review build release path, default to src directory
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/src/Makefile b/src/Makefile index e483c64f..c579f9a7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -42,7 +42,7 @@ .PHONY: all clean install uninstall # Define required raylib variables -RAYLIB_VERSION = 2.0.0 +RAYLIB_VERSION = 2.4.0 RAYLIB_API_VERSION = 2 # See below for alternatives. @@ -180,34 +180,10 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID) endif endif -# RAYLIB_RELEASE_PATH points to library build path, right now +# Define output directory for compiled library, defaults to src directory +# NOTE: If externally provided, make sure directory exists RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src -# Define output directory for compiled library -ifeq ($(PLATFORM),PLATFORM_DESKTOP) - ifeq ($(PLATFORM_OS),WINDOWS) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)\mingw\i686-w64-mingw32\lib - endif - ifeq ($(PLATFORM_OS),LINUX) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src - endif - ifeq ($(PLATFORM_OS),OSX) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src - endif - ifeq ($(PLATFORM_OS),BSD) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src - endif -endif -ifeq ($(PLATFORM),PLATFORM_RPI) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src -endif -ifeq ($(PLATFORM),PLATFORM_WEB) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src -endif -ifeq ($(PLATFORM),PLATFORM_ANDROID) - RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/src/android/$(ANDROID_ARCH_NAME) -endif - # Define raylib graphics api depending on selected platform ifeq ($(PLATFORM),PLATFORM_DESKTOP) # By default use OpenGL 3.3 on desktop platforms @@ -444,11 +420,6 @@ ifeq ($(PLATFORM),PLATFORM_WEB) emcc -O1 $(OBJS) -o $(RAYLIB_RELEASE_PATH)/libraylib.bc @echo "raylib library generated (libraylib.bc)!" else - ifeq ($(PLATFORM_OS),WINDOWS) - if not exist $(RAYLIB_RELEASE_PATH) mkdir $(RAYLIB_RELEASE_PATH) - else - mkdir -p $(RAYLIB_RELEASE_PATH) - endif ifeq ($(RAYLIB_LIBTYPE),SHARED) ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),WINDOWS) |
