12 lines
		
	
	
		
			652 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			652 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| echo Compiling $1 into $2
 | |
| TMPNAME=/tmp/msk$$.c
 | |
| OUTNAME=/tmp/msk.$$
 | |
| NAME=/tmp/msk$$.c
 | |
| cat ../../include/uml.h $1 >$TMPNAME
 | |
| INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
 | |
| gcc -E $INC -o $OUTNAME $TMPNAME 2>&1
 | |
| sed -e 's/!!/#/g' $OUTNAME | sed -e 's/;/\n/g' >$TMPNAME
 | |
| gcc -E $INC -o $OUTNAME $TMPNAME
 | |
| grep -v ^# $OUTNAME | grep -v "^[  	]*$" >$2
 | |
| rm $TMPNAME $OUTNAME
 |