#LCLINT = //tmp/lclint-2.5q/bin/lclint
#LCLINTNEW = //afs/cert.org/usr/dlaroche/evLCLintDev/bin/lclint
#LCLINTNEW = /home/drl7x/evLCLintDev/evLCLintDev/bin/lclint
+#LCLINTNEW = /home/drl7x/stabletest/LCLintDev/bin/lclint
LCLINTNEW = lclint
LCLINT = ../bin/lclint
cgrammar.c : cgrammar.c.der cgrammar.y
ifdef BISON
$(BISON) $(YFLAGS) cgrammar.y
- @echo '// Expect 119 shift/reduce conflicts and 115 reduce/reduce conflicts.'
+ @echo '// Expect 141 shift/reduce conflicts and 111 reduce/reduce conflicts.'
@echo '// (see cgrammar.y for explanation)'
@$(CAT) bison.head cgrammar.tab.c bison.reset > cgrammar.c
-@$(MV) Headers/cgrammar_tokens.h Headers/cgrammar_tokens.bak
ifeq ($(CHECK), 1)
${MAKE} $*.check
endif
- @echo '// Compiling '$*.c' / compiled: '`$(OFILES)`' (of 161 files)'
- $(CC) $(CFLAGS) -c $*.c
+ @echo '// Compiling '$*.c' / compiled: '`$(OFILES)`' (of 181 files)'
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
###
### alternatives (tests, releases, backups, etc.)
mkdir ~/temp/lclint-`cat ${VERSION_NUMBER}`
mkdir ~/temp/lclint-`cat ${VERSION_NUMBER}`/src
cp Makefile* ${ALLSRC} ${GRAMS} *.i flags.def ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/
+ cp cscanner.c ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/cscanner.c.der
+ cp lastversion maketags ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/
+ cp *.head *.reset ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/
+ cp cgrammar.c ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/cgrammar.c.der
+ cp llgrammar.c ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/llgrammar.c.der
+ cp signature.c ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/signature.c.der
+ cp mtgrammar.c ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/mtgrammar.c.der
cp -r Headers ~/temp/lclint-`cat ${VERSION_NUMBER}`/src/
cp -r ../lib ~/temp/lclint-`cat ${VERSION_NUMBER}`/lib
cp -r ../imports ~/temp/lclint-`cat ${VERSION_NUMBER}`/imports
cp -r ../test ~/temp/lclint-`cat ${VERSION_NUMBER}`/test
- cp ../configure ../Makefile* ../README ~/temp/lclint-`cat ${VERSION_NUMBER}`/
- cd ~/temp/lclint-`cat ${VERSION_NUMBER}`; rm */*.core ; tar zcvf ~/public_html/lclint/lclint-`cat ~/LCLintDev/src/${VERSION_NUMBER}`-beta.tgz *
- chmod 644 ~/public_html/lclint/lclint-`cat ${VERSION_NUMBER}`.tgz
- @echo "Make release lclint-`cat ${VERSION_NUMBER}`
+ cp ../configure ../Makefile* ../LICENSE ../README ../BUFFERCHECKING ~/temp/lclint-`cat ${VERSION_NUMBER}`/
+ cd ~/temp/lclint-`cat ${VERSION_NUMBER}`; mkdir bin
+ cd ~/temp/lclint-`cat ${VERSION_NUMBER}`; rm -r test/temp
+ cd ~/temp/lclint-`cat ${VERSION_NUMBER}`; rm -f *~ */*~ */*/*~ #* */#* */*/#* .#* */.#* */*/.# */*.core
+ cd ~/temp/lclint-`cat ${VERSION_NUMBER}`; rm -rf CVS */CVS */*/CVS */*/*/CVS */*/*/*/CVS
+ cd ~/temp/; tar czvf ~/public_html/lclint/lclint-`cat ~/LCLintDev/src/${VERSION_NUMBER}`.src.tgz lclint-`cat ~/LCLintDev/src/${VERSION_NUMBER}`
+ chmod 644 ~/public_html/lclint/lclint-`cat ${VERSION_NUMBER}`.src.tgz
+ ls -l ~/public_html/lclint/lclint-*.tgz
+ @echo "Made release lclint-`cat ${VERSION_NUMBER}`"
opt :
ifneq (,$(findstring csh, $(SHELL)))
###
depend:
- $(MAKEDEPEND) $(CINCLUDES) $(CFLAGS) -f Makefile.depend $(SRC) $(GRAMS)
+ $(MAKEDEPEND) $(CINCLUDES) $(CPPFLAGS) -f Makefile.depend $(SRC) $(GRAMS)
###
### analysing dependancies takes a long time and doesn't work terribly
${LCLINTNEW} -f lclint.lclintrc $(CPPFLAGS) +singleinclude cpphash.c +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -supcounts -fcnuse -exportlocal -constuse -mts file -mts filerw +partial
lint:
- ../bin/lclint -f lclint.lclintrc $(CPPFLAGS) +singleinclude $(ALLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -supcounts -fcnuse -exportlocal -constuse
+ ../bin/lclint -f lclint.lclintrc llmain.c $(CPPFLAGS) +singleinclude $(ALLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -supcounts -fcnuse -exportlocal -unrecogcomments -constuse -mts file
# -mts file
${HOME}/lclint-2.8a/bin/lclint -f lclint.lclintrc $(CPPFLAGS) +singleinclude $(ALLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -constuse -exportlocal -supcounts
lint29:
- ${HOME}/lclint-2.9a/bin/lclint -f lclint.lclintrc $(CPPFLAGS) -larchpath .:${HOME}/lclint-2.9a/lib/ +singleinclude $(ALLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -constuse -exportlocal -supcounts
+ ${HOME}/lclint-2.9a/bin/lclint -f lclint.lclintrc $(CPPFLAGS) -larchpath .:${HOME}/lclint-2.9a/lib/ +singleinclue $(ALLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -constuse -exportlocal -supcounts
lintm:
lclint-2.5m -f lclint.lclintrc $(CPPFLAGS) +singleinclude $(ALLSRC) -dump lclint