#ifndef XCOMM
#define XCOMM #
#endif

XCOMM
XCOMM  Possible options:
XCOMM
XCOMM  -DNUM_COLORS=<num>
XCOMM		number of colors to use.  Default is 48, max is 64.  It
XCOMM           probably should be a multiple of 3 to give pure RGB values.
XCOMM
XCOMM  -DHASH_TABLE_BITS=<num>
XCOMM		number of bits used to store indexes into the
XCOMM		hash table.  The default is 15, the maximum (without
XCOMM		some recoding) is 16.  The larger this number, the
XCOMM		larger the hash table will be and the more point
XCOMM		locations will saved.
XCOMM
XCOMM		The default of 15 uses 64k for the hash table and
XCOMM		128k for points.
XCOMM
XCOMM  -DNEEDS_TYPEDEFS
XCOMM		define if the typedefs uint_t etc are not automatically
XCOMM		defined for you.  (HPUX 8.0 and 9.0 need this)
XCOMM
XCOMM  -DUSE_USLEEP
XCOMM		use usleep() instead of nap().  (needed for HPUX 8.0)
XCOMM
XCOMM  -DRAND48_PROTO
XCOMM		give prototypes for the *rand48() functions.  (needed
XCOMM		for HPUX 8.0)
XCOMM
XCOMM  -DUSE_RANDOM
XCOMM           Use the BSD random() functions instead of the sysv rand48()
XCOMM           functions.
XCOMM

CCOPTIONS = -DNEEDS_TYPEDEFS


XCOMM DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XLIB)
LDLIBS = -lm


HDRS    = xstar.h patchlevel.h vroot.h
HDREXTS = xstar_ext.h plot_star.h

MOVE	= move_stars_euler1.c move_stars_taylor3.c move_stars_rk4.c \
	move_stars_gpemce8.c move_stars_ab4.c move_stars_ab7.c \
	move_stars_am7.c move_stars_rk4b.c

SYS	= dump_sys.c init_sys_4.c init_sys_8.c init_sys_8b.c \
	init_sys_1a.c init_sys_1b.c init_sys_1c.c

SRCS    = xstar.c init_stars.c init_colors.c global_vars.c \
	  check_bounce.c animate.c collide.c sys_const.c default_init.c \
	  set_sys_param.c set_xmva.c update_screen.c plot_collapsars.c \
	  reset_hstep.c set_star_disp.c

AUX	= README xstar.1 Imakefile \
	  README.xgrav COPYING theory_of_op.ltr n-body.ps Makefile.simple
OBJS    = $(SRCS:.c=.o) $(MOVE:.c=.o) $(SYS:.c=.o) 


ComplexProgramTarget(xstar)

shar:
	shar -l 50 -o xstar.part $(AUX) $(SRCS) $(MOVE) $(SYS) $(HDRS) $(HDREXTS)

tar:
	tar cvzf xstar.tar.gz $(AUX) $(SRCS) $(MOVE) $(SYS) $(HDRS) $(HDREXTS)


$(OBJS)::	$(HDRS)

$(MOVE:.c=.o)::	plot_star.h
