]> thyrsus.com Git - microjson.git/commitdiff
Code is cppcheck clean.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 16:17:54 +0000 (12:17 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 16:17:54 +0000 (12:17 -0400)
Makefile
README

index e5be1b1f2d01709b4c3d9e4dc41cd6e293cc0553..080cc4236a4d183fe8a879a52b25c3ee203fdb9a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 # Makefile for the microjson project:
 
+VERSION=0.1
+
 CFLAGS = -O
 
 # Add DEBUG_ENABLE for the tracing code
@@ -16,3 +18,15 @@ check: test_microjson
 clean:
        rm -f microjson.o test_json
 
+CSUPPRESSIONS = -U__UNUSED__
+cppcheck:
+       cppcheck -I. --template gcc --enable=all --suppress=unusedStructMember $(CSUPPRESSIONS) *.[ch]
+
+SOURCES = Makefile *.[ch]
+DOCS = README COPYING
+ALL =  $(SOURCES) $(DOCS)
+microjson-$(VERSION).tar.gz: $(ALL)
+       tar --transform='s:^:microjson-$(VERSION)/:' --show-transformed-names -cvzf microjson-$(VERSION).tar.gz $(ALL)
+
+dist: microjson-$(VERSION).tar.gz
+
diff --git a/README b/README
index 2baa48487a36d499e6956503f7270b04f168e1c5..815d459b243d04d98ecf2b72af14e1171ab0421a 100644 (file)
--- a/README
+++ b/README
@@ -8,6 +8,8 @@ constrained embedded environments.  It may also be of interest for
 code where malloc is verboten to reduce reliability and sexurity 
 vulnerabilities.
 
+BSD license terms apply; see the file COPYING.
+
                                                Eric S. Raymond
                                                Ocrober 2014