<commit_before># Get the $(FREERTOSPATH)
include $(OPENMRNPATH)/etc/freertos.mk

# Get the $(CFLAGSENV), $(CXXFLAGSENV), $(LDFLAGSENV)
include $(OPENMRNPATH)/etc/env.mk

# Get the $(TOOLPATH)
ifneq ($(FREERTOSPATH),)
include $(OPENMRNPATH)/etc/armgcc.mk
endif

# Get $(MBEDPATH)
include $(OPENMRNPATH)/etc/mbed.mk


PREFIX = $(TOOLPATH)/bin/arm-none-eabi-

AS = $(PREFIX)gcc
CC = $(PREFIX)gcc
CXX = $(PREFIX)g++
AR = $(PREFIX)ar
LD = $(PREFIX)g++
SIZE = $(PREFIX)size
OBJCOPY = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
CHECKSUM= $(TOOLPATH)/../bin/checksum

STARTGROUP := -Wl,--start-group
ENDGROUP := -Wl,--end-group

INCLUDES += -I$(FREERTOSPATH)/Source/include \
            -I$(FREERTOSPATH)/Source/portable/GCC/ARM7_LPC23xx \
            -I$(OPENMRNPATH)/include/freertos \
            -I$(OPENMRNPATH)/src/freertos_drivers/common

ARCHOPTIMIZATION = -Os
#ARCHOPTIMIZATION = -O3 -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer

ASFLAGS = -c  -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED -g -MD -MP \
           -mcpu=arm7tdmi -mfloat-abi=soft  -mthumb-interwork

ifeq ($(TOOLPATH),/usr/local/lpcxpresso_5.1.2_2065/lpcxpresso/tools)
CLIBPATH=$(TOOLPATH)/lib/gcc/arm-none-eabi/4.6.2
CPPLIBPATH=$(TOOLPATH)/arm-none-eabi/include/c++/4.6.2
else
CLIBPATH=$(TOOLPATH)/lib/gcc/arm-none-eabi/4.7.3
CPPLIBPATH=$(TOOLPATH)/arm-none-eabi/include/c++/4.7.3
CHECKSUM=/usr/local/lpcxpresso_5.1.*/lpcxpresso/bin/checksum
endif



INCLUDES += -I"/home/bracz/lpc-workspace/libmbed_2387" -I$(TOOLPATH)/arm-none-eabi/include -I$(CLIBPATH)/include-fixed -I$(CLIBPATH)/include -I$(CPPLIBPATH)/backward -I$(CPPLIBPATH)/arm-none-eabi -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/cpp" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/capi" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/capi/LPC2368" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/cmsis/LPC2368" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/USBDevice/USBDevice" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/USBDevice/USBSerial" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/capi" 


#-MT"$(@:%.o=%.d)" 
CORECFLAGS = $(ARCHOPTIMIZATION) -DTARGET_LPC2368 -D__NEWLIB__ -DDEBUG \
	-D__CODE_RED  -g3 -Wall -c -fmessage-length=0 -fno-builtin \
	-ffunction-sections -fdata-sections -mthumb-interwork \
	-mcpu=arm7tdmi -MMD -MP -MF"$(@:%.o=%.d)" \
	-Werror -std=gnu99 -D__FreeRTOS__ -mfloat-abi=soft \
	-Wstrict-prototypes -fno-stack-protector -DTHUMB_INTERWORK $(CFLAGSENV)

ARM_CFLAGS = $(CORECFLAGS)

CFLAGS = $(CORECFLAGS) -mthumb 

# -MT"$(@:%.o=%.d)"
CXXFLAGS = $(ARCHOPTIMIZATION) -DTARGET_LPC2368 -D__NEWLIB__ -DDEBUG \
	-D__CODE_RED  -g3 -Wall -c -fmessage-length=0 -fno-builtin \
	-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
	-mcpu=arm7tdmi -MMD -MP -MF"$(@:%.o=%.d)" \
	-Werror -D__FreeRTOS__ -mthumb -mthumb-interwork -mfloat-abi=soft \
	-fno-stack-protector -D__STDC_FORMAT_MACROS -DTHUMB_INTERWORK \
	$(CXXFLAGSENV)

LDFLAGS = -g -nostdlib -L"/home/bracz/lpc-workspace/libmbed_2387/Debug" -T target.ld -mthumb -Xlinker --gc-sections -mcpu=arm7tdmi -Xlinker -Map="$(@:%.elf=%.map)"\<commit_msg>Enables c++0x features.<commit_after># Get the $(FREERTOSPATH)
include $(OPENMRNPATH)/etc/freertos.mk

# Get the $(CFLAGSENV), $(CXXFLAGSENV), $(LDFLAGSENV)
include $(OPENMRNPATH)/etc/env.mk

# Get the $(TOOLPATH)
ifneq ($(FREERTOSPATH),)
include $(OPENMRNPATH)/etc/armgcc.mk
endif

# Get $(MBEDPATH)
include $(OPENMRNPATH)/etc/mbed.mk


PREFIX = $(TOOLPATH)/bin/arm-none-eabi-

AS = $(PREFIX)gcc
CC = $(PREFIX)gcc
CXX = $(PREFIX)g++
AR = $(PREFIX)ar
LD = $(PREFIX)g++
SIZE = $(PREFIX)size
OBJCOPY = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
CHECKSUM= $(TOOLPATH)/../bin/checksum

STARTGROUP := -Wl,--start-group
ENDGROUP := -Wl,--end-group

INCLUDES += -I$(FREERTOSPATH)/Source/include \
            -I$(FREERTOSPATH)/Source/portable/GCC/ARM7_LPC23xx \
            -I$(OPENMRNPATH)/include/freertos \
            -I$(OPENMRNPATH)/src/freertos_drivers/common

ARCHOPTIMIZATION = -Os
#ARCHOPTIMIZATION = -O3 -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer

ASFLAGS = -c  -x assembler-with-cpp -D__NEWLIB__ -DDEBUG -D__CODE_RED -g -MD -MP \
           -mcpu=arm7tdmi -mfloat-abi=soft  -mthumb-interwork

ifeq ($(TOOLPATH),/usr/local/lpcxpresso_5.1.2_2065/lpcxpresso/tools)
CLIBPATH=$(TOOLPATH)/lib/gcc/arm-none-eabi/4.6.2
CPPLIBPATH=$(TOOLPATH)/arm-none-eabi/include/c++/4.6.2
else
CLIBPATH=$(TOOLPATH)/lib/gcc/arm-none-eabi/4.7.3
CPPLIBPATH=$(TOOLPATH)/arm-none-eabi/include/c++/4.7.3
CHECKSUM=/usr/local/lpcxpresso_5.1.*/lpcxpresso/bin/checksum
endif



INCLUDES += -I"/home/bracz/lpc-workspace/libmbed_2387" -I$(TOOLPATH)/arm-none-eabi/include -I$(CLIBPATH)/include-fixed -I$(CLIBPATH)/include -I$(CPPLIBPATH)/backward -I$(CPPLIBPATH)/arm-none-eabi -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/cpp" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/capi" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/capi/LPC2368" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/vendor/NXP/cmsis/LPC2368" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/USBDevice/USBDevice" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/USBDevice/USBSerial" -I"/home/bracz/lpc-workspace/libmbed_2387/mbed/mbed/capi" 


#-MT"$(@:%.o=%.d)" 
CORECFLAGS = $(ARCHOPTIMIZATION) -DTARGET_LPC2368 -D__NEWLIB__ -DDEBUG \
	-D__CODE_RED  -g3 -Wall -c -fmessage-length=0 -fno-builtin \
	-ffunction-sections -fdata-sections -mthumb-interwork \
	-mcpu=arm7tdmi -MMD -MP -MF"$(@:%.o=%.d)" \
	-Werror -std=gnu99 -D__FreeRTOS__ -mfloat-abi=soft \
	-Wstrict-prototypes -fno-stack-protector -DTHUMB_INTERWORK $(CFLAGSENV)

ARM_CFLAGS = $(CORECFLAGS)

CFLAGS = $(CORECFLAGS) -mthumb 

# -MT"$(@:%.o=%.d)"
CXXFLAGS = $(ARCHOPTIMIZATION) -DTARGET_LPC2368 -D__NEWLIB__ -DDEBUG \
	-D__CODE_RED  -g3 -Wall -c -fmessage-length=0 -fno-builtin \
	-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
	-mcpu=arm7tdmi -MMD -MP -MF"$(@:%.o=%.d)" -std=c++0x \
	-Werror -D__FreeRTOS__ -mthumb -mthumb-interwork -mfloat-abi=soft \
	-fno-stack-protector -D__STDC_FORMAT_MACROS -DTHUMB_INTERWORK \
	$(CXXFLAGSENV)

LDFLAGS = -g -nostdlib -L"/home/bracz/lpc-workspace/libmbed_2387/Debug" -T target.ld -mthumb -Xlinker --gc-sections -mcpu=arm7tdmi -Xlinker -Map="$(@:%.elf=%.map)"\
{'fraction_non_alphanumeric': 0.1866224956617763, 'fraction_numerical': 0.027764631645369933, 'mean_word_length': 4.088282504012841, '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': '1268936', 'n_tokens_mistral': 2962, 'n_tokens_neox': 2810, 'n_words': 342}