[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Defines in mkoctfile
From: |
Andy Adler |
Subject: |
Defines in mkoctfile |
Date: |
Fri, 14 Aug 1998 14:40:44 -0400 (EDT) |
Hi,
I noticed that mkoctfile will not allow -Ddefines to
be passed to the compiler. Here is a simple patch
to change that.
_____________________________________________________________________
Andy Adler | American Biometric Company | Tel:(613)736-5100x154
address@hidden | 3429 Hawthorne Rd,Ottawa,ON | Fax:(613)736-1348
_____________________________________________________________________
*** mkoctfile.orig Sat Mar 21 19:25:58 1998
--- mkoctfile Fri Aug 14 14:36:52 1998
***************
*** 44,49 ****
--- 44,50 ----
octfiles=
octfile=
incflags=
+ defines=
ldflags=
dbg=:
strip=false
***************
*** 83,88 ****
--- 84,90 ----
-h, -? --help Print this message.
-IDIR Add -IDIR to compile commands.
+ -DDEFINITION Add -DDEFINITION to compile commands.
-lLIB Add library LIB to link command.
-LDIR Add -LDIR to link command.
-o FILE, --output FILE Output file name. Default extension is .oct.
***************
*** 105,110 ****
--- 107,115 ----
-I*)
incflags="$incflags $1"
;;
+ -D*)
+ defines="$defines $1"
+ ;;
-[lL]*)
ldflags="$ldflags $1"
;;
***************
*** 157,164 ****
b=`echo $f | sed 's,\.c$,,'`
o=$b.o
objfiles="$objfiles $o"
! $dbg $CC -c $CPPFLAGS $CPICFLAG $ALL_CFLAGS $incflags $f -o $o
! eval $CC -c $CPPFLAGS $CPICFLAG $ALL_CFLAGS $incflags $f -o $o
done
fi
--- 162,169 ----
b=`echo $f | sed 's,\.c$,,'`
o=$b.o
objfiles="$objfiles $o"
! $dbg $CC -c $CPPFLAGS $CPICFLAG $ALL_CFLAGS $incflags $defines $f -o $o
! eval $CC -c $CPPFLAGS $CPICFLAG $ALL_CFLAGS $incflags $defines $f -o $o
done
fi
***************
*** 177,184 ****
esac
o=$b.o
objfiles="$objfiles $o"
! $dbg $CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $incflags $f -o $o
! eval $CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $incflags $f -o $o
done
fi
--- 182,189 ----
esac
o=$b.o
objfiles="$objfiles $o"
! $dbg $CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $incflags $defines $f -o
$o
! eval $CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $incflags $defines $f -o
$o
done
fi
- Defines in mkoctfile,
Andy Adler <=