Defines in mkoctfile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Defines in mkoctfile

Andy Adler-5
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
[hidden email] | 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
 



Reply | Threaded
Open this post in threaded view
|

Defines in mkoctfile

John W. Eaton-6
On 14-Aug-1998, Andy Adler <[hidden email]> wrote:

| I noticed that mkoctfile will not allow -Ddefines to
| be passed to the compiler. Here is a simple patch
| to change that.

I made your changes to mkoctfile.in.

Thanks,

jwe