<commit_before>PLATFORM := $(shell uname)
CC = gcc
PROJECT_NAME = calvin_c

CFLAGS  = -g -Wall
CFLAGS += --std=gnu99
#CFLAGS += -DDEBUG
CFLAGS += -DPARSE_ARGS
CFLAGS += -DLWM2M_HTTP_CLIENT
ifneq ($(PLATFORM), Darwin)
CFLAGS += -lrt
endif

C_SOURCE_FILES += \
platform/x86/platform_x86.c \
main.c \
common.c \
node.c \
proto.c \
transport_socket.c \
tunnel.c \
link.c \
actor.c \
port.c \
fifo.c \
token.c \
msgpack_helper.c \
msgpuck/msgpuck.c \
actors/actor_identity.c \
actors/actor_gpioreader.c \
actors/actor_gpiowriter.c \
actors/actor_temperature.c

c_calvin: $(C_SOURCE_FILES)
	@sed -i -e 's/mp_decode_uint/mpk_decode_uint/' msgpuck/msgpuck.h
	$(CC) -o $(PROJECT_NAME) $(C_SOURCE_FILES) $(CFLAGS)

clean:
	rm -f $(PROJECT_NAME)<commit_msg>Make LWM2M support optional<commit_after>PLATFORM := $(shell uname)
CC = gcc
PROJECT_NAME = calvin_c

CFLAGS  = -g -Wall
CFLAGS += --std=gnu99
#CFLAGS += -DDEBUG
CFLAGS += -DPARSE_ARGS
#CFLAGS += -DLWM2M_HTTP_CLIENT
ifneq ($(PLATFORM), Darwin)
CFLAGS += -lrt
endif

C_SOURCE_FILES += \
platform/x86/platform_x86.c \
main.c \
common.c \
node.c \
proto.c \
transport_socket.c \
tunnel.c \
link.c \
actor.c \
port.c \
fifo.c \
token.c \
msgpack_helper.c \
msgpuck/msgpuck.c \
actors/actor_identity.c \
actors/actor_gpioreader.c \
actors/actor_gpiowriter.c \
actors/actor_temperature.c

c_calvin: $(C_SOURCE_FILES)
	@sed -i -e 's/mp_decode_uint/mpk_decode_uint/' msgpuck/msgpuck.h
	$(CC) -o $(PROJECT_NAME) $(C_SOURCE_FILES) $(CFLAGS)

clean:
	rm -f $(PROJECT_NAME)
{'fraction_non_alphanumeric': 0.1519575315195753, 'fraction_numerical': 0.009953550099535502, 'mean_word_length': 3.8333333333333335, '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': '2933077', 'n_tokens_mistral': 688, 'n_tokens_neox': 662, 'n_words': 120}