1 CFLAGS=-ansi -Wall -Werror -I .. -g -O0
2 DEPS=../pb_decode.c ../pb_decode.h ../pb_encode.c ../pb_encode.h ../pb.h
10 rm -f encode unionproto.pb.h unionproto.pb.c
12 %: %.c $(DEPS) unionproto.pb.h unionproto.pb.c
13 $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c ../pb_encode.c unionproto.pb.c
15 unionproto.pb.h unionproto.pb.c: unionproto.proto ../generator/nanopb_generator.py
16 protoc -I. -I../generator -I/usr/include -ounionproto.pb $<
17 python ../generator/nanopb_generator.py unionproto.pb