NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_alias = @build_alias@
+build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
+target_alias = @target_alias@
+target_triplet = @target@
AMTAR = @AMTAR@
AWK = @AWK@
BISON = @BISON@
CPPSRC = cppmain.c cpplib.c cppexp.c cpphash.c cpperror.c
-CSRC = uentry.c cprim.c macrocache.c qual.c qtype.c stateClause.c \
+CSRC = context.c uentry.c cprim.c macrocache.c qual.c qtype.c stateClause.c \
stateClauseList.c ctype.c cvar.c clabstract.c idDecl.c clause.c \
globalsClause.c modifiesClause.c warnClause.c functionClause.c \
functionClauseList.c metaStateConstraint.c metaStateConstraintList.c \
SPLINTSRC = exprNode.c exprChecks.c llmain.c
CHECKSRC = structNames.c transferChecks.c varKinds.c nameChecks.c
-GLOBSRC = context.c globals.c flags.c general.c osd.c reader.c mtreader.c
+GLOBSRC = globals.c flags.c general.c osd.c reader.c mtreader.c
GRAMSRC = cgrammar.c cscanner.c mtscanner.c mtgrammar.c llgrammar.c signature.c
Headers/exprNode.h Headers/quantifierNode.h \
Headers/exprNodeList.h Headers/quantifierNodeList.h \
Headers/exprNodeSList.h Headers/randomNumbers.h \
- Headers/fcnNode.h Headers/rangeTable.h \
+ Headers/fcnNode.h \
Headers/fcnNodeList.h Headers/reader.h \
Headers/fileId.h Headers/refTable-branch.h \
Headers/fileIdList.h Headers/renamingNode.h \
Headers/general.h Headers/sortList.h \
Headers/genericTable.h Headers/sortSet.h \
Headers/globalList.h Headers/sortSetList.h \
- Headers/globalsClause.h Headers/source.h \
- Headers/globals.h Headers/specialClauses.h \
+ Headers/globalsClause.h \
+ Headers/globals.h \
Headers/globSet.h Headers/sRef.h \
Headers/gram.h Headers/sRefList.h \
Headers/guardSet.h Headers/sRefSet.h \
Headers/handle.h Headers/sRefSetList.h \
- Headers/hashTable.h Headers/sRefSetStack.h \
+ Headers/sRefSetStack.h \
Headers/idDecl.h Headers/sRefTable.h \
Headers/idDeclList.h Headers/stateClause.h \
Headers/importNode.h Headers/stateClauseList.h \
IFILES = ctbase.i cttable.i exprDataQuite.i
-EXTRA_DIST = DATE $(BISON_SRC) bison.head bison.reset $(HEADERSRC) \
+EXTRA_DIST = $(BISON_SRC) bison.head bison.reset $(HEADERSRC) \
flags.def cscanner.l flex.head flex.reset $(IFILES) \
- Headers/256_random_numbers.nf Headers/splintMacros.nf Headers/reservedNames.nf
+ Headers/256_random_numbers.nf Headers/splintMacros.nf Headers/reservedNames.nf Makefile.binary.am Makefile.binary.in
#Files that are used on systems that do not have bison or yacc
DER_FILES = $(DER_BISON_FILES)
-COMMONSRC = $(OVERFLOWCHSRC) $(CPPSRC) $(CSRC) $(CHECKSRC) $(GENERALSRC) \
+COMMONSRC = $(CPPSRC) $(CSRC) $(CHECKSRC) $(GENERALSRC) \
$(GLOBSRC) $(IFACESRC) $(LISTSRC) $(SETSRC) $(METASTATESRC)
-ALLSRC = $(GRAMSRC) $(COMMONSRC) $(SPLINTSRC) $(DER_FILES) $(HEADERSRC)
+ALLSRC = $(GRAMSRC) $(COMMONSRC) $(SPLINTSRC) $(OVERFLOWCHSRC) $(DER_FILES) $(HEADERSRC)
#files to run Splint on
-LINTSRC = $(COMMONSRC) $(SPLINTSRC)
+LINTSRC = $(COMMONSRC) $(SPLINTSRC)
#ALLSRC = $(COMMONSRC) $(SPLINTSRC) $(DER_FILES) $(HEADERSRC)
CHECKS = $(subst .c,.check,$(splint_SOURCES))
-CLEANFILES = splint$(EXEEXT)
+binDir = bin
+
+CLEANFILES = splint$(EXEEXT) ../$(top_builddir)/$(binDir)/splint$(EXEEXT)
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
lcl_LDFLAGS =
am_splint_OBJECTS = cgrammar.$(OBJEXT) cscanner.$(OBJEXT) \
mtscanner.$(OBJEXT) mtgrammar.$(OBJEXT) llgrammar.$(OBJEXT) \
- signature.$(OBJEXT) constraintGeneration.$(OBJEXT) \
- constraintTerm.$(OBJEXT) constraintExprData.$(OBJEXT) \
- constraintExpr.$(OBJEXT) constraint.$(OBJEXT) \
- constraintList.$(OBJEXT) constraintResolve.$(OBJEXT) \
- constraintOutput.$(OBJEXT) loopHeuristics.$(OBJEXT) \
- cppmain.$(OBJEXT) cpplib.$(OBJEXT) cppexp.$(OBJEXT) \
- cpphash.$(OBJEXT) cpperror.$(OBJEXT) uentry.$(OBJEXT) \
- cprim.$(OBJEXT) macrocache.$(OBJEXT) qual.$(OBJEXT) \
- qtype.$(OBJEXT) stateClause.$(OBJEXT) stateClauseList.$(OBJEXT) \
- ctype.$(OBJEXT) cvar.$(OBJEXT) clabstract.$(OBJEXT) \
- idDecl.$(OBJEXT) clause.$(OBJEXT) globalsClause.$(OBJEXT) \
+ signature.$(OBJEXT) cppmain.$(OBJEXT) cpplib.$(OBJEXT) \
+ cppexp.$(OBJEXT) cpphash.$(OBJEXT) cpperror.$(OBJEXT) \
+ context.$(OBJEXT) uentry.$(OBJEXT) cprim.$(OBJEXT) \
+ macrocache.$(OBJEXT) qual.$(OBJEXT) qtype.$(OBJEXT) \
+ stateClause.$(OBJEXT) stateClauseList.$(OBJEXT) ctype.$(OBJEXT) \
+ cvar.$(OBJEXT) clabstract.$(OBJEXT) idDecl.$(OBJEXT) \
+ clause.$(OBJEXT) globalsClause.$(OBJEXT) \
modifiesClause.$(OBJEXT) warnClause.$(OBJEXT) \
functionClause.$(OBJEXT) functionClauseList.$(OBJEXT) \
metaStateConstraint.$(OBJEXT) metaStateConstraintList.$(OBJEXT) \
sRefTable.$(OBJEXT) genericTable.$(OBJEXT) ekind.$(OBJEXT) \
usymtab.$(OBJEXT) multiVal.$(OBJEXT) lltok.$(OBJEXT) \
sRef.$(OBJEXT) lcllib.$(OBJEXT) randomNumbers.$(OBJEXT) \
- fileLib.$(OBJEXT) context.$(OBJEXT) globals.$(OBJEXT) \
- flags.$(OBJEXT) general.$(OBJEXT) osd.$(OBJEXT) \
- reader.$(OBJEXT) mtreader.$(OBJEXT) clauseStack.$(OBJEXT) \
- filelocStack.$(OBJEXT) cstringList.$(OBJEXT) \
- cstringSList.$(OBJEXT) sRefSetList.$(OBJEXT) \
- ctypeList.$(OBJEXT) enumNameList.$(OBJEXT) \
- enumNameSList.$(OBJEXT) exprNodeList.$(OBJEXT) \
- exprNodeSList.$(OBJEXT) uentryList.$(OBJEXT) \
- fileIdList.$(OBJEXT) filelocList.$(OBJEXT) qualList.$(OBJEXT) \
- sRefList.$(OBJEXT) flagMarkerList.$(OBJEXT) \
+ fileLib.$(OBJEXT) globals.$(OBJEXT) flags.$(OBJEXT) \
+ general.$(OBJEXT) osd.$(OBJEXT) reader.$(OBJEXT) \
+ mtreader.$(OBJEXT) clauseStack.$(OBJEXT) filelocStack.$(OBJEXT) \
+ cstringList.$(OBJEXT) cstringSList.$(OBJEXT) \
+ sRefSetList.$(OBJEXT) ctypeList.$(OBJEXT) \
+ enumNameList.$(OBJEXT) enumNameSList.$(OBJEXT) \
+ exprNodeList.$(OBJEXT) exprNodeSList.$(OBJEXT) \
+ uentryList.$(OBJEXT) fileIdList.$(OBJEXT) filelocList.$(OBJEXT) \
+ qualList.$(OBJEXT) sRefList.$(OBJEXT) flagMarkerList.$(OBJEXT) \
idDeclList.$(OBJEXT) flagSpec.$(OBJEXT) globSet.$(OBJEXT) \
intSet.$(OBJEXT) typeIdSet.$(OBJEXT) guardSet.$(OBJEXT) \
usymIdSet.$(OBJEXT) sRefSet.$(OBJEXT) stateInfo.$(OBJEXT) \
mtLoseReference.$(OBJEXT) mtDefaultsDeclList.$(OBJEXT) \
mtDefaultsDecl.$(OBJEXT) mtMergeItem.$(OBJEXT) \
mtMergeClause.$(OBJEXT) mtMergeClauseList.$(OBJEXT) \
- exprNode.$(OBJEXT) exprChecks.$(OBJEXT) llmain.$(OBJEXT)
+ exprNode.$(OBJEXT) exprChecks.$(OBJEXT) llmain.$(OBJEXT) \
+ constraintGeneration.$(OBJEXT) constraintTerm.$(OBJEXT) \
+ constraintExprData.$(OBJEXT) constraintExpr.$(OBJEXT) \
+ constraint.$(OBJEXT) constraintList.$(OBJEXT) \
+ constraintResolve.$(OBJEXT) constraintOutput.$(OBJEXT) \
+ loopHeuristics.$(OBJEXT)
splint_OBJECTS = $(am_splint_OBJECTS)
splint_LDFLAGS =
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
CFLAGS = @CFLAGS@
DIST_SOURCES = $(lcl_SOURCES) $(splint_SOURCES)
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = ChangeLog Makefile.am Makefile.in
SOURCES = $(lcl_SOURCES) $(splint_SOURCES)
all: $(BUILT_SOURCES)
$(CP) cgrammar.c.der cgrammar.c; \
else \
echo '* Making cgrammar.c'; \
- echo '* Expect 141 shift/reduce conflicts and 111 reduce/reduce conflicts.'; \
+ echo '* Expect 154 shift/reduce conflicts and 115 reduce/reduce conflicts.'; \
echo '* (see cgrammar.y for explanation)'; \
$(BISON) $(YFLAGS) cgrammar.y; \
$(CAT) bison.head cgrammar.tab.c bison.reset >cgrammar.c; \
.PHONY: test
test:
- cd ../test; ${MAKE} --no-print-directory
+ ${MAKE} ; cd ../test; ${MAKE} --no-print-directory
### Automake generates wrong tags
.PHONY: etags
lintnew: splintme
splintme:
- ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude $(LINTSRC) $(LCLSRC) -dump lclint \
- +forcehints -misplacedsharequal +showsourceloc -unrecogcomments \
- -supcounts -fcnuse -exportlocal -constuse -mts file -mts filerw
+ ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude $(LINTSRC) $(OVERFLOWCHSRC) $(LCLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -supcounts -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw
+
+splintsome:
+ ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude lcllib.c -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -supcounts -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw +partial
+
+# drl changed to use # for comment
+#/* $(LINTSRC) $(LCLSRC)*/
+
+splinttest:
+ ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude test.c +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw +keep +supcounts +partial -null
lintbuffercheck:
./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude $(LINTSRC) $(LCLSRC) -dump lclint \
+forcehints -misplacedsharequal +showsourceloc -unrecogcomments \
- -supcounts -fcnuse -exportlocal -constuse -mts file -mts filerw +arraybounds +arrayboundsread +implictconstraint
+ -supcounts -fcnuse -exportlocal -constuse -mts file -mts filerw +bounds +boundsread +implictconstraint -dLINTBUFFERCHECK
+
+all: splint$(EXEEXT) ../$(top_builddir)/$(binDir)/splint$(EXEEXT)
-all: splint$(EXEEXT)
+../$(top_builddir)/$(binDir)/splint$(EXEEXT): splint$(EXEEXT)
+ -$(RM) -f $(top_builddir)/$(binDir)/splint$(EXEEXT)
+ ln -s $(top_builddir)/src/splint$(EXEEXT) $(top_builddir)/$(binDir)/splint$(EXEEXT)
up:
-rm cgrammar.c llgrammar.c mtgrammar.c signature.c cscanner.c