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
Thiago Macieira c52d731e5e cbor.h: let tinycbor-export.h define CBOR_API
And make CBOR_PRIVATE_API fall back to it.

We also need to provide the file for the old Makefile build too.

Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
2025-03-12 16:49:17 -07:00

56 lines
1.3 KiB
Makefile

CFLAGS = -W3
TINYCBOR_HEADERS = src\cbor.h src\cborjson.h src\tinycbor-export.h
TINYCBOR_SOURCES = \
src\cborerrorstrings.c \
src\cborencoder.c \
src\cborencoder_close_container_checked.c \
src\cborencoder_float.c \
src\cborparser.c \
src\cborparser_dup_string.c \
src\cborparser_float.c \
src\cborpretty.c \
src\cborpretty_stdio.c \
src\cborvalidation.c
TINYCBOR_OBJS = \
src\cborerrorstrings.obj \
src\cborencoder.obj \
src\cborencoder_close_container_checked.obj \
src\cborencoder_float.obj \
src\cborparser.obj \
src\cborparser_dup_string.obj \
src\cborparser_float.obj \
src\cborpretty.obj \
src\cborpretty_stdio.obj \
src\cborvalidation.obj
all: src/tinycbor-export.h 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 $@ $**
src\tinycbor-export.h: src\tinycbor-export.h.in
copy $** $@
lib\tinycbor.lib: $(TINYCBOR_OBJS)
-if not exist lib\NUL md lib
lib -nologo /out:$@ $**
mostlyclean:
-del $(TINYCBOR_OBJS)
-del src\tinycbor-export.h
clean: mostlyclean
-del lib\tinycbor.lib
if exist tests\Makefile (cd tests & $(MAKE) clean)
distclean: clean
if exist tests\Makefile (cd tests & $(MAKE) distclean)
tag:
@perl maketag.pl
{src\}.c{src\}.obj:
$(CC) -nologo $(CFLAGS) -Isrc -c -Fo$@ $<