summaryrefslogtreecommitdiffstats
path: root/libs/nanopb/examples/network_server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nanopb/examples/network_server/Makefile')
-rw-r--r--libs/nanopb/examples/network_server/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/nanopb/examples/network_server/Makefile b/libs/nanopb/examples/network_server/Makefile
new file mode 100644
index 00000000..2c7639a1
--- /dev/null
+++ b/libs/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)
+