You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
594 B
24 lines
594 B
# 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 |
|
|
|
|