1 # Include the nanopb provided Makefile rules
2 include ../../extra/nanopb.mk
4 # Compiler flags to enable all warnings & debug info
5 CFLAGS = -ansi -Wall -Werror -g -O0
6 CFLAGS += -I$(NANOPB_DIR)
13 rm -f server client fileproto.pb.c fileproto.pb.h
15 %: %.c common.c fileproto.pb.c
16 $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE)