Makefile 356 B

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