home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lclint.zip
/
lclint-2_3h-os2-bin.zip
/
test
/
db1
/
Makefile
< prev
next >
Wrap
Makefile
|
1997-09-03
|
2KB
|
74 lines
###
### LCLint db1 test
###
### Taken from sample, second iteration: weakchecks
###
.SUFFIXES: .lcl .lcs .lh .h .c .o
.PHONY: check
SHELL = /bin/csh -f
LCLINT = lclint
LCL = $(LCLINT) -specundef +lh +quiet -nof
LCLINTLH = $(LCLINT) +lh
LCSFILES = dbase.lcs employee.lcs empset.lcs erc.lcs eref.lcs ereftab.lcs
MODULES = employee eref empset ereftab erc dbase drive.c
OBJS = dbase.o employee.o empset.o erc.o eref.o ereftab.o
test:
$(MAKE) -e clean
$(MAKE) -e check
check: $(LCSFILES)
$(LCLINT) -showcol -weak +showscan $(MODULES) -expect 16
$(LCLINT) -showcol +strict -modfilesystem +showscan +showsummary $(MODULES) -expect 327
### 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
### file is updated.
.lcl.lh:
$(LCL) $*.lcl
.lcl.lcs:
$(LCL) $*.lcl
.lh.h:
touch $*.h
.c.o:
$(GCC) -c $*.c
###
### Clean removes junk and all derived files.
### Tidy removes junk and object and executable files.
###
clean: tidy
-@rm -f *.c.html *.lcl.html *.h.html *.lh.html *.lcs *.lh >& /dev/null
tidy:
-@rm -f ,* .,* *.CKP *.BAK .emacs_[0-9]* core a.out *.*~ *~ *.o drive >& /dev/null
### The following dependencies ensure that imported LCL specs
### are checked before the specs that import them.
dbase.lcs: employee.lcs empset.lcs
empset.lcs: employee.lcs
erc.lcs: eref.lcs
eref.lcl: employee.lcs
ereftab.lcs: employee.lcs eref.lcs
### The following dependencies ensure that a .o file is recompiled when the
### corresponding .c file, or one of the .h files it #includes, is changed.
dbase.o: dbase.c bool.h dbase.h employee.h empset.h
drive.o: drive.c bool.h dbase.h employee.h empset.h erc.h eref.h ereftab.h
employee.o: employee.c employee.h
empset.o: empset.c bool.h empset.h erc.h eref.h employee.h employee.h
erc.o: erc.c bool.h erc.h eref.h employee.h
eref.o: eref.c eref.h employee.h
ereftab.o: ereftab.c bool.h ereftab.h erc.h eref.h employee.h