StarGen User's Manual

Tau Ceti
13 Planets (size proportional to Sqrt(Radius))
Sun Rock Rock Terrestrial Water Ice Ice Jovian Jovian Sub-Jovian Rock Ice Sub-Jovian Rock See
Key
#2 Rock: Low-G, Cold, Airless
#3 Terrestrial: Cool, Wet
#4 Water: High-G, Extremely thick atmosphere

Table of Contents

Building StarGen

I've built StarGen so that it can compiled and run on both Macintosh and Unix systems. It can probably built on other systems such as Windows, especially those that run GNU C. The next two sections describe how to build StarGen on Unix systems, including Mac OS X, and on the Classic Mac OS.

Building StarGen on Unix

On systems with the GNU developer tools, building StarGen should be a simple matter. Simply cd to the directory where the sources were unpacked, and use the make command. Once you have created the stargen executable, you may freely move it anywhere. I keep mine in my private bin directory.
% make stargen
cc -c -O -g -W -Wall -Wno-long-double stargen.c
cc -c -O -g -W -Wall -Wno-long-double accrete.c
cc -c -O -g -W -Wall -Wno-long-double display.c
cc -c -O -g -W -Wall -Wno-long-double Dumas.c
Dumas.c: In function `dumasDumpHoard':
Dumas.c:746: warning: subscript has type `char'
cc -c -O -g -W -Wall -Wno-long-double enviro.c
cc -c -O -g -W -Wall -Wno-long-double propert.c
cc -c -O -g -W -Wall -Wno-long-double utils.c
cc -O -g -W -Wall -Wno-long-double -o stargen stargen.o 
accrete.o display.o Dumas.o enviro.o propert.o utils.o -lm
stargen made

% mv stargen ~/bin/

% stargen
Usage: stargen [options] [system name]
  Options:
    -s#  Set random number seed
    -m#  Specify stellar mass
    -n#  Specify number of systems
    -i#  Number to increment each seed by
    -x   Use the Solar System's masses/orbits
    -X   Use the Solar System's orbits
    -d   Use Dole's 15 nearby stars
    -D#  Use Dole's system #n
    -w   Use 51 nearby stars taken from the Web
    -W#  Use Web system #n
    -p   Specify the path for the output file
    -t   Text-only output
    -v   Increment verbosity
    -g   Show (experimental) atmospheric gases
    -l   List nearby stars and exit
        Nearest stars taken from:
          http://www.solstation.com/stars.htm

Building StarGen on the Macintosh

The Macintosh versions of StarGen were created using Metrowerks Code Warrior.