diff options
| author | raysan5 <[email protected]> | 2020-09-18 20:48:25 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-18 20:48:25 +0200 |
| commit | 4a242c2889926126dda16c783ef0e08e60b8c938 (patch) | |
| tree | 55e589512fa53ce568f5024348ab18e883d55c35 /src | |
| parent | b5d50ee51afe7d30bbbcdd619534e9d4f432f4d3 (diff) | |
| download | raylib-4a242c2889926126dda16c783ef0e08e60b8c938.tar.gz raylib-4a242c2889926126dda16c783ef0e08e60b8c938.zip | |
Updated library build script for HTML5 (emscripten 2.0.4)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index aa7bea1f..ac881a8c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -239,6 +239,7 @@ endif ifeq ($(PLATFORM),PLATFORM_WEB) # HTML5 emscripten compiler CC = emcc + AR = emar endif ifeq ($(PLATFORM),PLATFORM_ANDROID) # Android toolchain (must be provided for desired architecture and compiler) @@ -466,9 +467,10 @@ all: raylib # NOTE: Release directory is created if not exist raylib: $(OBJS) ifeq ($(PLATFORM),PLATFORM_WEB) - # Compile raylib for web. - $(CC) -O1 $(OBJS) -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc - @echo "raylib library generated (lib$(RAYLIB_LIB_NAME).bc)!" + # Compile raylib libray for web + #$(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(OBJS) + $(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc + @echo "raylib library generated (lib$(RAYLIB_LIB_NAME).a)!" else ifeq ($(RAYLIB_LIBTYPE),SHARED) ifeq ($(PLATFORM),PLATFORM_DESKTOP) |
