# 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/src/painter

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

#***************************************************************************
#
# Imakefile for painter renderer
# Copyright 1989, Pittsburgh Supercomputing Center, Carnegie Mellon University
#
# Permission use, copy, and modify this software and its documentation
# without fee for personal use or use within your organization is hereby
# granted, provided that the above copyright notice is preserved in all
# copies and that that copyright and this permission notice appear in
# supporting documentation.  Permission to redistribute this software to
# other organizations or individuals is not granted;  that must be
# negotiated with the PSC.  Neither the PSC nor Carnegie Mellon
# University make any representations about the suitability of this
# software for any purpose.  It is provided "as is" without express or
# implied warranty.
#
# Makefile for the object files of the Painter renderer
#
# Installer should not have to change anything beyond this point.
#---------------------------------------------------------------------

CSOURCE= painter.c painter_clip.c painter_ren.c painter_util.c paintr_trans.c

HFILES= alisp.h alisp_node.h assist.h ge_error.h matrix_ops.h p3d.h painter.h \
	painter_vars.h paintr_strct.h unicos_defs.h unix_defs.h ren.h

OTHER_SOURCE= descrip.mms

all:: submakes painter_ren.o painter.o painter_clip.o painter_util.o \
	paintr_trans.o

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.

