1991-10-10 14:39:33 +00:00
|
|
|
: '$Header$'
|
|
|
|
|
|
|
|
: Compile and make dependencies. First argument is the file on which the
|
|
|
|
: dependencies must be produced. This version is a generic one that should
|
|
|
|
: work for all Unix systems.
|
|
|
|
n=$1
|
|
|
|
shift
|
|
|
|
cpp_args=
|
|
|
|
for i in $*
|
|
|
|
do
|
|
|
|
case $i in
|
|
|
|
-I*|-D*|-U*) cpp_args="$cpp_args $i"
|
|
|
|
;;
|
|
|
|
-*) ;;
|
|
|
|
*) cpp_args="$cpp_args $i"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
1991-12-18 09:40:23 +00:00
|
|
|
$UTIL_HOME/lib.bin/cpp -d -m $cpp_args > $n
|
1991-10-10 14:39:33 +00:00
|
|
|
exec $CC $*
|