]> andersk Git - splint.git/blame - test/manual/Makefile
Added win32/ files to CVS
[splint.git] / test / manual / Makefile
CommitLineData
77970e15 1###
2### This Makefile produces the figures included in the Splint Manual.
3###
4
5.SUFFIXES: .out .expect .c .lcl .h .lh .diff
6.PHONY: clean
7
8SPLINT = splint
9SPLINTFLAGS = -warnflags -nof -linelen 55 -hints -showcol -booltype bool -showfunc -exportlocal -exportheader
10
11RUNTOHTML = cat
12# /u/evs/lclint/scripts/runtohtmls
13GENHTML = /u/evs/lclint/scripts/genhtmls
14CTOHTML = /u/evs/bin/ctohtmlplain
15BASEDIR = /u/evs/perl/basedir
16MAKERUNNER = /u/evs/lclint/scripts/makerunner
17
747ae48b 18### SHELL = /bin/csh
77970e15 19
20DIFF = diff
21
22all: sample null mstring usedef bool palindrome only stack rstring unique \
23 exposure modify globals annotglobs clauses order loop switch noeffect \
45569d72 24 ignore setChar multiError bounds
77970e15 25
26### In line example
27.PHONY: sample
28sample: sample.c
29 $(SPLINT) $(SPLINTFLAGS) sample.c -expect 2
30
31### Figure 2:
32.PHONY: null
33null: null.c
34 $(SPLINT) $(SPLINTFLAGS) null.c -expect 1
35
36### Figure 3:
37.PHONY: mstring
38mstring: mstring.c
39 $(SPLINT) $(SPLINTFLAGS) mstring.c -expect 0
40
41### Figure 4:
42.PHONY: usedef
43usedef: usedef.c
44 $(SPLINT) $(SPLINTFLAGS) usedef.c -expect 3
45 $(SPLINT) $(SPLINTFLAGS) usedef.c +impouts -expect 2
46
47### Figure 5:
48.PHONY: bool
49bool: bool.c bool.h
50 $(SPLINT) $(SPLINTFLAGS) bool.c +predboolptr -booltype bool -linelen 70 -expect 7
51
52### Figure 6:
53.PHONY: palindrome
54palindrome: palindrome.c mstring.h bool.h
55 $(SPLINT) $(SPLINTFLAGS) palindrome.c -expect 4 -linelen 45
56
57### Figure 7:
58.PHONY: only
59only: only.c
60 $(SPLINT) $(SPLINTFLAGS) only.c -expect 6
61
62### Figure 8:
63.PHONY: stack
64stack: stack.c
65 $(SPLINT) $(SPLINTFLAGS) stack.c -expect 3
66
67### Figure 9:
68### no code
69
70### Figure 10:
71.PHONY: rstring
72rstring: rstring.c
73 $(SPLINT) $(SPLINTFLAGS) rstring.c -expect 1
74
75### Figure 11:
76.PHONY: unique
77unique: unique.c
78 $(SPLINT) $(SPLINTFLAGS) unique.c -expect 1
79
80### Figure 12:
81.PHONY: returned
82returned: returned.c
83 $(SPLINT) $(SPLINTFLAGS) returned.c -expect 1
84
85### Figure 13:
86.PHONY: exposure
87exposure: exposure.c
88 $(SPLINT) $(SPLINTFLAGS) exposure.c -expect 4 +checks -exportlocal -exportheader -linelen 50
89
90### Figure 14:
91.PHONY: modify
92modify: modify.c
93 $(SPLINT) +checks $(SPLINTFLAGS) modify.c -expect 2
94
95### Figure 15:
96.PHONY: globals
97globals: globals.c
98 $(SPLINT) +checks $(SPLINTFLAGS) globals.c -expect 2
99
100### Figure 16:
101.PHONY: annotglobals
102annotglobs: annotglobs.c
103 $(SPLINT) $(SPLINTFLAGS) annotglobs.c -expect 3
104
105### Figure 17:
106.PHONY: clauses
107clauses: clauses.c
108 $(SPLINT) $(SPLINTFLAGS) clauses.c -expect 0
109
110### Figure 18:
111.PHONY: order
112order: order.c
113 $(SPLINT) $(SPLINTFLAGS) order.c +evalorderuncon -expect 4 -linelen 60
114 $(SPLINT) $(SPLINTFLAGS) order.c -expect 3
115
116### Figure 19:
117.PHONY: loop
118loop: loop.c
119 $(SPLINT) $(SPLINTFLAGS) loop.c +infloopsuncon -expect 2
120 $(SPLINT) $(SPLINTFLAGS) loop.c -expect 1
121
122### Figure 20:
123.PHONY: switch
124switch: switch.c
125 $(SPLINT) $(SPLINTFLAGS) switch.c -expect 2
126
127### Figure 21:
128.PHONY: noeffect
129noeffect: noeffect.c
130 $(SPLINT) $(SPLINTFLAGS) noeffect.c +noeffectuncon -expect 3
131 $(SPLINT) $(SPLINTFLAGS) noeffect.c -expect 2
132
133### Figure 22:
134.PHONY: ignore
135ignore: ignore.c
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
139
140### Figure 23:
f8f5727a 141.PHONY: Anames
77970e15 142names: names.c
143 $(SPLINT) $(SPLINTFLAGS) names.c +distinctinternalnames +internalnamelookalike +isoreserved -expect 3
144
f8f5727a 145### Figure ???:
146
147.PHONY: setChar
148setChar: setChar.c
bb7c2085 149 $(SPLINT) $(SPLINTFLAGS) setChar.c +bounds -exportlocal +showconstraintlocation -expect 1
f8f5727a 150
151
152.PHONY: multiError
153multiError: multiError.c
bb7c2085 154 $(SPLINT) $(SPLINTFLAGS) multiError.c +bounds -exportlocal +showconstraintlocation -expect 1
f8f5727a 155
156
45569d72 157.PHONY: bounds
158bounds: bounds.c
159 $(SPLINT) $(SPLINTFLAGS) bounds.c +bounds -exportlocal +showconstraintlocation -expect 1 -linelen 50
f8f5727a 160
77970e15 161clean:
162 -rm -f core a.out *.*~
163
This page took 0.077102 seconds and 5 git commands to generate.