]> andersk Git - splint.git/blame - test/db1/Makefile
splint now tried to define a symbol based on the current processor type.
[splint.git] / test / db1 / Makefile
CommitLineData
885824d3 1###
11db3170 2### Splint db1 test
885824d3 3###
4### Taken from sample, second iteration: weakchecks
5###
6
7.SUFFIXES: .lcl .lcs .lh .h .c .o
80ee600a 8.PHONY: check clean
885824d3 9
4dd72714 10### SHELL = /bin/csh -f
885824d3 11
11db3170 12SPLINT = splint -booltype bool
13LCL = $(SPLINT) -specundef +lh +quiet -nof
14SPLINTLH = $(SPLINT) +lh
885824d3 15LCSFILES = bool.lcs dbase.lcs employee.lcs empset.lcs erc.lcs eref.lcs ereftab.lcs
16
17MODULES = bool.lcl employee eref empset ereftab erc dbase drive.c
18OBJS = dbase.o employee.o empset.o erc.o eref.o ereftab.o
19
20test:
21 $(MAKE) -e clean
22 $(MAKE) -e check
23
a469ccf0 24###
25### Removed +showscan, produces different results on different platforms
26###
27
885824d3 28check: $(LCSFILES)
3e3ec469 29 -$(SPLINT) -showcol -weak $(MODULES) -expect 16
30 -$(SPLINT) -showcol +strict -modfilesystem +showsummary $(MODULES) -expect 333
885824d3 31
32### The following rules generate .lh and .lcs files from .lcl files. They also
33### ensure that .h files appear to be updated whenever the corresponding .lh
34### file is updated.
35
36.lcl.lh:
37 $(LCL) $*.lcl
38
39.lcl.lcs:
40 $(LCL) $*.lcl
41
42.lh.h:
43 touch $*.h
44
45.c.o:
46 $(GCC) -c $*.c
47
48###
49### Clean removes junk and all derived files.
50### Tidy removes junk and object and executable files.
51###
52
53clean: tidy
33c9434a 54 -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh 1> /dev/null
885824d3 55
56tidy:
33c9434a 57 -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive 1>& /dev/null
885824d3 58
59### The following dependencies ensure that imported LCL specs
60### are checked before the specs that import them.
61
62dbase.lcs: employee.lcs empset.lcs
63empset.lcs: employee.lcs
64erc.lcs: eref.lcs
65eref.lcl: employee.lcs
66ereftab.lcs: employee.lcs eref.lcs
67
68### The following dependencies ensure that a .o file is recompiled when the
69### corresponding .c file, or one of the .h files it #includes, is changed.
70
71dbase.o: dbase.c bool.h dbase.h employee.h empset.h
72drive.o: drive.c bool.h dbase.h employee.h empset.h erc.h eref.h ereftab.h
73employee.o: employee.c employee.h
74empset.o: empset.c bool.h empset.h erc.h eref.h employee.h employee.h
75erc.o: erc.c bool.h erc.h eref.h employee.h
76eref.o: eref.c eref.h employee.h
77ereftab.o: ereftab.c bool.h ereftab.h erc.h eref.h employee.h
This page took 0.06741 seconds and 5 git commands to generate.