mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 18:59:18 -05:00
Review makefiles
This commit is contained in:
@ -94,7 +94,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
CFLAGS = -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -s USE_GLFW=3 -s ASSERTIONS=1 --profiling --preload-file resources -s ALLOW_MEMORY_GROWTH=1
|
CFLAGS = -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -s USE_GLFW=3 -s ASSERTIONS=1 --profiling --preload-file resources -s TOTAL_MEMORY=33554432
|
||||||
# -O2 # if used, also set --memory-init-file 0
|
# -O2 # if used, also set --memory-init-file 0
|
||||||
# --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
|
# --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
|
||||||
# -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
|
# -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
|
||||||
|
|||||||
@ -39,7 +39,7 @@ PLATFORM ?= PLATFORM_DESKTOP
|
|||||||
SHARED ?= NO
|
SHARED ?= NO
|
||||||
|
|
||||||
# define NO to use OpenAL Soft as static library (or shared by default)
|
# define NO to use OpenAL Soft as static library (or shared by default)
|
||||||
SHARED_OPENAL ?= YES
|
SHARED_OPENAL ?= NO
|
||||||
|
|
||||||
# on PLATFORM_WEB force OpenAL Soft shared library
|
# on PLATFORM_WEB force OpenAL Soft shared library
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
@ -304,7 +304,7 @@ else
|
|||||||
@echo "raylib shared library (libraylib.so) generated!"
|
@echo "raylib shared library (libraylib.so) generated!"
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
# compile raylib static library.
|
# compile raylib static library.
|
||||||
$(AR) rcs $(OUTPUT_PATH)/libraylib.a $(OBJS)
|
$(AR) rcs $(OUTPUT_PATH)/libraylib.a $(OBJS)
|
||||||
@echo "libraylib.a generated (static library)!"
|
@echo "libraylib.a generated (static library)!"
|
||||||
ifeq ($(SHARED_OPENAL),NO)
|
ifeq ($(SHARED_OPENAL),NO)
|
||||||
|
|||||||
Reference in New Issue
Block a user