diff --git a/platforms/desktop-shared/Makefile.common b/platforms/desktop-shared/Makefile.common index 9fc973d2..8b3339bf 100644 --- a/platforms/desktop-shared/Makefile.common +++ b/platforms/desktop-shared/Makefile.common @@ -62,6 +62,9 @@ all: $(TARGET) $(TARGET): $(OBJECTS) $(CXX) -o $@ $(OBJECTS) $(LDFLAGS) +%.o: %.mm + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + %.o: %.cpp $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< diff --git a/platforms/desktop-shared/nfd/nfd_cocoa.cpp b/platforms/desktop-shared/nfd/nfd_cocoa.mm similarity index 100% rename from platforms/desktop-shared/nfd/nfd_cocoa.cpp rename to platforms/desktop-shared/nfd/nfd_cocoa.mm