2 ### This Makefile produces the figures included in the Splint Manual.
5 .SUFFIXES: .out .expect .c .lcl .h .lh .diff
9 SPLINTFLAGS = -warnflags -nof -linelen 55 -hints -showcol -booltype bool -showfunc -exportlocal -exportheader
12 # /u/evs/lclint/scripts/runtohtmls
13 GENHTML = /u/evs/lclint/scripts/genhtmls
14 CTOHTML = /u/evs/bin/ctohtmlplain
15 BASEDIR = /u/evs/perl/basedir
16 MAKERUNNER = /u/evs/lclint/scripts/makerunner
22 all: sample null mstring usedef bool palindrome only stack rstring unique \
23 exposure modify globals annotglobs clauses order loop switch noeffect \
24 ignore setChar multiError bounds
29 $(SPLINT) $(SPLINTFLAGS) sample.c -expect 2
34 $(SPLINT) $(SPLINTFLAGS) null.c -expect 1
39 $(SPLINT) $(SPLINTFLAGS) mstring.c -expect 0
44 $(SPLINT) $(SPLINTFLAGS) usedef.c -expect 3
45 $(SPLINT) $(SPLINTFLAGS) usedef.c +impouts -expect 2
50 $(SPLINT) $(SPLINTFLAGS) bool.c +predboolptr -booltype bool -linelen 70 -expect 7
54 palindrome: palindrome.c mstring.h bool.h
55 $(SPLINT) $(SPLINTFLAGS) palindrome.c -expect 4 -linelen 45
60 $(SPLINT) $(SPLINTFLAGS) only.c -expect 6
65 $(SPLINT) $(SPLINTFLAGS) stack.c -expect 3
73 $(SPLINT) $(SPLINTFLAGS) rstring.c -expect 1
78 $(SPLINT) $(SPLINTFLAGS) unique.c -expect 1
83 $(SPLINT) $(SPLINTFLAGS) returned.c -expect 1
88 $(SPLINT) $(SPLINTFLAGS) exposure.c -expect 4 +checks -exportlocal -exportheader -linelen 50
93 $(SPLINT) +checks $(SPLINTFLAGS) modify.c -expect 2
98 $(SPLINT) +checks $(SPLINTFLAGS) globals.c -expect 2
102 annotglobs: annotglobs.c
103 $(SPLINT) $(SPLINTFLAGS) annotglobs.c -expect 3
108 $(SPLINT) $(SPLINTFLAGS) clauses.c -expect 0
113 $(SPLINT) $(SPLINTFLAGS) order.c +evalorderuncon -expect 4 -linelen 60
114 $(SPLINT) $(SPLINTFLAGS) order.c -expect 3
119 $(SPLINT) $(SPLINTFLAGS) loop.c +infloopsuncon -expect 2
120 $(SPLINT) $(SPLINTFLAGS) loop.c -expect 1
125 $(SPLINT) $(SPLINTFLAGS) switch.c -expect 2
130 $(SPLINT) $(SPLINTFLAGS) noeffect.c +noeffectuncon -expect 3
131 $(SPLINT) $(SPLINTFLAGS) noeffect.c -expect 2
136 $(SPLINT) $(SPLINTFLAGS) bool.h ignore.c -expect 2
137 $(SPLINT) $(SPLINTFLAGS) bool.h ignore.c -retvalbool -expect 1
138 $(SPLINT) $(SPLINTFLAGS) bool.h ignore.c -retvalint -expect 1
143 $(SPLINT) $(SPLINTFLAGS) names.c +distinctinternalnames +internalnamelookalike +isoreserved -expect 3
149 $(SPLINT) $(SPLINTFLAGS) setChar.c +bounds -exportlocal +showconstraintlocation -expect 1
153 multiError: multiError.c
154 $(SPLINT) $(SPLINTFLAGS) multiError.c +bounds -exportlocal +showconstraintlocation -expect 1
159 $(SPLINT) $(SPLINTFLAGS) bounds.c +bounds -exportlocal +showconstraintlocation -expect 1 -linelen 50
162 -rm -f core a.out *.*~