blob: 233164bd2e76278602708d6523144935d00d416d [file] [log] [blame]
Laurence Lundblade74d265c2018-09-19 10:21:00 -07001CFLAGS=-I inc -I test -Os
2
Laurence Lundblade781fd822018-10-01 09:37:52 -07003QCBOR_OBJ=src/UsefulBuf.o src/qcbor_encode.o src/qcbor_decode.o src/ieee754.o
4
5TEST_OBJ=test/basic_test.o test/bstrwrap_tests.o test/run_tests.o test/half_precision_test.o \
6 test/half_to_double_from_rfc7049.o
7
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
17
Laurence Lundblade74d265c2018-09-19 10:21:00 -070018test/basic_test.o: test/basic_test.h inc/qcbor.h inc/UsefulBuf.h
Laurence Lundblade2300b562018-09-29 20:00:09 -070019test/bstrwrap_tests.o: test/bstrwrap_tests.h inc/qcbor.h inc/UsefulBuf.h
Laurence Lundblade781fd822018-10-01 09:37:52 -070020test/run_tests.o: test/half_precision_test.h test/run_tests.h test/basic_test.h test/bstrwrap_tests.h
21test/half_precision_test.o: inc/qcbor.h test/half_precision_test.h test/half_to_double_from_rfc7049.h
22test/half_to_double_from_rfc7049.o: test/half_to_double_from_rfc7049.h
23
24cmd_line_main.o: test/run_tests.h
Laurence Lundblade74d265c2018-09-19 10:21:00 -070025
26clean:
27 rm $(CMD_LINE_OBJ)