summaryrefslogtreecommitdiffstats
path: root/example/Makefile
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-08-22 15:22:41 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-08-22 15:22:41 +0000
commit494fbd91e4e5574a4cf8dbe69b3f80a08e97e85b (patch)
treebdcd9d84aecda89d3af602c8ffccb9ffa5518561 /example/Makefile
parent7f53c3f7484679c1e38607f59542d43be1387650 (diff)
example client
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@958 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'example/Makefile')
-rw-r--r--example/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/Makefile b/example/Makefile
index 0f08f2d7..efc4a8de 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -1,10 +1,10 @@
CFLAGS=-ansi -Wall -Werror -I .. -g -O0
DEPS=../pb_decode.c ../pb_decode.h ../pb_encode.c ../pb_encode.h ../pb.h
-all: server
+all: server client
%: %.c $(DEPS) fileproto.h
- $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c ../pb_encode.c fileproto.c
+ $(CC) $(CFLAGS) -o $@ $< ../pb_decode.c ../pb_encode.c fileproto.c common.c
fileproto.h: fileproto.proto ../generator/nanopb_generator.py
protoc -I. -I../generator -I/usr/include -ofileproto.pb $<