TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Rob Landley
date: 1995-05-24 02:18:18
subject: Bake V1.00 for EMX now available

Well, I just sent Bake version 1.00 up to hobbes.  Should be in the
"incoming"
directory of ftp.cdrom.com.  If they ever get around to looking at it, I
suggested putting it in the unix/emx09a directory.  The filename is
bakev100.zip.

Bake is "better than make", an easier to use project manager for
EMX.  A bake
file looks like this:

filename.exe
file1.cc
file2.cc
file3.cc

The first line is the "target" file.  Depending on the extension,
bake can make
one of six different types of output files:

  ".exe" : a 32 bit OS/2 native executable.
  ".dll" : A dynamic link library
  ".lib" : A static link library
  ".emx" : A .exe file that uses full EMX unix emulation
           (Uses .o and .a files, runs under both dos & os2 with emx.)
  ".em2" : A .exe file that uses EMX optimized for OS/2.
           (Uses .lib and .obj files, only runs under OS/2, needs emx.dll.)
           (Faster and smaller than .emx, but still highly unix compatible.)
  ".a"   : A unix static library for use with ".emx" executables.

When using emx as a normal OS/2 compiler, you'll probably only use the first
three extensions.

The rest of the lines in the bake file are "source" lines, which
tell it what
the target file is compiled out of.  Extensions on these files that bake knows
how to deal with are:

  ".c"   : ANSI C code
  ".C"   : C++ code
  ".cc"  : C++ code
  ".cxx" : C++ code
  ".cpp" : C++ code
  ".obj" : Pre-compiled object module
  ".lib" : Extra library to link with.
  ".def" : Module definition files
  ".rc"  : Resource file (text)
  ".res" : Resource file (binary)
  ".o"   : Unix style pre-compiled object file (for ".emx" mode)
  ".a"   : Unix style library (".emx" mode)

Bake figures out its own dependencies by looking at the source code.  It's
specific to the EMX version of GCC, so it can provide its own command lines.

In other words, you don't have to do make files anymore.  Just name the file
you want to make and the files it's made out of, and run bake.exe.

The default name for the bake file is "bakefile".  If you want to name it
something else, give the name as the first argument to bake.exe, as in

bake freddy

To use a bake file named "freddy".

It comes with docs.  I spent a lot of time writing up the docs.  It is now 3
am.  Go read the docs.  I'm going to bed.

Rob
 
--- Xblat
* Origin: The Conversation Pit, Marlton NJ 609-985-7553 OS/2 V34 (1:266/30)
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: 266/30 40 100 505 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/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™.