eliminating misleading messages in case .config file not yet created

Signed-off-by: phirsov <41143811+phirsov@users.noreply.github.com>
This commit is contained in:
phirsov
2018-12-04 15:15:32 -08:00
committed by Thiago Macieira
parent 1db99f95f2
commit e9c6ebe9d6
+7 -1
View File
@@ -81,6 +81,10 @@ endif
-include .config
ifeq ($(wildcard .config),)
$(info .config file not yet created)
endif
ifeq ($(freestanding-pass),1)
TINYCBOR_SOURCES = $(TINYCBOR_FREESTANDING_SOURCES)
else
@@ -96,7 +100,9 @@ TINYCBOR_SOURCES = \
ifeq ($(open_memstream-pass),)
ifeq ($(funopen-pass)$(fopencookie-pass),)
CFLAGS += -DWITHOUT_OPEN_MEMSTREAM
$(warning warning: funopen and fopencookie unavailable, open_memstream can not be implemented and conversion to JSON will not work properly!)
ifeq ($(wildcard .config),.config)
$(warning warning: funopen and fopencookie unavailable, open_memstream can not be implemented and conversion to JSON will not work properly!)
endif
else
TINYCBOR_SOURCES += src/open_memstream.c
endif