Fix small error in field callback documentation.
[apps/agl-service-can-low-level.git] / example / Makefile
1 CFLAGS=-ansi -Wall -Werror -I .. -g -O0
2 DEPS=../pb_decode.c ../pb_decode.h ../pb_encode.c ../pb_encode.h ../pb.h
3
4 all: server client
5
6 clean:
7         rm -f server client fileproto.pb.c fileproto.pb.h
8
9 %: %.c $(DEPS) fileproto.pb.h fileproto.pb.c
10         $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c ../pb_encode.c fileproto.pb.c common.c
11
12 fileproto.pb.c fileproto.pb.h: fileproto.proto ../generator/nanopb_generator.py
13         protoc -I. -I../generator -I/usr/include -ofileproto.pb $<
14         python ../generator/nanopb_generator.py fileproto.pb