summarylogtreecommitdiffstats
path: root/a68k-fast
blob: 5f530c08bf64842e192e4b99762cfebe10acb30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

if [ -z ${1+x} ]; then
    FILES=$(echo ./*.asm)

    echo
    echo "--> Compiling $FILES"
    echo

    sh "$0" ./*.asm
    exit
fi

if [ ! -f "$1" ]; then
    echo "$0: Can't find file '$1'"
    exit 1
fi

if [ -z ${2+x} ]; then
   FILE_NAME=$(echo $1 | sed "s/.asm/.hex/")
else
   FILE_NAME=$2
fi

a68k "$1" -o"$FILE_NAME" -s -n -rmal