diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-09-28 14:55:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 14:55:49 -0700 |
commit | 4f13db3c6cfaae52b6d7e35edaa352bccff70b66 (patch) | |
tree | 5cbd30d3de3689a938aa7b61fd53cd72a195c91c /third_party/nanopb/examples/network_server/Makefile | |
parent | dff32e0b4457eece6edcae9d4d1b9df5a142205a (diff) | |
parent | 47c0053bfd71908ffc59ff6895565def22425e26 (diff) |
Merge pull request #8184 from nicolasnoble/nanopb-code-drop
Nanopb code drop
Diffstat (limited to 'third_party/nanopb/examples/network_server/Makefile')
-rw-r--r-- | third_party/nanopb/examples/network_server/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/nanopb/examples/network_server/Makefile b/third_party/nanopb/examples/network_server/Makefile new file mode 100644 index 0000000000..2c7639a15d --- /dev/null +++ b/third_party/nanopb/examples/network_server/Makefile @@ -0,0 +1,17 @@ +# Include the nanopb provided Makefile rules +include ../../extra/nanopb.mk + +# Compiler flags to enable all warnings & debug info +CFLAGS = -ansi -Wall -Werror -g -O0 +CFLAGS += -I$(NANOPB_DIR) + +all: server client + +.SUFFIXES: + +clean: + rm -f server client fileproto.pb.c fileproto.pb.h + +%: %.c common.c fileproto.pb.c + $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE) + |