From: ceriel Date: Tue, 1 Oct 1991 14:59:33 +0000 (+0000) Subject: Added include directories X-Git-Tag: release-5-5~785 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9b68f0e3220c25d8e84cff9ddaea57eef447c68f;p=ack.git Added include directories --- diff --git a/lang/cem/lint/lpass2/lint b/lang/cem/lint/lpass2/lint index 0a392b704..e89cdf388 100755 --- a/lang/cem/lint/lpass2/lint +++ b/lang/cem/lint/lpass2/lint @@ -8,7 +8,9 @@ PATH=/bin:/usr/bin -EMLINT=/home/top/dick/lint +EMDIR=/usr/em +EMLINT=$EMDIR/lib.bin/lint +INCLUDES=-I$EMDIR/include/_tail_cc #LDEFMACH=-Dmc68000 @@ -36,6 +38,7 @@ while test -n "$1" do case "$1" in -ansi) LPASS1=${LPASS1}.ansi + INCLUDES=-I$EMDIR/include/tail_ac CLIB=ansi_c.llb shift ;; @@ -86,7 +89,7 @@ case "$LIBRARY" in ;; *.c) # a real C-file STATNR=` expr $STATNR + 1 ` - $LPASS1 -S$STATNR -Dlint $PARAMS1 $F + $LPASS1 -S$STATNR -Dlint $PARAMS1 $INCLUDES $F ;; *) # a lint library? case `basename $F` in @@ -137,7 +140,7 @@ case "$LIBRARY" in do case $F in *.c) # a C file - $LPASS1 $PARAMS1 -Dlint -L $F + $LPASS1 $PARAMS1 $INCLUDES -Dlint -L $F ;; *) # a library? case `basename $F` in diff --git a/lang/cem/lint/lpass2/proto.make b/lang/cem/lint/lpass2/proto.make index b73f6d702..be8bc1fda 100644 --- a/lang/cem/lint/lpass2/proto.make +++ b/lang/cem/lint/lpass2/proto.make @@ -49,7 +49,7 @@ pr: $(SRC) lint lint.exec: $(SRC_DIR)/lint - sed -e 's|^EMLINT=.*|EMLINT=$(TARGET_HOME)/lib.bin/lint|' -e 's/#.*//' < $(SRC_DIR)/lint > lint.exec + sed -e 's|^EMDIR=.*|EMDIR=$(TARGET_HOME)|' -e 's/#.*//' < $(SRC_DIR)/lint > lint.exec chmod +x lint.exec lpass2: $(OBJ) next.$(SUF)