11 -DPIC|-fPIC|-fpic|-Kpic|-KPIC)
12 if [ "$pic" != "yes" ] ; then
13 command="$command -DPIC"
17 -f|-fbin|-faout|-faoutb|-fcoff|-felf|-felf64|-fas86| \
18 -fobj|-fwin32|-fwin64|-frdf|-fieee|-fmacho|-fmacho64)
19 # it's a file format specifier for nasm.
23 # maybe a code-generation flag for gcc.
26 incdir=`echo "$1" | sed 's/^-[Ii]//'`
27 if [ "x$incdir" = x -a "x$2" != x ] ; then
30 *) incdir="$2"; shift;;
33 if [ "x$incdir" != x ] ; then
34 # In the case of NASM, the trailing slash is necessary.
35 incdir=`echo "$incdir" | sed 's%/*$%/%'`
36 command="$command -I$incdir"
53 if [ "$o_opt" != yes ] ; then
54 # By default, NASM creates an output file
55 # in the same directory as the input file.
56 outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
57 command="$command $outfile"