Include Visual C++ runtime in the Windows package.
[apps/agl-service-can-low-level.git] / examples / using_union_messages / Makefile
1 # Include the nanopb provided Makefile rules
2 include ../../extra/nanopb.mk
3
4 # Compiler flags to enable all warnings & debug info
5 CFLAGS = -ansi -Wall -Werror -g -O0
6 CFLAGS += -I$(NANOPB_DIR)
7
8 all: encode decode
9         ./encode 1 | ./decode
10         ./encode 2 | ./decode
11         ./encode 3 | ./decode
12
13 clean:
14         rm -f encode unionproto.pb.h unionproto.pb.c
15
16 %: %.c unionproto.pb.c
17         $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE)
18