ack/bin/cc-and-mkdep.all

22 lines
412 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
1994-06-23 13:47:02 +00:00
: '$Id$'
1991-10-10 14:39:33 +00:00
: 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
$UTIL_HOME/lib.bin/cpp -d -m $cpp_args > $n 2>/dev/null
1991-10-10 14:39:33 +00:00
exec $CC $*