Remove unused pkg dependancy
[platform/upstream/iotivity.git] / extlibs / tinycbor / tinycbor / Makefile.configure
index afb23c4..28f4c92 100644 (file)
@@ -1,10 +1,11 @@
-ALLTESTS = open_memstream funopen gc_sections \
+ALLTESTS = open_memstream funopen fopencookie gc_sections \
           system-cjson cjson
 MAKEFILE := $(lastword $(MAKEFILE_LIST))
 OUT :=
 
 PROGRAM-open_memstream = extern int open_memstream(); int main() { return open_memstream(); }
 PROGRAM-funopen = extern int funopen(); int main() { return funopen(); }
+PROGRAM-fopencookie = extern int fopencookie(); int main() { return fopencookie(); }
 PROGRAM-gc_sections = int main() {}
 CCFLAGS-gc_sections = -Wl,--gc-sections
 
@@ -13,7 +14,7 @@ PROGRAM-cjson += \#include <cJSON.h>\n
 PROGRAM-cjson += int main() { return cJSON_False; }
 CCFLAGS-cjson = -I$(dir $(MAKEFILE))src/cjson
 PROGRAM-system-cjson = $(PROGRAM-cjson)
-CCLFAGS-system-cjson = -lcJSON
+CCFLAGS-system-cjson = -lcJSON
 
 sink:
        @echo >&2 Please run from the top-level Makefile.
@@ -22,7 +23,7 @@ configure: $(foreach it,$(ALLTESTS),check-$(it))
 
 check-%:
        @echo $(subst check-,,$@)-tested := 1 $(OUT)
-       $(if $(V),,@)if echo -e "$($(subst check-,PROGRAM-,$@))" | \
+       $(if $(V),,@)if printf "$($(subst check-,PROGRAM-,$@))" | \
            $(CC) -xc $($(subst check-,CCFLAGS-,$@)) -o /dev/null - $(if $(V),,>/dev/null 2>&1); \
        then \
            echo $(subst check-,,$@)-pass := 1 $(OUT); \