Reviewed warning on shared library generation for web
This commit is contained in:
parent
322ba54c08
commit
87f17538d0
1 changed files with 3 additions and 3 deletions
|
@ -671,7 +671,7 @@ ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_R
|
||||||
# Compile raylib libray for web
|
# Compile raylib libray for web
|
||||||
#$(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc
|
#$(CC) $(OBJS) -r -o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc
|
||||||
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
||||||
@echo "Error: $(TARGET_PLATFORM) does not support SHARED libraries. Try RAYLIB_LIBTYPE=STATIC instead." && exit 1
|
@echo "WARNING: $(TARGET_PLATFORM) does not support SHARED libraries. Generating STATIC library."
|
||||||
endif
|
endif
|
||||||
$(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).web.a $(OBJS)
|
$(AR) rcs $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).web.a $(OBJS)
|
||||||
@echo "raylib library generated (lib$(RAYLIB_LIB_NAME).web.a)!"
|
@echo "raylib library generated (lib$(RAYLIB_LIB_NAME).web.a)!"
|
||||||
|
@ -831,7 +831,7 @@ ifeq ($(ROOT),root)
|
||||||
@echo "This function currently works on GNU/Linux systems. Add yours today (^;"
|
@echo "This function currently works on GNU/Linux systems. Add yours today (^;"
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
@echo "Error: Root permissions needed for installation. Try sudo make install" && exit 1
|
@echo "ERROR: Root permissions needed for installation. Try sudo make install" && exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Remove raylib dev files installed on the system
|
# Remove raylib dev files installed on the system
|
||||||
|
@ -858,7 +858,7 @@ ifeq ($(ROOT),root)
|
||||||
@echo "This function currently works on GNU/Linux systems. Add yours today (^;"
|
@echo "This function currently works on GNU/Linux systems. Add yours today (^;"
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
@echo "Error: Root permissions needed for uninstallation. Try sudo make uninstall" && exit 1
|
@echo "ERROR: Root permissions needed for uninstallation. Try sudo make uninstall" && exit 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: clean_shell_cmd clean_shell_sh
|
.PHONY: clean_shell_cmd clean_shell_sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue