# 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/projects/p3d/Official

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

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

#
# * Imakefile for P3D
# * Author Joel Welling and Chris Nuuja
# * 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.
# *****************************************************************************/
# Installer should not have to change anything in this file
#---------------------------------------------------------------------+
SUBIMAKES= movietop3d marching_cubes pdbmodel flyby drawp3d

# The standard Sun C compiler can't handle prototypes, so avoid drawp3d
# on that platform.

SUBMAKES= movietop3d marching_cubes pdbmodel flyby drawp3d

all:: submakes

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.
