diff --git a/Makefile.plugins.mk b/Makefile.plugins.mk index 7b9dae29..67f8f2d8 100644 --- a/Makefile.plugins.mk +++ b/Makefile.plugins.mk @@ -238,26 +238,36 @@ all: # --------------------------------------------------------------------------------------------------------------------- # Common -$(BUILD_DIR)/%.S.o: %.S +$(BUILD_DIR)/%.S.o: %.S $(EXTRA_LIBS) -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" @echo "Compiling $<" @$(CC) $< $(BUILD_C_FLAGS) -c -o $@ -$(BUILD_DIR)/%.c.o: %.c +$(BUILD_DIR)/%.c.o: %.c $(EXTRA_LIBS) -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" @echo "Compiling $<" $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@ -$(BUILD_DIR)/%.cc.o: %.cc +$(BUILD_DIR)/%.cc.o: %.cc $(EXTRA_LIBS) -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" @echo "Compiling $<" $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ -$(BUILD_DIR)/%.cpp.o: %.cpp +$(BUILD_DIR)/%.cpp.o: %.cpp $(EXTRA_LIBS) -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" @echo "Compiling $<" $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ +$(BUILD_DIR)/%.m.o: %.m $(EXTRA_LIBS) + -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" + @echo "Compiling $<" + $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -ObjC -c -o $@ + +$(BUILD_DIR)/%.mm.o: %.mm $(EXTRA_LIBS) + -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" + @echo "Compiling $<" + $(SILENT)$(CC) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ + clean: rm -rf $(BUILD_DIR) rm -rf $(TARGET_DIR)/$(NAME) $(TARGET_DIR)/$(NAME)-* $(TARGET_DIR)/$(NAME).lv2