mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-26 12:41:22 +03:00
Keep the examples source names and executables in the same form for consistency.
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
# examples/Makefile.am
|
|
#
|
|
# Copyright (C) 2015 Carsten Schoenert <c.schoenert@t-online.de>
|
|
#
|
|
# This file is part of the CoAP C library libcoap. Please see README and
|
|
# COPYING for terms of use.
|
|
|
|
# just do nothing if 'BUILD_EXAMPLES' isn't defined
|
|
if BUILD_EXAMPLES
|
|
|
|
# picking up the default warning CFLAGS into AM_CFLAGS
|
|
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) \
|
|
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
|
|
|
#
|
|
bin_PROGRAMS = coap-client coap-server coap-rd
|
|
check_PROGRAMS = coap-etsi_iot_01 coap-tiny
|
|
|
|
coap_client_SOURCES = coap-client.c
|
|
coap_client_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).la
|
|
|
|
coap_server_SOURCES = coap-server.c
|
|
coap_server_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).la
|
|
|
|
coap_rd_SOURCES = coap-rd.c
|
|
coap_rd_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).la
|
|
|
|
coap_etsi_iot_01_SOURCES = etsi_iot_01.c
|
|
coap_etsi_iot_01_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).la
|
|
|
|
coap_tiny_SOURCES = tiny.c
|
|
coap_tiny_LDADD = $(DTLS_LIBS) $(top_builddir)/.libs/libcoap-$(LIBCOAP_NAME_SUFFIX).la
|
|
|
|
endif # BUILD_EXAMPLES
|