/**/#
/**/#	This is an Imakefile for the XGobi program.  The only changes that
/**/#	should need to be made is for the XGOBIDIR variable and sometimes
/**/#	the random number generator.
/**/#
/**/#  Set XGOBIDIR to the directory containing 
/**/#  the xgobi directories src, help, ps, etc.
        XGOBIDIR = $(PWD)/..
              CC = cc
              LD = 
     CDEBUGFLAGS = -g
#EXTRA_LDOPTIONS = -static

/**/#  Choose a random number generator, random or drand48
              #R = USE_RANDOM
               R = USE_DRAND48

#ifdef HPArchitecture
               R = USE_DRAND48
       CCOPTIONS = -Aa -D_HPUX_SOURCE -DXLIB_ILLEGAL_ACCESS 
#endif

 LOCAL_LIBRARIES = XawClientLibs
   SYS_LIBRARIES = -lm
         DEFINES = -D$(R) -DDEFAULTDIR=\"$(XGOBIDIR)\"

SRCS = *.c
OBJ = xgobi_init.o pipeline.o read_array.o \
	initialize.o widgets.o callbacks.o getfname.o \
	xyplot.o make_axes.o \
	spin_cbacks.o spin.o \
	tour_init.o tour_util.o tour.o tour_cbacks.o tour_send.o gt_ctls.o \
	tour_pp.o svd.o kernel.o \
	legendre.o hermite.o natrl_hermite.o de_indices.o \
	central_mass.o holes.o skewness.o \
	tour_section.o corr.o corr_index.o corr_pursuit.o corr_util.o \
	scaling.o scale_cbacks.o \
	brush_init.o brush_cbacks.o brush.o paint.o brush_send.o \
	identify.o var_panel.o transform.o \
	help.o prt_plotwin.o subset.o vc_lists.o \
	plot_once.o dotplot.o texture.o move_points.o \
	line_editor.o missing.o  show_message.o smooth.o smooth_fns.o \
	save_data.o new_data.o read_data.o jitter.o parcoords.o utils.o

OBJS = xgobi.o ${OBJ} 

ComplexProgramTarget(xgobi)

lib:: libxgobi.a
libxgobi.a:  ${OBJS}
	rm -f libxgobi.a
	ar cr libxgobi.a ${OBJ}
	ranlib libxgobi.a


pure: ${OBJS}
	purify -cache-dir=/tmp  -always-use-cache-dir=yes -collector=/usr/local/pkg/gnu/lib/gcc-lig/sparc-sun-sunos4.1.3/2.6.0/ld ${CC} ${CFLAGS} ${LD} -o xgobi xgobi.o ${OBJ} ${LOCAL_LIBRARIES} ${SYS_LIBRARIES}
