Remove unused pkg dependancy
[platform/upstream/iotivity.git] / extlibs / tinycbor / tinycbor / Makefile.nmake
1 CFLAGS = -W3
2
3 TINYCBOR_HEADERS = src\cbor.h src\cborjson.h
4 TINYCBOR_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 TINYCBOR_OBJS = \
12         src\cborerrorstrings.obj \
13         src\cborencoder.obj \
14         src\cborencoder_close_container_checked.obj \
15         src\cborparser_dup_string.obj \
16         src\cborpretty.obj
17
18 all: lib\tinycbor.lib
19 check: tests\Makefile lib\tinycbor.lib
20         cd tests & $(MAKE) check
21 silentcheck:
22         cd tests & set TESTARGS=-silent & $(MAKE) -s check
23 tests\Makefile: tests\tests.pro
24         qmake -o $@ $**
25
26 lib\tinycbor.lib: $(TINYCBOR_OBJS)
27         -if not exist lib\NUL md lib
28         lib -nologo /out:$@ $**
29
30 mostlyclean:
31         -del $(TINYCBOR_OBJS)
32 clean: mostlyclean
33         -del lib\tinycbor.lib
34         if exist tests\Makefile (cd tests & $(MAKE) clean)
35 distclean: clean
36         if exist tests\Makefile (cd tests & $(MAKE) distclean)
37
38 {src\}.c{src\}.obj:
39         $(CC) -nologo $(CFLAGS) -Isrc -DTINYCBOR_VERSION="" -c -Fo$@ $<
40