4 ### Taken from sample, fifth iteration: memchecks1
7 .SUFFIXES: .lcl .lcs .lh .h .c .o
13 LCL = $(LCLINT) -specundef +lh +quiet -nof
14 LCLINTLH = $(LCLINT) +lh
15 LCSFILES = dbase.lcs employee.lcs empset.lcs erc.lcs eref.lcs ereftab.lcs
17 MODULES = employee eref empset ereftab erc dbase drive.c
18 OBJS = dbase.o employee.o empset.o erc.o eref.o ereftab.o
25 $(LCLINT) -exportlocal -showcol -allimponly -macrovarprefixexclude +showscan $(MODULES) -expect 15
26 $(LCLINT) -exportlocal -showcol +allimponly +showscan $(MODULES) -expect 28
27 $(LCLINT) -exportlocal -showcol -memchecks -macrovarprefixexclude +showscan $(MODULES)
29 ### The following rules generate .lh and .lcs files from .lcl files. They also
30 ### ensure that .h files appear to be updated whenever the corresponding .lh
46 ### Clean removes junk and all derived files.
47 ### Tidy removes junk and object and executable files.
51 -@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh >& /dev/null
54 -@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive >& /dev/null
56 ### The following dependencies ensure that imported LCL specs
57 ### are checked before the specs that import them.
59 dbase.lcs: employee.lcs empset.lcs
60 empset.lcs: employee.lcs
62 eref.lcl: employee.lcs
63 ereftab.lcs: employee.lcs eref.lcs
65 ### The following dependencies ensure that a .o file is recompiled when the
66 ### corresponding .c file, or one of the .h files it #includes, is changed.
68 dbase.o: dbase.c bool.h dbase.h employee.h empset.h
69 drive.o: drive.c bool.h dbase.h employee.h empset.h erc.h eref.h ereftab.h
70 employee.o: employee.c employee.h
71 empset.o: empset.c bool.h empset.h erc.h eref.h employee.h employee.h
72 erc.o: erc.c bool.h erc.h eref.h employee.h
73 eref.o: eref.c eref.h employee.h
74 ereftab.o: ereftab.c bool.h ereftab.h erc.h eref.h employee.h