1# Include the nanopb provided Makefile rules 2include ../../extra/nanopb.mk 3 4# Compiler flags to enable all warnings & debug info 5CFLAGS = -ansi -Wall -Werror -g -O0 6CFLAGS += -I$(NANOPB_DIR) 7 8all: encode decode 9 ./encode 1 | ./decode 10 ./encode 2 | ./decode 11 ./encode 3 | ./decode 12 13.SUFFIXES: 14 15clean: 16 rm -f encode unionproto.pb.h unionproto.pb.c 17 18%: %.c unionproto.pb.c 19 $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE) 20 21