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@29:004c318e63fa, 2015-01-07 (annotated)
- Committer:
- Patrick Barrett
- Date:
- Wed Jan 07 14:20:56 2015 -0600
- Revision:
- 29:004c318e63fa
- Parent:
- 7:f9df43829cea
added retry on network error
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Patrick Barrett |
7:f9df43829cea | 1 | CC=gcc |
Patrick Barrett |
7:f9df43829cea | 2 | IDIR=src |
Patrick Barrett |
7:f9df43829cea | 3 | OPT:=-Wall -pedantic -std=c99 -g |
Patrick Barrett |
7:f9df43829cea | 4 | |
Patrick Barrett |
7:f9df43829cea | 5 | all: test release |
Patrick Barrett |
7:f9df43829cea | 6 | |
Patrick Barrett |
7:f9df43829cea | 7 | release: src/coap.c |
Patrick Barrett |
7:f9df43829cea | 8 | $(CC) $(OPT) -Os -c src/coap.c -o picocoap.o |
Patrick Barrett |
7:f9df43829cea | 9 | |
Patrick Barrett |
7:f9df43829cea | 10 | debug: src/coap.c |
Patrick Barrett |
7:f9df43829cea | 11 | $(CC) $(OPT) -c src/coap.c -o picocoap.o |
Patrick Barrett |
7:f9df43829cea | 12 | |
Patrick Barrett |
7:f9df43829cea | 13 | test: tests/coap_test.c src/coap.h |
Patrick Barrett |
7:f9df43829cea | 14 | $(CC) $(OPT) tests/coap_test.c src/coap.c -o test |
Patrick Barrett |
7:f9df43829cea | 15 | ./test |
Patrick Barrett |
7:f9df43829cea | 16 | rm test |
Patrick Barrett |
7:f9df43829cea | 17 | |
Patrick Barrett |
7:f9df43829cea | 18 | buildtest: tests/coap_test.c src/coap.h |
Patrick Barrett |
7:f9df43829cea | 19 | $(CC) $(OPT) tests/coap_test.c src/coap.c -o test |
Patrick Barrett |
7:f9df43829cea | 20 | |
Patrick Barrett |
7:f9df43829cea | 21 | posixclient: examples/posix/client.c src/coap.h |
Patrick Barrett |
7:f9df43829cea | 22 | $(CC) $(OPT) -D_POSIX_SOURCE examples/posix/client.c src/coap.c -o posixclient |
Patrick Barrett |
7:f9df43829cea | 23 | |
Patrick Barrett |
7:f9df43829cea | 24 | posixclientd: examples/posix/client_dtls.c src/coap.h |
Patrick Barrett |
7:f9df43829cea | 25 | $(CC) $(OPT) -D_POSIX_SOURCE examples/posix/client_dtls.c src/coap.c -o posixclientd |
Patrick Barrett |
7:f9df43829cea | 26 | |
Patrick Barrett |
7:f9df43829cea | 27 | clean: |
Patrick Barrett |
7:f9df43829cea | 28 | rm -f picocoap.o |
Patrick Barrett |
7:f9df43829cea | 29 | rm -f test |
Patrick Barrett |
7:f9df43829cea | 30 | rm -f posixclient |
Patrick Barrett |
7:f9df43829cea | 31 | rm -f posixclientd |