diff options
-rwxr-xr-x | minic/mcc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/minic/mcc b/minic/mcc index 1c54fb9..c8d500e 100755 --- a/minic/mcc +++ b/minic/mcc @@ -1,5 +1,8 @@ #!/bin/sh +DIR=`cd $(dirname $0); pwd` +QBE=$DIR/../obj/qbe + usage() { echo "usage: mcc [LDFLAGS] file.c" >&2 @@ -28,8 +31,8 @@ then fi -../minic/minic < $file > /tmp/minic.ssa && -../obj/qbe < /tmp/minic.ssa > /tmp/minic.s && +$DIR/minic < $file > /tmp/minic.ssa && +$QBE < /tmp/minic.ssa > /tmp/minic.s && cc $flags /tmp/minic.s if test $? -ne 0 |