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: server client 9 10.SUFFIXES: 11 12clean: 13 rm -f server client fileproto.pb.c fileproto.pb.h 14 15%: %.c common.c fileproto.pb.c 16 $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE) 17 18