<commit_before>#
# Makefile for combined CoAP Service library
#

# Define compiler toolchain with CC or PLATFORM variables
# Example (GCC toolchains, default $CC and $AR are used)
# make
#
# OR (Cross-compile GCC toolchain)
# make PLATFORM=arm-linux-gnueabi-
#
# OR (ArmCC/Keil)
# make CC=ArmCC AR=ArmAR
#
# OR (IAR-ARM)
# make CC=iccarm

#
# External sources from libService
#
SERVLIB_DIR := ../libService
override CFLAGS += -I$(SERVLIB_DIR)/libService/
#override CFLAGS += -I$(SERVLIB_DIR)/libService/platform/

NSDLC_DIR := ../nsdl-c
override CFLAGS += -I$(NSDLC_DIR)/nsdl-c

EVENTLOOP_DIR := ../event-loop
override CFLAGS += -I$(EVENTLOOP_DIR)/nanostack-event-loop/
#override CFLAGS += -I$(EVENTLOOP_DIR)/event-loop/

#override CFLAGS += -I../libService/libService/
#override CFLAGS += -I../nsdl-c/nsdl-c/
#override CFLAGS += -I../event-loop/nanostack-event-loop/

LIB = libcoap-service.a

SRCS := \
	source/coap_service.c \
	source/coap_server.c \
	coap-service-nanomesh/coap_server_impl.c \

override CFLAGS += -DVERSION='"$(VERSION)"'



COAPSERVICE_DIR := ../coap-service
override CFLAGS += -I$(COAPSERVICE_DIR)/coap-service/
override CFLAGS += -I$(COAPSERVICE_DIR)/source/include/

#override CFLAGS += -Isource/coap-service/source/include/
#override CFLAGS += -Icoap-service-nanomesh/include/


include ../libService/toolchain_rules.mk

$(eval $(call generate_rules,$(LIB),$(SRCS)))

.PHONY: release
release:
	7z a coap-service_$(VERSION).zip *.a *.lib include
<commit_msg>ONME-1333: coap-service: add deploy_to target needed for source delivery<commit_after>#
# Makefile for combined CoAP Service library
#

# Define compiler toolchain with CC or PLATFORM variables
# Example (GCC toolchains, default $CC and $AR are used)
# make
#
# OR (Cross-compile GCC toolchain)
# make PLATFORM=arm-linux-gnueabi-
#
# OR (ArmCC/Keil)
# make CC=ArmCC AR=ArmAR
#
# OR (IAR-ARM)
# make CC=iccarm

#
# External sources from libService
#
SERVLIB_DIR := ../libService
override CFLAGS += -I$(SERVLIB_DIR)/libService/
#override CFLAGS += -I$(SERVLIB_DIR)/libService/platform/

NSDLC_DIR := ../nsdl-c
override CFLAGS += -I$(NSDLC_DIR)/nsdl-c

EVENTLOOP_DIR := ../event-loop
override CFLAGS += -I$(EVENTLOOP_DIR)/nanostack-event-loop/
#override CFLAGS += -I$(EVENTLOOP_DIR)/event-loop/

#override CFLAGS += -I../libService/libService/
#override CFLAGS += -I../nsdl-c/nsdl-c/
#override CFLAGS += -I../event-loop/nanostack-event-loop/

LIB = libcoap-service.a

SRCS := \
	source/coap_service.c \
	source/coap_server.c \
	coap-service-nanomesh/coap_server_impl.c \

override CFLAGS += -DVERSION='"$(VERSION)"'



COAPSERVICE_DIR := ../coap-service
override CFLAGS += -I$(COAPSERVICE_DIR)/coap-service/
override CFLAGS += -I$(COAPSERVICE_DIR)/source/include/

#override CFLAGS += -Isource/coap-service/source/include/
#override CFLAGS += -Icoap-service-nanomesh/include/


include ../libService/toolchain_rules.mk

$(eval $(call generate_rules,$(LIB),$(SRCS)))

.PHONY: release
release:
	7z a coap-service_$(VERSION).zip *.a *.lib include

.PHONY: deploy_to
deploy_to: all
	tar --transform 's,^,coap-service/,' --append -f $(TO) *.a

{'fraction_non_alphanumeric': 0.16008982996470966, 'fraction_numerical': 0.0019249278152069298, 'mean_word_length': 4.293718166383702, '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': '2285358', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1155, 'n_words': 241}