#! /bin/sh# This script creates a libcoap archive, unpacks it and does an# out-of-tree build and installation afterwards.## Copyright (C) 2021-2024 Olaf Bergmann <bergmann@tzi.org>## This file is part of the CoAP C library libcoap. Please see README# and COPYING for terms of use.#PREFIX=--prefix=`pwd`/libcoap-installARCHIVE=`ls -1t libcoap-*.tar.bz2 |head -1`err=$?echo $ARCHIVEif test $err = 0 -a "x$ARCHIVE" != "x"; thenDIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`tar xaf $ARCHIVE && cd $DIR && \$DIR/configure $PREFIX --enable-tests --enable-silent-rules --enable-documentation --enable-examples --disable-dtls && \make EXTRA_CFLAGS=-Werror && make install EXTRA_CFLAGS=-Werrorerr=$?if [ $err = 0 ] ; thenmake -C $DIR/examples/lwip EXTRA_CFLAGS=-Werrorerr=$?fiif [ $err = 0 ] ; thenmake -C $DIR/examples/contikierr=$?fiif [ $err = 0 ] ; thenmake -C $DIR/examples/rioterr=$?fifiexit $err
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。