8 -DPIC|-fPIC|-fpic|-Kpic|-KPIC)
9 if [ "$pic" != "yes" ] ; then
10 command="$command -DPIC"
14 -f|-fbin|-faout|-faoutb|-fcoff|-felf|-felf64|-fas86| \
15 -fobj|-fwin32|-fwin64|-frdf|-fieee|-fmacho|-fmacho64)
16 # it's a file format specifier for nasm.
20 # maybe a code-generation flag for gcc.
23 incdir=`echo "$1" | sed 's/^-[Ii]//'`
24 if [ "x$incdir" = x -a "x$2" != x ] ; then
27 *) incdir="$2"; shift;;
30 if [ "x$incdir" != x ] ; then
31 # In the case of NASM, the trailing slash is necessary.
32 incdir=`echo "$incdir" | sed 's%/*$%/%'`
33 command="$command -I$incdir"
50 if [ "$o_opt" != yes ] ; then
51 # By default, NASM creates an output file
52 # in the same directory as the input file.
53 outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
54 command="$command $outfile"