summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2000-12-06 01:47:28 +0000
committerKen Raeburn <raeburn@mit.edu>2000-12-06 01:47:28 +0000
commitb23882b6113c4b10ca92a9dfae5a4958b6e94bdc (patch)
tree55a7de66291d2126f8ab95b7f70c6f0178777db8 /src
parent4b90751a2e7d6abef245a24def933e505273dbe0 (diff)
try lclint on a com_err test program; misc cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12877 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/et/ChangeLog16
-rw-r--r--src/util/et/Makefile.in32
2 files changed, 41 insertions, 7 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog
index 6be9a3770..6a8aad120 100644
--- a/src/util/et/ChangeLog
+++ b/src/util/et/ChangeLog
@@ -1,3 +1,19 @@
+2000-12-05 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (clean-unix): Clean up lclint files too.
+ (cleant-lclint): New target.
+ (et1.c, et2.c, et1.h, et2.h, test1.c, test1.h, test2.h, test2.c):
+ Show dependencies on awk scripts.
+ (LCLINTOPTS): Remove +boolint, add +mod-uncon, +modinternalstrict,
+ +mod-filesys, remove expected error.
+ (com_err.lcd): New target; processes library through lclint and
+ generates a dump file.
+ (do-lclint): Now runs lclint on one of the test programs, and
+ depends on (but doesn't currently use) com_err.lcd.
+ (rebuild, rebuild-c, rebuild-h): New targets: Rebuild perl
+ versions of awk scripts.
+ (clean-files): Get more generated files from test cases.
+
2000-11-14 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (check-unix): Depend on, and run, t_com_err and
diff --git a/src/util/et/Makefile.in b/src/util/et/Makefile.in
index 2f8fe32a1..fc06d47f4 100644
--- a/src/util/et/Makefile.in
+++ b/src/util/et/Makefile.in
@@ -17,7 +17,7 @@ LIBMAJOR=3
LIBMINOR=0
all-unix:: all-liblinks
-clean-unix:: clean-liblinks clean-libs clean-libobjs
+clean-unix:: clean-liblinks clean-libs clean-libobjs clean-lclint
install-unix:: install-libs
LINTFLAGS=-uhvb
@@ -82,9 +82,11 @@ test2.o: test2.c
test_et.o: test1.h test2.h
et1.o: et1.c
et2.o: et2.c
+test1.c test2.c et1.c et2.c: et_c.awk
+test1.h test2.h et1.h et2.h: et_h.awk
t_com_err.o: et1.h et2.h t_com_err.c
-# /u1/kr/lclint-2.5m/bin/lclint -warnposix -D__sparc
+# /u1/kr/lclint-2.5q/bin/lclint -warnposix -D__sparc
LCLINT=lclint
# +posixlib gets more complete errno list than ansilib
# -usedef turns off bogus warnings from poor dataflow analysis (should be
@@ -96,12 +98,19 @@ LCLINT=lclint
# -exportlocal
# -retvalint allow ignoring of int return values (e.g., fputs)
LCLINTOPTS=+posixlib \
- -usedef -warnposix +charintliteral +ignoresigns -predboolint \
+ -usedef -warnposix +charintliteral +ignoresigns -predboolint +boolint \
-exportlocal -retvalint \
- +mod-uncon +modinternalstrict +modfilesys \
- -expect 1
-do-lclint: error_table.y et_lex.lex.c
- $(LCLINT) $(LCLINTOPTS) $(LOCALINCLUDES) $(DEFS) $(SRCS)
+ +mod-uncon +modinternalstrict +modfilesys
+com_err.lcd: error_table.c error_table.h et_lex.lex.c com_err.h
+ $(LCLINT) $(LCLINTOPTS) $(LOCALINCLUDES) $(DEFS) $(SRCS) \
+ -dump com_err.new -expect 1
+ mv -f com_err.new com_err.lcd
+do-lclint: com_err.lcd t_com_err.c et1.c et2.c et1.h et2.h
+ $(LCLINT) $(LCLINTOPTS) $(LOCALINCLUDES) \
+ $(srcdir)/t_com_err.c et1.c et2.c
+# "-load com_err.lcd" -> lclint brokenness
+clean-lclint:
+ $(RM) com_err.new com_err.lcd
ITS4=its4
ITS4OPTS=
do-its4: error_table.y et_lex.lex.c
@@ -151,6 +160,14 @@ et_c.awk: $(srcdir)/et_c.awk
et_h.awk: $(srcdir)/et_h.awk
$(CP) $(srcdir)/et_h.awk et_h.awk
+rebuild: rebuild-c rebuild-h
+rebuild-c:
+ a2p < $(srcdir)/et_c.awk > $(srcdir)/et_c.tmp
+ mv -f $(srcdir)/et_c.tmp $(srcdir)/et_c.perl
+rebuild-h:
+ a2p < $(srcdir)/et_h.awk > $(srcdir)/et_h.tmp
+ mv -f $(srcdir)/et_h.tmp $(srcdir)/et_h.perl
+
clean-unix::
$(RM) compile_et
@@ -180,6 +197,7 @@ clean-files::
et.ar TAGS y.tab.c lex.yy.c error_table.c \
et_lex.lex.c \
test1.h test1.c test2.h test2.c test_et \
+ et1.c et1.h et2.c et2.h t_com_err \
eddep makedep *.ln
clean-windows::