
PANEL_INCDIR = $(SRC)/../src.contrib/CERL/SGI/panel/9.6/include
PANEL_LIBDIR = $(SRC)/../src.contrib/CERL/SGI/panel/9.6/lib
IMG_LIBDIR = $(SRC)/../src.contrib/CERL/SGI/libimage/lib

EXTRA_CFLAGS= -I${PANEL_INCDIR} -DVERSION_NUMBER="\"$(VERSION_NUMBER)\""

# use this line if you have two versions of the panel library -
# one for pre-IRIX 5.0, other for IRIX 5.0+, in architecture-specific
# directories 
#PANELLIB= ${PANEL_LIBDIR}/libpanel.a

# otherwise, use this line
PANELLIB= ${PANEL_LIBDIR}/libpanel.\a

# probably not needed - most SGIs have libimage now (see -limage below)
# use this line if you have two versions of the libimage library -
# one for pre-IRIX 5.0, other for IRIX 5.0+, in architecture-specific
# directories 
#IMGLIB= ${IMG_LIBDIR}/libimage.a

# otherwise, use this line (if -limage not found)
#IMGLIB= ${IMG_LIBDIR}/libimage.\a


OFILES = main.o \
	Dcell.o \
	trans.o \
	panel.o \
	panel2.o \
	panel3.o \
	panel4.o \
	panel5.o \
	display.o \
	fringe.o \
	vector.o \
	newcell.o \
	newelev.o \
	norms.o \
	lightdefs.o \
	focus.o \
	save.o \
	show.o \
	script.o \
	writeimg.o \
	path.o \
	latlon.o \
	sites.o \
	siteobj.o \
	fonts.o \
	legend.o \
	drape.o \
	label.o \
	menu.o

PROG = $(BIN_CMD)/SG3d
#PROG = $(BIN_CMD)/sg3d
#PROG = $(BIN_CMD)/sg3dtest
#PROG = ./sg3dnew

$(PROG): $(OFILES) $(DEPVECTLIB) $(DEPGISLIB) $(DEPDATETIMELIB)
	$(CC) -o $@ $(LDFLAGS) $(OFILES) $(PANELLIB) $(VECTLIB) $(GISLIB) $(DATETIMELIB) $(XDRLIB) -lsphere $(MATHLIB) -limage -lfm -lgl
	@rm -f a.out
#	cp doc/catman $(MAN4)/SG3d

main.o: externs.h 
display.o: externs.h

$(DEPVECTLIB): #

