<commit_before>##################################################
# PROJECT: DynamixelSDK - ROBOTIS CO., Ltd.
##################################################

#---------------------------------------------------------------------
# C++ COMPILER, COMPILER FLAGS, AND TARGET PROGRAM NAME
#---------------------------------------------------------------------
DIR_DXL     = ../..
DIR_OBJS    = ./.objects

INSTALL_ROOT = /usr/local

MAJ_VERSION = 2
MIN_VERSION = 0
REV_VERSION = 0

TARGET      = libdxl_mac_cpp.so
TARGET1     = $(TARGET).$(MAJ_VERSION)
TARGET2     = $(TARGET).$(MAJ_VERSION).$(MIN_VERSION)
TARGET3     = $(TARGET).$(MAJ_VERSION).$(MIN_VERSION).$(REV_VERSION)

CHK_DIR_EXISTS = test -d
PRINT       = echo
STRIP       = strip
AR          = ar
ARFLAGS     = cr
LD          = g++
LDFLAGS     = -shared -fPIC $(FORMAT)#-Wl,-soname,dxl
LD_CONFIG   = ldconfig
CP          = cp
CP_ALL      = cp -r
RM          = rm
RM_ALL      = rm -rf
SYMLINK     = ln -s
MKDIR       = mkdir
CC          = gcc
CX          = g++
CCFLAGS     = -O2 -O3 -D_GNU_SOURCE -Wall -c $(INCLUDES) $(FORMAT) -fPIC -g
CXFLAGS     = -O2 -O3 -D_GNU_SOURCE -Wall -c $(INCLUDES) $(FORMAT) -fPIC -g
INCLUDES    += -I$(DIR_DXL)/include/dynamixel_sdk

#---------------------------------------------------------------------
# Required external libraries
#---------------------------------------------------------------------
LIBRARIES  += -lrt

#---------------------------------------------------------------------
# SDK Files
#---------------------------------------------------------------------
SOURCES  = src/dynamixel_sdk/group_bulk_read.cpp \
           src/dynamixel_sdk/group_bulk_write.cpp \
           src/dynamixel_sdk/group_sync_read.cpp \
           src/dynamixel_sdk/group_sync_write.cpp \
           src/dynamixel_sdk/packet_handler.cpp \
           src/dynamixel_sdk/port_handler.cpp \
           src/dynamixel_sdk/protocol1_packet_handler.cpp \
           src/dynamixel_sdk/protocol2_packet_handler.cpp \
           src/dynamixel_sdk/port_handler_mac.cpp \


OBJECTS=$(addsuffix .o,$(addprefix $(DIR_OBJS)/,$(basename $(notdir $(SOURCES)))))


#---------------------------------------------------------------------
# COMPILING RULES
#---------------------------------------------------------------------
$(TARGET): makedirs $(OBJECTS)
	$(LD) $(LDFLAGS) -o ./$(TARGET) $(OBJECTS) $(LIBRARIES)

makedirs:
	mkdir -p $(DIR_OBJS)/

clean:
	rm -f $(OBJECTS) ./$(TARGET)
<commit_msg>Mac OS supports DynamixelSDK<commit_after>##################################################
# PROJECT: DynamixelSDK - ROBOTIS CO., Ltd.
##################################################

#---------------------------------------------------------------------
# C++ COMPILER, COMPILER FLAGS, AND TARGET PROGRAM NAME
#---------------------------------------------------------------------
DIR_DXL     = ../..
DIR_OBJS    = ./.objects

INSTALL_ROOT = /usr/local

MAJ_VERSION = 2
MIN_VERSION = 0
REV_VERSION = 0

TARGET      = libdxl_mac_cpp.so
TARGET1     = $(TARGET).$(MAJ_VERSION)
TARGET2     = $(TARGET).$(MAJ_VERSION).$(MIN_VERSION)
TARGET3     = $(TARGET).$(MAJ_VERSION).$(MIN_VERSION).$(REV_VERSION)

CHK_DIR_EXISTS = test -d
PRINT       = echo
STRIP       = strip
AR          = ar
ARFLAGS     = cr
LD          = g++
LDFLAGS     = -shared -fPIC $(FORMAT)#-Wl,-soname,dxl
LD_CONFIG   = ldconfig
CP          = cp
CP_ALL      = cp -r
RM          = rm
RM_ALL      = rm -rf
SYMLINK     = ln -s
MKDIR       = mkdir
CC          = gcc
CX          = g++
CCFLAGS     = -O2 -O3 -D_GNU_SOURCE -Wall -c $(INCLUDES) $(FORMAT) -fPIC -g
CXFLAGS     = -O2 -O3 -D_GNU_SOURCE -Wall -c $(INCLUDES) $(FORMAT) -fPIC -g
INCLUDES    += -I$(DIR_DXL)/include/dynamixel_sdk

#---------------------------------------------------------------------
# Required external libraries
#---------------------------------------------------------------------
# LIBRARIES  += -lrt

#---------------------------------------------------------------------
# SDK Files
#---------------------------------------------------------------------
SOURCES  = src/dynamixel_sdk/group_bulk_read.cpp \
           src/dynamixel_sdk/group_bulk_write.cpp \
           src/dynamixel_sdk/group_sync_read.cpp \
           src/dynamixel_sdk/group_sync_write.cpp \
           src/dynamixel_sdk/packet_handler.cpp \
           src/dynamixel_sdk/port_handler.cpp \
           src/dynamixel_sdk/protocol1_packet_handler.cpp \
           src/dynamixel_sdk/protocol2_packet_handler.cpp \
           src/dynamixel_sdk/port_handler_mac.cpp \


OBJECTS=$(addsuffix .o,$(addprefix $(DIR_OBJS)/,$(basename $(notdir $(SOURCES)))))


#---------------------------------------------------------------------
# COMPILING RULES
#---------------------------------------------------------------------
$(TARGET): makedirs $(OBJECTS)
	$(LD) $(LDFLAGS) -o ./$(TARGET) $(OBJECTS) $(LIBRARIES)

makedirs:
	mkdir -p $(DIR_OBJS)/

clean:
	rm -f $(OBJECTS) ./$(TARGET)

{'fraction_non_alphanumeric': 0.36620856911883587, 'fraction_numerical': 0.004850444624090542, 'mean_word_length': 1.3029315960912051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '78341', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1438, 'n_words': 273}