diff --git a/toolchain/shader_compiler/makefile b/toolchain/shader_compiler/makefile index 65e8f33f..6c89ec11 100644 --- a/toolchain/shader_compiler/makefile +++ b/toolchain/shader_compiler/makefile @@ -38,6 +38,11 @@ ifneq (,$(findstring Linux,$(PLATFORM_DETECT))) PLATFORM := Linux endif +# FreeBSD +ifneq (,$(findstring FreeBSD,$(PLATFORM_DETECT))) + PLATFORM := FreeBSD +endif + #------------------------------------------- # Project Configuration #------------------------------------------- @@ -334,7 +339,7 @@ DELETE_UPACKED_OBJECTS: ifeq (Windows,$(PLATFORM)) $(RM) $(subst /,\ $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o)) endif -ifeq (Linux,$(PLATFORM)) +ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD)) $(RM) $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o) endif $(RM_DIR) $(UNPACKED_OBJECTS_DIR) @@ -366,7 +371,7 @@ ifeq (Windows,$(PLATFORM)) $(RM) $(subst /,\, $(wildcard $(UNPACKED_OBJECTS_DIR)/*.o)) $(RM_DIR) $(subst /,\, $(UNPACKED_OBJECTS_DIR)) endif -ifeq (Linux,$(PLATFORM)) +ifneq (,$(findstring $(PLATFORM),Linux-FreeBSD)) $(RM) $(OBJECTS) $(RM) $(__EXECUTABLE_NAME) $(RM) $(TARGET_STATIC_LIB)