Use standard MUIV_ values for IconList sorting flags. Add provisional DisplayMode...
[AROS.git] / scripts / mkdep
blob6cffcc797fe58a2f39b7ef51788bf32a0de33d4a
1 #!/bin/sh
3 while [ $# != 0 ]; do
4 case "$1" in
5 -o)
6 dest="$2"
7 shift
8 ;;
9 -o*)
10 dest="`echo $1 | cut -c3-`"
12 -g|-Wall|-O*)
14 -D|-I)
15 args="$args '$1' '$2'"
16 shift
18 *.c)
19 files="$files '$1'"
21 *.cc)
22 files="$files '$1'"
25 args="$args '$1'"
27 esac
28 shift
29 done
31 if [ "x$files" = x ]; then
32 exit 0
35 if [ "x$dest" = x ]; then
36 echo "$0: Error: -o missing"
37 exit 1
40 if [ "x$AROS_CC" = x ]; then
41 echo "$0: Error: AROS_CC not defined"
42 exit 1
45 CMD="$AROS_CC -M $args $files | sed 's#^.*\.o:#`dirname $dest`/&#'"
46 #echo $CMD
48 eval $CMD > $dest