mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-31 06:55:47 +03:00
Since the local_interface was added to the request handler callback, the examples rd.c and etsi_iot_01.c were broken. This change fixes rd.c and abandons etsi_iot_01.c (as it is very outdated).
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
# Makefile for libcoap
|
|
#
|
|
# Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
|
|
#
|
|
# This file is part of the CoAP library libcoap. Please see
|
|
# README for terms of use.
|
|
|
|
# the library's version
|
|
VERSION:=@PACKAGE_VERSION@
|
|
|
|
# tools
|
|
@SET_MAKE@
|
|
SHELL = /bin/sh
|
|
MKDIR = mkdir
|
|
|
|
abs_builddir = @abs_builddir@
|
|
top_builddir = @top_builddir@
|
|
top_srcdir = @top_srcdir@
|
|
# files and flags
|
|
PROGRAMS:=coap-server coap-client rd #etsi_iot_01 tiny
|
|
SOURCES:= tiny.c client.c server.c rd.c etsi_iot_01.c
|
|
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
|
|
#CFLAGS:=-g -Wall -ansi -pedantic -I..
|
|
CFLAGS:=-g -Wall @CFLAGS@
|
|
CPPFLAGS:=-I$(top_srcdir) @CPPFLAGS@
|
|
DISTDIR?=$(top_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
|
FILES:=Makefile.in $(SOURCES)
|
|
LDFLAGS:=-L$(top_builddir)
|
|
LDLIBS:=-lcoap @LIBS@
|
|
libcoap =$(top_builddir)/libcoap.a
|
|
|
|
.PHONY: clean distclean
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .o
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
check:
|
|
echo DISTDIR: $(DISTDIR)
|
|
echo top_builddir: $(top_builddir)
|
|
|
|
tiny: tiny.o $(libcoap)
|
|
$(CC) -o $@ $< $(LDFLAGS)
|
|
|
|
coap-client: client.o $(libcoap)
|
|
$(CC) -o $@ $< $(LDFLAGS) $(LDLIBS)
|
|
|
|
coap-server: server.o $(libcoap)
|
|
$(CC) -o $@ $< $(LDFLAGS) $(LDLIBS)
|
|
|
|
clean:
|
|
@rm -f $(PROGRAMS) $(OBJECTS)
|
|
|
|
distclean: clean
|
|
@rm -rf $(DISTDIR)
|
|
@rm -f *~
|
|
|
|
dist: $(FILES)
|
|
test -d $(DISTDIR)/examples || mkdir $(DISTDIR)/examples
|
|
cp $(FILES) $(DISTDIR)/examples
|