This repository has been archived on 2026-09-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
golem-v1-tinycbor/Makefile.nmake
T
Otavio Pontes 4ce56694ed Remove from cborparser.c file the dependency on stdlib header
Function _cbor_value_dup_string from cborparser.c is using malloc/free
functions, from sdtlib header, so it is not possible to compile the
cborparser in systems without stdlib support. Move this function to a
different c file in order to remove the dependency on stdlib header from
cborparser.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2016-07-08 09:55:15 -07:00

41 lines
994 B
Makefile

CFLAGS = -W3
TINYCBOR_HEADERS = src\cbor.h src\cborjson.h
TINYCBOR_SOURCES = \
src\cborerrorstrings.c \
src\cborencoder.c \
src\cborencoder_close_container_checked.c \
src\cborparser.c \
src\cborparser_dup_string.c \
src\cborpretty.c
TINYCBOR_OBJS = \
src\cborerrorstrings.obj \
src\cborencoder.obj \
src\cborencoder_close_container_checked.obj \
src\cborparser_dup_string.obj \
src\cborpretty.obj
all: lib\tinycbor.lib
check: tests\Makefile lib\tinycbor.lib
cd tests & $(MAKE) check
silentcheck:
cd tests & set TESTARGS=-silent & $(MAKE) -s check
tests\Makefile: tests\tests.pro
qmake -o $@ $**
lib\tinycbor.lib: $(TINYCBOR_OBJS)
-if not exist lib\NUL md lib
lib -nologo /out:$@ $**
mostlyclean:
-del $(TINYCBOR_OBJS)
clean: mostlyclean
-del lib\tinycbor.lib
if exist tests\Makefile (cd tests & $(MAKE) clean)
distclean: clean
if exist tests\Makefile (cd tests & $(MAKE) distclean)
{src\}.c{src\}.obj:
$(CC) -nologo $(CFLAGS) -Isrc -DTINYCBOR_VERSION="" -c -Fo$@ $<