TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Odinn Sorensen
from: Rob Landley
date: 1995-08-22 20:47:10
subject: EMX/G++

> Bake is great!  Thank you very much for writing it. I'm used to Borland C++
> and Watcom C++, but new to EMX. Bake has been a great help to me.

Thanks for saying so.  So three people on the planet (other than me) are
using it.  Nice to know...

> 1. Some way to specify an environment variable or external file which
> contains compiler options. For example I use -funsigned-char always, and
> it's annoying to have to specify it at the top of every bakefile. Actually
> the next wish covers this one too.

I think #2 covers this...

> 2. I want to use bake for my projects using Borland C++, Watcom C++ or any
> other C++ compiler I might have. As I see it, you could fairly easily make
> bake read a configuration file which defines the compiler, linker etc. and
> any commandline options necessary. This should allow us to use bake with any
> C/C++ compiler instead of only EMX.

I've thought about it, and it's not as easy as it seems.  (By no means
impossible, but slightly tricky.)  The reason is the #include parsing.  .c
files and .h files have

#include "blah"

type lines (I'm not checking #include  lines on the theory that
A) they don't change, B) I'd have to check the libpath environment
variable.).

But *.rc files have both "rcinclude" lines and "icon"
lines, and probably others I'm not checking.

Lemme see...  Perhaps something like

Type ".rc" becomes ".res"
process "rcinclude %s" as ".rc"
process "icon" as ".ico"
run "rc -r %s %t"

Something vaguely like that? Hmmm...

> If you don't have time to implement these wishes at this time, I would be
> happy to do it for you, if I had the source.

Two minor problems with posting it.  1) It's more than one file, 2) one of
them is 10k and fido eats anything over 8.

Let me read through the GNU public license again, perhaps I'll release it
with source in the next version under that.


I'll work on this a bit, see what happens.  (There might be some legal
complications now that I work for IBM, but worst case scenario the source
code I wrote  before going to work for them is unquestionably mine, and I
could just post that here for you to work on.  but let me take a crack at
it first...)

Rob
 
--- Xblat
* Origin: The conversation pit, OS/2 in Boca Raton, FL (1:3638/42)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 3638/42 14 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.