<commit_before>PKG_NAME := libcoap
PKG_VER  := 4.1.1

PKG_SOURCES := https://github.com/obgm/$(PKG_NAME)/archive/v$(PKG_VER).tar.gz
PKG_MD5     := ff1af4bd9893c1728e765aa08a816e41

include $(EXTBLD_LIB)

$(CONFIGURE) :
	export EMBOX_GCC_LINK=full; \
	cd $(PKG_SOURCE_DIR) && autoconf && ( \
		./configure \
			CC=$(EMBOX_GCC) \
			--host=$(AUTOCONF_TARGET_TRIPLET) \
			CPPFLAGS=-Drpl_malloc=malloc \
	)
	touch $@

$(BUILD) :
	cd $(PKG_SOURCE_DIR) && ( \
		make; \
	)
	touch $@

$(INSTALL) :
	cp $(PKG_SOURCE_DIR)/libcoap.a $(PKG_INSTALL_DIR)/
	cp $(PKG_SOURCE_DIR)/*.h $(PKG_INSTALL_DIR)/
	cp $(PKG_SOURCE_DIR)/examples/server.o $(PKG_INSTALL_DIR)/../../coap_server/install/
	cp $(PKG_SOURCE_DIR)/examples/client.o $(PKG_INSTALL_DIR)/../../coap_client/install/
	touch $@<commit_msg>m32 flag<commit_after>PKG_NAME := libcoap
PKG_VER  := 4.1.1

PKG_SOURCES := https://github.com/obgm/$(PKG_NAME)/archive/v$(PKG_VER).tar.gz
PKG_MD5     := ff1af4bd9893c1728e765aa08a816e41

include $(EXTBLD_LIB)

$(CONFIGURE) :
	export EMBOX_GCC_LINK=full; \
	cd $(PKG_SOURCE_DIR) && autoconf && ( \
		./configure \
			CC=$(EMBOX_GCC) \
			--host=$(AUTOCONF_TARGET_TRIPLET) \
			--target=$(AUTOCONF_TARGET_TRIPLET) \
			CPPFLAGS=-Drpl_malloc=malloc \
			CFLAGS=-m32 \
	)
	touch $@

$(BUILD) :
	cd $(PKG_SOURCE_DIR) && ( \
		make; \
	)
	touch $@

$(INSTALL) :
	cp $(PKG_SOURCE_DIR)/libcoap.a $(PKG_INSTALL_DIR)/
	cp $(PKG_SOURCE_DIR)/*.h $(PKG_INSTALL_DIR)/
	cp $(PKG_SOURCE_DIR)/examples/server.o $(PKG_INSTALL_DIR)/../../coap_server/install/
	cp $(PKG_SOURCE_DIR)/examples/client.o $(PKG_INSTALL_DIR)/../../coap_client/install/
	touch $@
{'fraction_non_alphanumeric': 0.18777022853613343, 'fraction_numerical': 0.03211859172328598, 'mean_word_length': 4.015479876160991, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3607337', 'n_tokens_mistral': 778, 'n_tokens_neox': 707, 'n_words': 83}