diff options
author | Vijay Pai <vpai@google.com> | 2016-10-13 09:39:05 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2016-10-13 09:39:05 -0700 |
commit | 22fcbf966324724e5a9224b073de5efd5fcf471f (patch) | |
tree | 3130dfe7b61ddd01493d152feeb1c3b82be32ac9 /third_party/nanopb/examples/using_double_on_avr/Makefile | |
parent | db5b1cbc9483b78458ca529df5603bb15c982d63 (diff) | |
parent | d44144c3b2112ed61a21c08331bfe9e18664ceb3 (diff) |
Merge branch 'master' into fc_1dstream
Diffstat (limited to 'third_party/nanopb/examples/using_double_on_avr/Makefile')
-rw-r--r-- | third_party/nanopb/examples/using_double_on_avr/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/nanopb/examples/using_double_on_avr/Makefile b/third_party/nanopb/examples/using_double_on_avr/Makefile new file mode 100644 index 0000000000..874a64bdc9 --- /dev/null +++ b/third_party/nanopb/examples/using_double_on_avr/Makefile @@ -0,0 +1,24 @@ +# Include the nanopb provided Makefile rules +include ../../extra/nanopb.mk + +# Compiler flags to enable all warnings & debug info +CFLAGS = -Wall -Werror -g -O0 +CFLAGS += -I$(NANOPB_DIR) + +all: run_tests + +.SUFFIXES: + +clean: + rm -f test_conversions encode_double decode_double doubleproto.pb.c doubleproto.pb.h + +test_conversions: test_conversions.c double_conversion.c + $(CC) $(CFLAGS) -o $@ $^ + +%: %.c double_conversion.c doubleproto.pb.c + $(CC) $(CFLAGS) -o $@ $^ $(NANOPB_CORE) + +run_tests: test_conversions encode_double decode_double + ./test_conversions + ./encode_double | ./decode_double + |