aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/examples/network_server/Makefile
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-09-28 14:55:49 -0700
committerGravatar GitHub <noreply@github.com>2016-09-28 14:55:49 -0700
commit4f13db3c6cfaae52b6d7e35edaa352bccff70b66 (patch)
tree5cbd30d3de3689a938aa7b61fd53cd72a195c91c /third_party/nanopb/examples/network_server/Makefile
parentdff32e0b4457eece6edcae9d4d1b9df5a142205a (diff)
parent47c0053bfd71908ffc59ff6895565def22425e26 (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/Makefile17
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)
+