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