Laurence Lundblade | 74d265c | 2018-09-19 10:21:00 -0700 | [diff] [blame] | 1 | CFLAGS=-I inc -I test -Os |
| 2 | |
Laurence Lundblade | 781fd82 | 2018-10-01 09:37:52 -0700 | [diff] [blame] | 3 | QCBOR_OBJ=src/UsefulBuf.o src/qcbor_encode.o src/qcbor_decode.o src/ieee754.o |
| 4 | |
Laurence Lundblade | 4d1ecba | 2018-10-12 21:22:30 +0800 | [diff] [blame^] | 5 | TEST_OBJ=test/UsefulBuf_Tests.o test/qcbor_encode_tests.o test/qcbor_decode_tests.o test/run_tests.o \ |
| 6 | test/float_tests.o test/half_to_double_from_rfc7049.o |
Laurence Lundblade | 781fd82 | 2018-10-01 09:37:52 -0700 | [diff] [blame] | 7 | |
Laurence Lundblade | 74d265c | 2018-09-19 10:21:00 -0700 | [diff] [blame] | 8 | CMD_LINE_OBJ=$(QCBOR_OBJ) $(TEST_OBJ) cmd_line_main.o |
| 9 | |
| 10 | qcbortest: $(CMD_LINE_OBJ) |
| 11 | cc -o $@ $^ $(CFLAGS) |
| 12 | |
| 13 | src/UsefulBuf.o: inc/UsefulBuf.h |
Laurence Lundblade | 781fd82 | 2018-10-01 09:37:52 -0700 | [diff] [blame] | 14 | src/qcbor_decode.o: inc/UsefulBuf.h inc/qcbor.h src/ieee754.h |
| 15 | src/qcbor_encode.o: inc/UsefulBuf.h inc/qcbor.h src/ieee754.h |
| 16 | src/iee754.o: src/ieee754.h |
| 17 | |
Laurence Lundblade | 4d1ecba | 2018-10-12 21:22:30 +0800 | [diff] [blame^] | 18 | test/run_tests.o: test/UsefulBuf_Tests.h test/float_tests.h test/run_tests.h test/qcbor_encode_tests.h\ |
| 19 | test/qcbor_decode_tests.h |
| 20 | test/UsefulBuf_Tests.o: test/UsefulBuf_Tests.h inc/qcbor.h inc/UsefulBuf.h |
| 21 | test/qcbor_encode_tests.o: test/qcbor_encode_tests.h inc/qcbor.h inc/UsefulBuf.h |
| 22 | test/qcbor_decode_tests.o: test/qcbor_decode_tests.h inc/qcbor.h inc/UsefulBuf.h |
| 23 | test/float_tests.o: inc/qcbor.h inc/UsefulBuf.h test/float_tests.h test/half_to_double_from_rfc7049.h |
Laurence Lundblade | 781fd82 | 2018-10-01 09:37:52 -0700 | [diff] [blame] | 24 | test/half_to_double_from_rfc7049.o: test/half_to_double_from_rfc7049.h |
| 25 | |
| 26 | cmd_line_main.o: test/run_tests.h |
Laurence Lundblade | 74d265c | 2018-09-19 10:21:00 -0700 | [diff] [blame] | 27 | |
| 28 | clean: |
| 29 | rm $(CMD_LINE_OBJ) |