diff options
| author | raysan5 <[email protected]> | 2020-09-18 20:53:57 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-18 20:53:57 +0200 |
| commit | 789c5fbdf92df93ade774c2d3132e5ae2a207713 (patch) | |
| tree | 6a4e796e72901d43f0fbaf86039892b2c064f2af /src/Makefile | |
| parent | 4a242c2889926126dda16c783ef0e08e60b8c938 (diff) | |
| download | raylib-789c5fbdf92df93ade774c2d3132e5ae2a207713.tar.gz raylib-789c5fbdf92df93ade774c2d3132e5ae2a207713.zip | |
Updated build script to generate .a on WebAssembly
This is the recommended way
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index ac881a8c..032f66c3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -468,8 +468,8 @@ all: raylib raylib: $(OBJS) ifeq ($(PLATFORM),PLATFORM_WEB) # 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 + #$(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc + $(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(OBJS) @echo "raylib library generated (lib$(RAYLIB_LIB_NAME).a)!" else ifeq ($(RAYLIB_LIBTYPE),SHARED) |
