Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Makefile
- Revision:
- 6:7f0440121941
- Child:
- 7:f9df43829cea
diff -r 000000000000 -r 7f0440121941 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Dec 19 15:43:03 2014 -0600 @@ -0,0 +1,31 @@ +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