blob: bbfec48fd5a2ef5d7bd76fd8faf4d4234848ee46 [file] [log] [blame]
Laurence Lundblade570fab52018-10-13 18:28:27 +08001CFLAGS=-I inc -I test -Os -Wall -Werror -pedantic-errors -Wextra -Wshadow
Laurence Lundblade74d265c2018-09-19 10:21:00 -07002
Laurence Lundblade471a3fd2018-10-18 21:27:45 +05303QCBOR_OBJ=src/UsefulBuf.o src/qcbor_encode.o src/qcbor_decode.o src/ieee754.o src/qcbor_decode_malloc.o
Laurence Lundblade781fd822018-10-01 09:37:52 -07004
Laurence Lundblade4d1ecba2018-10-12 21:22:30 +08005TEST_OBJ=test/UsefulBuf_Tests.o test/qcbor_encode_tests.o test/qcbor_decode_tests.o test/run_tests.o \
Laurence Lundblade471a3fd2018-10-18 21:27:45 +05306 test/float_tests.o test/half_to_double_from_rfc7049.o test/qcbor_decode_malloc_tests.o
Laurence Lundblade781fd822018-10-01 09:37:52 -07007
Laurence Lundblade74d265c2018-09-19 10:21:00 -07008CMD_LINE_OBJ=$(QCBOR_OBJ) $(TEST_OBJ) cmd_line_main.o
9
10qcbortest: $(CMD_LINE_OBJ)
11 cc -o $@ $^ $(CFLAGS)
12
13src/UsefulBuf.o: inc/UsefulBuf.h
Laurence Lundblade781fd822018-10-01 09:37:52 -070014src/qcbor_decode.o: inc/UsefulBuf.h inc/qcbor.h src/ieee754.h
15src/qcbor_encode.o: inc/UsefulBuf.h inc/qcbor.h src/ieee754.h
16src/iee754.o: src/ieee754.h
Laurence Lundblade471a3fd2018-10-18 21:27:45 +053017src/qcbor_malloc_decode.o: inc/qcbor.h
Laurence Lundblade781fd822018-10-01 09:37:52 -070018
Laurence Lundblade4d1ecba2018-10-12 21:22:30 +080019test/run_tests.o: test/UsefulBuf_Tests.h test/float_tests.h test/run_tests.h test/qcbor_encode_tests.h\
Laurence Lundblade471a3fd2018-10-18 21:27:45 +053020 test/qcbor_decode_tests.h test/qcbor_decode_malloc_tests.h
Laurence Lundblade4d1ecba2018-10-12 21:22:30 +080021test/UsefulBuf_Tests.o: test/UsefulBuf_Tests.h inc/qcbor.h inc/UsefulBuf.h
22test/qcbor_encode_tests.o: test/qcbor_encode_tests.h inc/qcbor.h inc/UsefulBuf.h
23test/qcbor_decode_tests.o: test/qcbor_decode_tests.h inc/qcbor.h inc/UsefulBuf.h
24test/float_tests.o: inc/qcbor.h inc/UsefulBuf.h test/float_tests.h test/half_to_double_from_rfc7049.h
Laurence Lundblade781fd822018-10-01 09:37:52 -070025test/half_to_double_from_rfc7049.o: test/half_to_double_from_rfc7049.h
Laurence Lundblade471a3fd2018-10-18 21:27:45 +053026test/qcbor_decode_malloc_test.o: test/qcbor_decode_malloc_tests.h
Laurence Lundblade781fd822018-10-01 09:37:52 -070027
28cmd_line_main.o: test/run_tests.h
Laurence Lundblade74d265c2018-09-19 10:21:00 -070029
30clean:
31 rm $(CMD_LINE_OBJ)