Added include directories
This commit is contained in:
		
							parent
							
								
									3777699ed4
								
							
						
					
					
						commit
						9b68f0e322
					
				
					 2 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue