mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 03:40:39 +03:00
Update code / examples / man pages with the updated function. include/coap/libcoap.h: Add in new define COAP_DEPRECATED to generate compiler warnings when used include/coap/encode.h New coap_encode_var_safe() function that includes the size of the output buffer as a parameter. Make coap_encode_var_bytes() a wrapper for coap_encode_var_safe() and mark it as COAP_DEPRECATED for backwards compatability src/encode.c: New coap_encode_var_safe() function that includes the size of the output buffer as a parameter. examples/coap-server.c: examples/contiki/server.c: Make the ticks resource consistent in case
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# man/Makefile.am
|
|
#
|
|
# Copyright (C) 2018 Jon Shallow <supjps-libcoap@jpshallow.com>
|
|
#
|
|
# This file is part of the CoAP C library libcoap. Please see README and
|
|
# COPYING for terms of use.
|
|
|
|
# build manuals only if 'BUILD_MANPAGES' is defined
|
|
if BUILD_MANPAGES
|
|
|
|
# building the manpages
|
|
|
|
TXT3 = coap_attribute.txt \
|
|
coap_context.txt \
|
|
coap_handler.txt \
|
|
coap_observe.txt \
|
|
coap_pdu_setup.txt \
|
|
coap_recovery.txt \
|
|
coap_resource.txt \
|
|
coap_tls_library.txt
|
|
|
|
MAN3 = $(TXT3:%.txt=%.3)
|
|
|
|
man3_MANS = $(MAN3)
|
|
|
|
TXT5 = coap-client.txt \
|
|
coap-rd.txt \
|
|
coap-server.txt
|
|
|
|
MAN5 = $(TXT5:%.txt=%.5)
|
|
|
|
man5_MANS = $(MAN5)
|
|
|
|
TXT7 = coap.txt
|
|
|
|
MAN7 = $(TXT7:%.txt=%.7)
|
|
|
|
man7_MANS = $(MAN7)
|
|
|
|
.txt.3:
|
|
$(A2X) --doctype manpage --format manpage $<
|
|
|
|
.txt.5:
|
|
$(A2X) --doctype manpage --format manpage $<
|
|
|
|
.txt.7:
|
|
$(A2X) --doctype manpage --format manpage $<
|
|
|
|
# We are limited to 10 names, but synopsis can cover more
|
|
install-man: install-man3 install-man5 install-man7
|
|
@echo ".so man3/coap_context.3" > coap_free_endpoint.3
|
|
@echo ".so man3/coap_context.3" > coap_endpoint_set_default_mtu.3
|
|
@echo ".so man3/coap_context.3" > coap_session_reference.3
|
|
@echo ".so man3/coap_context.3" > coap_session_release.3
|
|
@echo ".so man3/coap_context.3" > coap_session_set_mtu.3
|
|
@echo ".so man3/coap_pdu_setup.3" > coap_encode_var_safe.3
|
|
@echo ".so man3/coap_pdu_setup.3" > coap_split_path.3
|
|
@echo ".so man3/coap_pdu_setup.3" > coap_split_query.3
|
|
$(INSTALL_DATA) *.3 "$(DESTDIR)$(man3dir)"
|
|
|
|
CLEANFILES = *.3 *.5 *.7 *.xml
|
|
|
|
endif # BUILD_MANPAGES
|