The (alpha of the) official Exosite library, CoAP version.

NOTE: This mirror repository may be out of date, check the main repo for changes. If there are any remind me to update this mirror.

This is an unstable alpha of the Official Exosite library, there are known issues with the port to this platform. You probably shouldn't use this library yet if you just want to get things done.

This version uses CoAP for the application protocol.

picocoap/Makefile

Committer:
Patrick Barrett
Date:
2015-01-07
Revision:
29:004c318e63fa
Parent:
7:f9df43829cea

File content as of revision 29:004c318e63fa:

CC=gcc
IDIR=src
OPT:=-Wall -pedantic -std=c99 -g

all: test release

release: src/coap.c
	$(CC) $(OPT) -Os -c src/coap.c -o picocoap.o

debug: src/coap.c
	$(CC) $(OPT) -c src/coap.c -o picocoap.o

test: tests/coap_test.c src/coap.h
	$(CC) $(OPT) tests/coap_test.c src/coap.c -o test
	./test
	rm test

buildtest: tests/coap_test.c src/coap.h
	$(CC) $(OPT) tests/coap_test.c src/coap.c -o test

posixclient: examples/posix/client.c src/coap.h
	$(CC) $(OPT) -D_POSIX_SOURCE examples/posix/client.c src/coap.c -o posixclient

posixclientd: examples/posix/client_dtls.c src/coap.h
	$(CC) $(OPT) -D_POSIX_SOURCE examples/posix/client_dtls.c src/coap.c -o posixclientd

clean:
	rm -f picocoap.o
	rm -f test
	rm -f posixclient
	rm -f posixclientd