1CFLAGS = -W3 2 3TINYCBOR_HEADERS = src 4TINYCBOR_SOURCES = \ 5 src\cborerrorstrings.c \ 6 src\cborencoder.c \ 7 src\cborencoder_close_container_checked.c \ 8 src\cborparser.c \ 9 src\cborparser_dup_string.c \ 10 src\cborpretty.c \ 11 src\cborpretty_stdio.c \ 12 src\cborvalidation.c \ 13 src\cbor_buf_reader.c \ 14 src\cbor_buf_writer.c 15TINYCBOR_OBJS = \ 16 src\cborerrorstrings.obj \ 17 src\cborencoder.obj \ 18 src\cborencoder_close_container_checked.obj \ 19 src\cborparser.obj \ 20 src\cborparser_dup_string.obj \ 21 src\cborpretty.obj \ 22 src\cborpretty_stdio.obj \ 23 src\cborvalidation.obj \ 24 src\cbor_buf_writer.obj \ 25 src\cbor_buf_reader.obj 26 27all: lib\tinycbor.lib 28check: tests\Makefile lib\tinycbor.lib 29 cd tests & $(MAKE) check 30silentcheck: 31 cd tests & set TESTARGS=-silent & $(MAKE) -s check 32tests\Makefile: tests\tests.pro 33 qmake -o $@ $** 34 35lib\tinycbor.lib: $(TINYCBOR_OBJS) 36 -if not exist lib\NUL md lib 37 lib -nologo /out:$@ $** 38 39mostlyclean: 40 -del $(TINYCBOR_OBJS) 41clean: mostlyclean 42 -del lib\tinycbor.lib 43 if exist tests\Makefile (cd tests & $(MAKE) clean) 44distclean: clean 45 if exist tests\Makefile (cd tests & $(MAKE) distclean) 46tag: 47 @perl maketag.pl 48 49{src\}.c{src\}.obj: 50 $(CC) -nologo $(CFLAGS) -Isrc -DTINYCBOR_VERSION_SUFFIX="" -c -Fo$@ $< 51 52