# 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/movietop3d

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

#
# * Imakefile for movietop3d
# * Author Julie Roskies
# * 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.
# *****************************************************************************/
LIBS = -lm

CSOURCE= movietop3d.c emitp3d.c colorpart.c colortable.c displace.c errors.c \
	fillstruct.c structures.c

HFILES= color_defs.h disp_defs.h emit_defs.h err_defs.h fill_defs.h \
	part_defs.h struct_defs.h

OTHER_SOURCE= cc.opt descrip.mms movietop3d.cld

EXECUTABLES = movietop3d

INSTALLABLES = movietop3d

SRC = emitp3d.o structures.o errors.o fillstruct.o \
	colortable.o colorpart.o displace.o

all:: $(EXECUTABLES)

movietop3d: movietop3d.o $(SRC)
	cc $(CFLAGS) -o $@ movietop3d.o $(SRC) $(LIBS)

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.

