# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $

MACHINE_DEFS=unix_defs.h
DEVLIBS=
ENV_CFLAGS=-O -DNO_SUB_PROTO
AR= ar rus
RANLIB= ranlib
FILETEST= test -r

DRAWCGM= /afs/psc.edu/@sys/usr/local/lib/libdrawcgm.a

ROOT_PATH = /afs/psc.edu/@sys/usr/local/p3d

INSTALL_PATH = $(ROOT_PATH)

LIB_INSTALL_PATH = $(ROOT_PATH)

COPTIONS = -I/afs/psc.edu/@sys/usr/local/include

LIBOPTIONS = -lm

CFLAGS= $(ENV_CFLAGS) $(COPTIONS)

IMAKEDIR= ../.././imakestuff
THISDIR= p3d/modelbuilders/drawp3d

all::
	@echo " "
	@echo Making ALL in $(THISDIR)

CFLAGS= $(ENV_CFLAGS) $(COPTIONS) -DINCL_PAINTER

FLINK= f77

SUBIMAKES= doc

SUBMAKES= doc

SRC= ge_error.c indent.c c_vlist_mthd.c f_vlist_mthd.c m_vlist_mthd.c \
	p3d_ren_mthd.c null_mthd.c camera_mthd.c transform.c attribute.c \
	gob_mthd.c sphere_mthd.c cyl_mthd.c torus_mthd.c text_mthd.c \
	light_mthd.c ambient_mthd.c pmark_mthd.c pline_mthd.c pgon_mthd.c \
	tri_mthd.c bezier_mthd.c mesh_mthd.c cmap_mthd.c chash_mthd.c \
	p3dgen.c std_cmap.c color.c drawp3d_fi.c drawp3d_ci.c boundbox.c \
	isosurf.c cube_cases.c axis.c vector.c zsurface.c material.c \
	dirichlet.c gauss.c rand_zsurf.c rand_isosurf.c symbol.c ihash_mthd.c \
	assist_attr.c default_attr.c assist_prim.c assist_spln.c \
	assist_text.c assist.c dum_ren_mthd.c

PAINT_SRC= pnt_ren_mthd.c painter.c painter_clip.c painter_util.c \
	paintr_trans.c

GL_SRC= gl_ren_mthd.c

OBJ= ge_error.o indent.o c_vlist_mthd.o f_vlist_mthd.o m_vlist_mthd.o \
	p3d_ren_mthd.o null_mthd.o camera_mthd.o transform.o attribute.o \
	gob_mthd.o sphere_mthd.o cyl_mthd.o torus_mthd.o text_mthd.o \
	light_mthd.o ambient_mthd.o pmark_mthd.o pline_mthd.o pgon_mthd.o \
	tri_mthd.o bezier_mthd.o mesh_mthd.o cmap_mthd.o chash_mthd.o \
	p3dgen.o std_cmap.o color.o drawp3d_fi.o drawp3d_ci.o boundbox.o \
	isosurf.o axis.o vector.o zsurface.o material.o \
	dirichlet.o gauss.o rand_zsurf.o rand_isosurf.o symbol.o ihash_mthd.o \
	assist_attr.o default_attr.o assist_prim.o assist_spln.o \
	assist_text.o assist.o dum_ren_mthd.o

PAINT_OBJ= pnt_ren_mthd.o painter.o painter_clip.o painter_util.o \
	paintr_trans.o

GL_OBJ= gl_ren_mthd.o

CSOURCE= $(SRC) $(PAINT_SRC) $(GL_SRC) c_tester.c obj_tester.c dch_tester.c

FSOURCE= f_tester.f drawp3d_def.f

PAINT_HFILES= painter.h paintr_strct.h unix_defs.h unicos_defs.h

GL_HFILES= gl_strct.h

HFILES= FNAMES.h drawp3d.h fnames_.h ge_error.h indent.h p3d_preamble.h \
	p3dgen.h pgen_objects.h std_cmap.h dirichlet.h random_flts.h \
	assist.h cylinder.h sphere.h hershey.h unix_defs.h unicos_defs.h \
	$(PAINT_HFILES) $(GL_HFILES)

OTHER_SOURCE= c_test_std.t f_test_std.t notes.t \
	ob_test_std.t descrip.mms cc.opt dp3d_fi_jbl.jbl

EXECUTABLES= c_tester f_tester obj_tester libdrawp3d.a

LIB_INSTALLABLES= libdrawp3d.a

LIB = $(DRAWCGM) $(XLIBS) $(LIBOPTIONS)
ALL_OBJ = $(OBJ) $(PAINT_OBJ)

all:: libdrawp3d.a c_tester obj_tester

libdrawp3d.a: $(ALL_OBJ)
	$(AR) $@ $(ALL_OBJ)
	$(RANLIB) $@

c_tester: c_tester.o $(ALL_OBJ)
	$(CC) -o $@ c_tester.o $(ALL_OBJ) $(LIB)

f_tester: f_tester.o $(ALL_OBJ)
	$(FLINK) -o $@ f_tester.o $(ALL_OBJ) $(LIB) $(FLIBS)

obj_tester: obj_tester.o $(ALL_OBJ)
	$(CC) -o $@ obj_tester.o $(ALL_OBJ) $(LIB)

lint: c_tester.c $(SRC) $(PAINT_SRC) $(GL_SRC)
	lint c_tester.c $(SRC)

makefiles: Imakefile subimakes subdepends
	$(IMAKEDIR)/imake -I$(IMAKEDIR) -DTOPDIR=../../. -DTDIR=$(THISDIR)

submakes:
	-for i in dummy $(SUBMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make ); else true ; fi ; done

subimakes:
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (\
	  cd $$i ; \
	  ../$(IMAKEDIR)/imake -I../$(IMAKEDIR) \
	    -DTOPDIR=../../../. -DTDIR=$(THISDIR)/$$i ; \
	  make subimakes ); \
	else true ; fi ; \
	done

depend:
	@echo " "
	@echo Generating dependencies in $(THISDIR)
	$(IMAKEDIR)/mkdepend -DMAKING_DEPEND -- $(CFLAGS) -- $(CSOURCE)

subdepends:
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (\
		cd $$i ; \
		make subdepends depend ); \
	else true ; fi ; \
	done

clean:
	-rm -f *.o core
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make clean ); \
	else true ; fi ; done

clobber: clean
	-rm -f $(EXECUTABLES)
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make clobber ); \
	else true ; fi ; done

install:
	-for i in dummy $(INSTALLABLES) ; do \
	if test $$i != dummy ; then \
		(rm $(INSTALL_PATH)/$$i ; mv $$i $(INSTALL_PATH) ); \
	else true ; fi ; done
	-for i in dummy $(LIB_INSTALLABLES) ; do \
	if test $$i != dummy ; then \
		(rm $(LIB_INSTALL_PATH)/$$i ; mv $$i $(LIB_INSTALL_PATH) ); \
	else true ; fi ; done
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make install ); \
	else true ; fi ; done

.DEFAULT:
	co $(RCSFLAGS) $@

rcsclean:
	rcsclean $(CSOURCE) $(HFILES) $(FSOURCE) $(OTHER_SOURCE) $(DOCS)
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make rcsclean); \
	else true ; fi ; done

rcscheckout: $(CSOURCE) $(HFILES) $(FSOURCE) $(OTHER_SOURCE) $(DOCS)
	-for i in dummy $(SUBIMAKES) ; do \
	if test $$i != dummy ; then (cd $$i ; make rcscheckout); \
	else true ; fi ; done

# Automatically generated dependencies follow
# DO NOT DELETE THIS LINE -- make depend depends on it.

