summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-29 20:43:52 +0100
committerRay <[email protected]>2023-10-29 20:43:52 +0100
commit601e391b068c9bc043b801486e02586012d58f20 (patch)
treea49ba6650822129c545b3464b4699ff69c15efcb /src/Makefile
parent21243c82344a132c23fc7fe24094a2f4933ab92a (diff)
downloadraylib-601e391b068c9bc043b801486e02586012d58f20.tar.gz
raylib-601e391b068c9bc043b801486e02586012d58f20.zip
Remove physac library from raylib building
At this moment, physac is an external unmaintained library, better move out of raylib.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/Makefile b/src/Makefile
index c9094f09..d5726f5e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -78,13 +78,10 @@ RAYLIB_CONFIG_FLAGS ?= NONE
RAYLIB_MODULE_AUDIO ?= TRUE
RAYLIB_MODULE_MODELS ?= TRUE
RAYLIB_MODULE_RAYGUI ?= FALSE
-RAYLIB_MODULE_PHYSAC ?= FALSE
# NOTE: Additional libraries have been moved to their own repos:
# raygui: https://github.com/raysan5/raygui
-# physac: https://github.com/raysan5/physac
RAYLIB_MODULE_RAYGUI_PATH ?= $(RAYLIB_SRC_PATH)/../../raygui/src
-RAYLIB_MODULE_PHYSAC_PATH ?= $(RAYLIB_SRC_PATH)/../../physac/src
# Use external GLFW library instead of rglfw module
USE_EXTERNAL_GLFW ?= FALSE
@@ -553,9 +550,6 @@ endif
ifeq ($(RAYLIB_MODULE_RAYGUI),TRUE)
OBJS += raygui.o
endif
-ifeq ($(RAYLIB_MODULE_PHYSAC),TRUE)
- OBJS += physac.o
-endif
ifeq ($(PLATFORM),PLATFORM_ANDROID)
OBJS += android_native_app_glue.o
@@ -680,23 +674,10 @@ else
@echo "#include \"$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h\"" >> raygui.c
endif
-# Compile physac module
-# NOTE: physac header should be distributed with raylib.h
-physac.o : physac.c
- $(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
-physac.c:
-ifeq ($(PLATFORM_SHELL), cmd)
- @echo #define PHYSAC_IMPLEMENTATION > physac.c
- @echo #include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h" >> physac.c
-else
- @echo "#define PHYSAC_IMPLEMENTATION" > physac.c
- @echo "#include \"$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h\"" >> physac.c
-endif
# Compile android_native_app_glue module
android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
-
# Install generated and needed files to desired directories.
# On GNU/Linux and BSDs, there are some standard directories that contain extra
# libraries and header files. These directories (often /usr/local/lib and
@@ -780,7 +761,7 @@ clean: clean_shell_$(PLATFORM_SHELL)
@echo "removed all generated files!"
clean_shell_sh:
- rm -fv *.o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).so* raygui.c physac.c
+ rm -fv *.o $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).a $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).bc $(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME).so* raygui.c
ifeq ($(PLATFORM),PLATFORM_ANDROID)
rm -fv $(NATIVE_APP_GLUE)/android_native_app_glue.o
endif
@@ -794,4 +775,3 @@ clean_shell_cmd:
del lib$(RAYLIB_LIB_NAME)dll.a /s & \
del $(RAYLIB_LIB_NAME).dll /s & \
del raygui.c /s & \
- del physac.c /s