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.

Makefile

Committer:
Patrick Barrett
Date:
2015-01-07
Revision:
29:004c318e63fa
Parent:
9:394abe2083e8

File content as of revision 29:004c318e63fa:

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

all: test release

release: src/exosite.c
	$(CC) $(OPT) -Os -c src/exosite.c \
	    -I./pal/template \
	    -I./picocoap/src \
	    ./picocoap/picocoap.o \
	     -o exosite.o

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

test: tests/test.c src/exosite.h
	$(CC) $(OPT) tests/test.c \
	             src/exosite.c \
	             pal/template/exosite_pal.c \
	             picocoap/picocoap.o \
	    -Ipal/template \
	    -Ipicocoap/src \
	    -o test
	./test
	rm test

buildtest: tests/test.c src/exosite.h
	$(CC) $(OPT) tests/test.c \
	             src/exosite.c \
	             pal/template/exosite_pal.c \
	    -Ipal/template \
	    -Ipicocoap/src \
	    -o test

posixclient: 
	$(CC) $(OPT) examples/polling_read_write.c \
	             src/exosite.c \
	             pal/posix/exosite_pal.c \
	             picocoap/picocoap.o \
	    -D_POSIX_C_SOURCE=200112L \
	    -Isrc \
	    -Ipal/posix \
	    -Ipicocoap/src \
	    -o posixclient

posixsubscribe: 
	$(CC) $(OPT) examples/subscribe.c \
	             src/exosite.c \
	             pal/posix/exosite_pal.c \
	             picocoap/picocoap.o \
	    -D_POSIX_C_SOURCE=200112L \
	    -Isrc \
	    -Ipal/posix \
	    -Ipicocoap/src \
	    -o posixsubscribe

#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 test
	rm -f posixclient
	rm -f posixsubscribe