]> andersk Git - splint.git/blobdiff - test/db2/Makefile
Added support for ISO C99 _Bool and stdbool bool/true/false. The
[splint.git] / test / db2 / Makefile
index 0d8a46e11913be050fee2a38e003d7540beeb5c0..11965e076e17aa9f4e7b2e994b75d2fb838ddeff 100644 (file)
@@ -1,5 +1,5 @@
 ###
-### LCLint db2 test
+### Splint db2 test
 ###
 ### Taken from sample, fifth iteration: memchecks1
 ###
@@ -7,11 +7,11 @@
 .SUFFIXES: .lcl .lcs .lh .h .c .o
 .PHONY: check clean
 
-SHELL = /bin/csh -f
+### SHELL = /bin/csh -f
 
-LCLINT = lclint -booltype "bool"
-LCL = $(LCLINT) -specundef +lh +quiet -nof
-LCLINTLH = $(LCLINT) +lh
+SPLINT = splint -booltype "bool"  -booltrue TRUE -boolfalse FALSE
+LCL = $(SPLINT) -specundef +lh +quiet -nof
+SPLINTLH = $(SPLINT) +lh
 LCSFILES = dbase.lcs employee.lcs empset.lcs erc.lcs eref.lcs ereftab.lcs 
 
 MODULES = employee eref empset ereftab erc dbase drive.c
@@ -22,9 +22,11 @@ test:
        $(MAKE) -e check
 
 check: $(LCSFILES)
-       $(LCLINT) -exportlocal -showcol -allimponly -macrovarprefixexclude $(MODULES) -expect 15
-       $(LCLINT) -exportlocal -showcol +allimponly $(MODULES) -expect 25
-       $(LCLINT) -exportlocal -showcol -memchecks -macrovarprefixexclude $(MODULES)
+       -$(SPLINT) -exportlocal -showcol -allimponly -macrovarprefixexclude $(MODULES) -bufferoverflowhigh -expect 15
+       -$(SPLINT) -exportlocal -showcol +allimponly $(MODULES) -bufferoverflowhigh -expect 25
+       -$(SPLINT) -exportlocal -showcol -memchecks -macrovarprefixexclude -bufferoverflowhigh $(MODULES)
+
+# evans 2002-07-09: added bufferoverflowhigh flags to suppress sprintf warnings
 
 ### The following rules generate .lh and .lcs files from .lcl files.  They also
 ### ensure that .h files appear to be updated whenever the corresponding .lh
@@ -48,10 +50,10 @@ check: $(LCSFILES)
 ###
 
 clean: tidy
-       -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh >& /dev/null
+       -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh 1> /dev/null
 
 tidy:
-       -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive >& /dev/null
+       -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive 1> /dev/null
 
 ### The following dependencies ensure that imported LCL specs 
 ### are checked before the specs that import them.
This page took 1.413595 seconds and 4 git commands to generate.