Patrick Barrett / libexositecoap

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