From 6e2587e8ee0f44920d889fc6f543ec05dad22a00 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 26 May 2023 16:48:16 +0200 Subject: [PATCH] Fix macOS water build without mm files Signed-off-by: falkTX --- source/modules/water/Makefile | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/source/modules/water/Makefile b/source/modules/water/Makefile index 4402a9c9f..78c39c3c2 100644 --- a/source/modules/water/Makefile +++ b/source/modules/water/Makefile @@ -20,18 +20,11 @@ endif # --------------------------------------------------------------------------------------------------------------------- -ifeq ($(MACOS),true) -OBJS = $(OBJDIR)/$(MODULENAME).mm.o -OBJS_files = $(OBJDIR)/$(MODULENAME).mm.files.o -OBJS_posix32 = $(OBJDIR)/$(MODULENAME).mm.posix32.o -OBJS_posix64 = $(OBJDIR)/$(MODULENAME).mm.posix64.o -else OBJS = $(OBJDIR)/$(MODULENAME).cpp.o OBJS_files = $(OBJDIR)/$(MODULENAME).cpp.files.o OBJS_arm32 = $(OBJDIR)/$(MODULENAME).cpp.arm32.o OBJS_posix32 = $(OBJDIR)/$(MODULENAME).cpp.posix32.o OBJS_posix64 = $(OBJDIR)/$(MODULENAME).cpp.posix64.o -endif OBJS_win32 = $(OBJDIR)/$(MODULENAME).cpp.win32.o OBJS_win64 = $(OBJDIR)/$(MODULENAME).cpp.win64.o @@ -124,27 +117,12 @@ $(OBJDIR)/$(MODULENAME).cpp.arm32.o: $(MODULENAME).cpp @echo "Compiling $< (ARM32)" $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@ -# --------------------------------------------------------------------------------------------------------------------- - -$(OBJDIR)/$(MODULENAME).mm.o: $(MODULENAME).mm $(MODULENAME).cpp - -@mkdir -p $(OBJDIR) - @echo "Compiling $<" - $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ - -$(OBJDIR)/$(MODULENAME).mm.files.o: $(MODULENAME).files.cpp - -@mkdir -p $(OBJDIR) - @echo "Compiling $<" - $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ - -$(OBJDIR)/$(MODULENAME).mm.%32.o: $(MODULENAME).cpp - -@mkdir -p $(OBJDIR) - @echo "Compiling $< (32bit)" - $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@ - -$(OBJDIR)/$(MODULENAME).mm.%64.o: $(MODULENAME).cpp - -@mkdir -p $(OBJDIR) - @echo "Compiling $< (64bit)" - $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@ +ifeq ($(MACOS),true) +$(OBJDIR)/$(MODULENAME).cpp.o: BUILD_CXX_FLAGS += -ObjC++ +$(OBJDIR)/$(MODULENAME).cpp.files.o: BUILD_CXX_FLAGS += -ObjC++ +$(OBJDIR)/$(MODULENAME).cpp.%32.o: BUILD_CXX_FLAGS += -ObjC++ +$(OBJDIR)/$(MODULENAME).cpp.%64.o: BUILD_CXX_FLAGS += -ObjC++ +endif # ---------------------------------------------------------------------------------------------------------------------