1 CFLAGS=-ansi -Wall -Werror -I .. -g -O0
2 DEPS=../pb_decode.c ../pb_decode.h ../pb_encode.c ../pb_encode.h ../pb.h
7 rm -f server client fileproto.pb.c fileproto.pb.h
9 %: %.c $(DEPS) fileproto.pb.h fileproto.pb.c
10 $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c ../pb_encode.c fileproto.pb.c common.c
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