9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] povray for R4
@ 2002-05-19 17:59 andrey mirtchovski
  0 siblings, 0 replies; only message in thread
From: andrey mirtchovski @ 2002-05-19 17:59 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

i was asked off the list whether it's possible to convert the ape/psh
port of POVray to the 4th edition of P9. included are the makefiles
required to compile povray31 for 4th ed.  p9

how to compile:

1. download povuni_d.tgz and povuni_s.tgz from the povray web site
2. uncompress them (directory povray31 will be created)
3. copy the files attached to this email as follows:
	makefile.zlib --> .../povray31/source/zlib/Makefile
	makefile.libpng --> .../povray31/source/libpng/makefile
	makefile.povray --> .../povray31/source/unix/makefile
4. start ape/psh and execute the following:
cd povray31/source/zlib/
make
cd ../libpng
make
cd ../unix
make newunix
cp povray /$objtype/bin/povray

the binaryes will be compiled to expect the include files  in
/lib/povray31, so you can copy the include/ directory there, or use
the -L argument to povray..

have fun :)

[-- Attachment #2.1: Type: text/plain, Size: 313 bytes --]

The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Disposition: attachment; filename=makefile.zlib
	Content-Type: text/plain; charset="US-ASCII"
	Content-Transfer-Encoding: 7bit

[-- Attachment #2.2: makefile.zlib.suspect --]
[-- Type: application/octet-stream, Size: 5444 bytes --]

# Makefile for zlib
# Copyright (C) 1995-1998 Jean-loup Gailly.
# For conditions of distribution and use, see copyright notice in zlib.h

# To compile and test, type:
#   ./configure; make test
# The call of configure is optional if you don't have special requirements
# If you wish to build zlib as a shared library, use: ./configure -s

# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
#    make install
# To install in $HOME instead of /usr/local, use:
#    make install prefix=$HOME

CC=cc

CFLAGS=-O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DDEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
#           -Wstrict-prototypes -Wmissing-prototypes

LDFLAGS=-L. -lz
LDSHARED=$(CC)
CPP=$(CC) -E

VER=1.1.3
LIBS=libz.a
SHAREDLIB=libz.so

AR=ar rc
RANLIB=ranlib
TAR=tar
SHELL=/bin/sh

prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include

OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
       zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o

OBJA =
# to use the asm code: make OBJA=match.o

TEST_OBJS = example.o minigzip.o

DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \
  algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
  nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \
  contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \
  contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \
  contrib/asm[56]86/*.S contrib/iostream/*.cpp \
  contrib/iostream/*.h  contrib/iostream2/*.h contrib/iostream2/*.cpp \
  contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \
  contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \
  contrib/delphi*/*.???

all: example minigzip

test: all
	@LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
	echo hello world | ./minigzip | ./minigzip -d || \
	  echo '		*** minigzip test FAILED ***' ; \
	if ./example; then \
	  echo '		*** zlib test OK ***'; \
	else \
	  echo '		*** zlib test FAILED ***'; \
	fi

libz.a: $(OBJS) $(OBJA)
	$(AR) $@ $(OBJS) $(OBJA)
	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1

match.o: match.S
	$(CPP) match.S > _match.s
	$(CC) -c _match.s
	mv _match.o match.o
	rm -f _match.s

$(SHAREDLIB).$(VER): $(OBJS)
	$(LDSHARED) -o $@ $(OBJS)
	rm -f $(SHAREDLIB) $(SHAREDLIB).1
	ln -s $@ $(SHAREDLIB)
	ln -s $@ $(SHAREDLIB).1

example: example.o $(LIBS)
	$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)

minigzip: minigzip.o $(LIBS)
	$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)

install: $(LIBS)
	-@if [ ! -d $(includedir)  ]; then mkdir $(includedir); fi
	-@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
	cp zlib.h zconf.h $(includedir)
	chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
	cp $(LIBS) $(libdir)
	cd $(libdir); chmod 755 $(LIBS)
	-@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
	cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \
	  rm -f $(SHAREDLIB) $(SHAREDLIB).1; \
	  ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \
	  ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \
	  (ldconfig || true)  >/dev/null 2>&1; \
	fi
# The ranlib in install is needed on NeXTSTEP which checks file times
# ldconfig is for Linux

uninstall:
	cd $(includedir); \
	v=$(VER); \
	if test -f zlib.h; then \
	  v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \
          rm -f zlib.h zconf.h; \
	fi; \
	cd $(libdir); rm -f libz.a; \
	if test -f $(SHAREDLIB).$$v; then \
	  rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \
	fi

clean:
	rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \
	   _match.s maketree

distclean:	clean

zip:
	mv Makefile Makefile~; cp -p Makefile.in Makefile
	rm -f test.c ztest*.c contrib/minizip/test.zip
	v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
	zip -ul9 zlib$$v $(DISTFILES)
	mv Makefile~ Makefile

dist:
	mv Makefile Makefile~; cp -p Makefile.in Makefile
	rm -f test.c ztest*.c contrib/minizip/test.zip
	d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
	rm -f $$d.tar.gz; \
	if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \
	files=""; \
	for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \
	cd ..; \
	GZIP=-9 $(TAR) chofz $$d/$$d.tar.gz $$files; \
	if test ! -d $$d; then rm -f $$d; fi
	mv Makefile~ Makefile

tags:
	etags *.[ch]

depend:
	makedepend -- $(CFLAGS) -- *.[ch]

# DO NOT DELETE THIS LINE -- make depend depends on it.

adler32.o: zlib.h zconf.h
compress.o: zlib.h zconf.h
crc32.o: zlib.h zconf.h
deflate.o: deflate.h zutil.h zlib.h zconf.h
example.o: zlib.h zconf.h
gzio.o: zutil.h zlib.h zconf.h
infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h
infcodes.o: zutil.h zlib.h zconf.h
infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h
inffast.o: zutil.h zlib.h zconf.h inftrees.h
inffast.o: infblock.h infcodes.h infutil.h inffast.h
inflate.o: zutil.h zlib.h zconf.h infblock.h
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
minigzip.o:  zlib.h zconf.h
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h

[-- Attachment #3.1: Type: text/plain, Size: 315 bytes --]

The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Disposition: attachment; filename=makefile.libpng
	Content-Type: text/plain; charset="US-ASCII"
	Content-Transfer-Encoding: 7bit

[-- Attachment #3.2: makefile.libpng.suspect --]
[-- Type: application/octet-stream, Size: 3010 bytes --]

# makefile for libpng on Linux ELF with gcc
# Copyright (C) 1996, 1997 Andreas Dilger
# Copyright (C) 1998 Greg Roelofs
# For conditions of distribution and use, see copyright notice in png.h

CC=cc

# where make install puts libpng.a, libpng.so*, and png.h
prefix=/usr/local

# Where the zlib library and include files are located
#ZLIBLIB=/usr/local/lib
#ZLIBINC=/usr/local/include
ZLIBLIB=../zlib
ZLIBINC=../zlib

ALIGN=
# For I-386:
#ALIGN=-malign-loops=2 -malign-functions=2

WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
         -Wmissing-declarations -Wtraditional -Wcast-align \
         -Wstrict-prototypes -Wmissing-prototypes #-Wconversion

CFLAGS=-I$(ZLIBINC) -D_BSD_EXTENSION
LDFLAGS=-L. -L$(ZLIBLIB) -L$(ZLIBLIB) -lpng -lz -lm

#RANLIB=ranlib
RANLIB=echo

# read libpng.txt or png.h to see why PNGMAJ is 2.  You should not
# have to change it.
PNGMAJ = 2
PNGMIN = 1.0.3
PNGVER = $(PNGMAJ).$(PNGMIN)

INCPATH=$(prefix)/include
LIBPATH=$(prefix)/lib

OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
       pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
       pngwtran.o pngmem.o pngerror.o pngpread.o

OBJSDLL = $(OBJS:.o=.pic.o)

...SUFFIXES:      .c .o .pic.o

...c.pic.o:
	$(CC) -c $(CFLAGS) -fPIC -o $@ $*.c

all: libpng.a

libpng.a: $(OBJS)
	ar rc $@ $(OBJS)
	$(RANLIB) $@

libpng.so: libpng.so.$(PNGMAJ)
	ln -s -f libpng.so.$(PNGMAJ) libpng.so

libpng.so.$(PNGMAJ): libpng.so.$(PNGVER)
	ln -s -f libpng.so.$(PNGVER) libpng.so.$(PNGMAJ)

libpng.so.$(PNGVER): $(OBJSDLL)
	$(CC) -shared -Wl,-soname,libpng.so.$(PNGMAJ) -o libpng.so.$(PNGVER) \
	 $(OBJSDLL) -L$(ZLIBLIB) -lz -lm -lc

pngtest: pngtest.o libpng.so
	$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)

test: pngtest
	./pngtest

install: libpng.a libpng.so.$(PNGVER)
	-@mkdir $(INCPATH) $(LIBPATH)
	cp png.h pngconf.h $(INCPATH)
	chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
	cp libpng.a libpng.so.$(PNGVER) $(LIBPATH)
	chmod 755 $(LIBPATH)/libpng.so.$(PNGVER)
	-@/bin/rm -f $(LIBPATH)/libpng.so.$(PNGMAJ) $(LIBPATH)/libpng.so
	(cd $(LIBPATH); ln -s -f libpng.so.$(PNGVER) libpng.so.$(PNGMAJ); \
	 ln -s -f libpng.so.$(PNGMAJ) libpng.so)

clean:
	/bin/rm -f *.o libpng.a libpng.so* pngtest pngout.png

# DO NOT DELETE THIS LINE -- make depend depends on it.

png.o png.pic.o: png.h pngconf.h
pngerror.o pngerror.pic.o: png.h pngconf.h
pngrio.o pngrio.pic.o: png.h pngconf.h
pngwio.o pngwio.pic.o: png.h pngconf.h
pngmem.o pngmem.pic.o: png.h pngconf.h
pngset.o pngset.pic.o: png.h pngconf.h
pngget.o pngget.pic.o: png.h pngconf.h
pngread.o pngread.pic.o: png.h pngconf.h
pngrtran.o pngrtran.pic.o: png.h pngconf.h
pngrutil.o pngrutil.pic.o: png.h pngconf.h
pngtrans.o pngtrans.pic.o: png.h pngconf.h
pngwrite.o pngwrite.pic.o: png.h pngconf.h
pngwtran.o pngwtran.pic.o: png.h pngconf.h
pngwutil.o pngwutil.pic.o: png.h pngconf.h
pngpread.o pngpread.pic.o: png.h pngconf.h

pngtest.o: png.h pngconf.h

[-- Attachment #4.1: Type: text/plain, Size: 315 bytes --]

The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Disposition: attachment; filename=makefile.povray
	Content-Type: text/plain; charset="US-ASCII"
	Content-Transfer-Encoding: 7bit

[-- Attachment #4.2: makefile.povray.suspect --]
[-- Type: application/octet-stream, Size: 76387 bytes --]

#***************************************************************
#*
#*  UNIX Makefile for Persistence of Vision Raytracer v3.1g
#*
#*  Aug-95 : Created by Chris Cason.
#*  Nov-95 : Modified by Andreas Dilger to combine X and non-X.
#*  Mar-96 : Modified by Andreas Dilger to add SVGA
#*  Nov-98 : Modified by Mark Gordon to remove halo and add media and interior.
#*  Jan-99 : Modified by Mike Fleetwood to add John Cairns 3.1 changes
#*  Feb-99 : Modified by Mike Fleetwood to add a more flexible default
#*           INI file search method
#*  Mar-99 : More cleanup by Mark Gordon, including suggestions by Axel Hecht
#*  Mar-99 : Modified by Mark Gordon to add -ffast-math to Linux compiler
#*           flags
#*  May-99 : Modified by Mark Gordon to add IRIX 6.5 compiler flags
#*           as provided by Johan Eriksson.  Also minor cleanup.
#*  Jun-99 : Modified by Mark Gordon to add make install, Linux
#*           optimization flags, -c flag to touch, platform-specific code
#*           all moved to the top.
#*  Nov-99 : More cleanup by Mark Gordon to fix install, SGI flags
#*
#*
#***************************************************************

# The portions of the makefile that may vary between platforms have been moved
# to the top for the convenience of those who wish to modify them for various
# platforms.

# The exact compiler options may depend on your compiler.  Feel free to
#   modify these as required.
#
# Most compilers are usually satisfied with the -ansi option, if they have
#   a choice between ANSI and non-ANSI compiling.  Use the ANSI mode if
#   possible.  If you can't get -ansi to work or something similar, you may
#   want to add -D__STDC__ to force ANSI prototypes instead of K&R prototypes.
#
# The option -DMEM_TRACE enables memory debugging, but shouldn't be needed
#   for compiles unless you are debugging new code, as it slows things down.
# The option -DPOV_COMMENTS enables informational comments in PNG and PPM
#   format output files (see png_pov.c and ppm.c for more info).
#
# The POVLIBDIR section was added by Mike Fleetwood.
# The -ffast-math flag was added to the Linux flags by Mark Gordon
#
#
# CFLAGS      = -O2 -ansi -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC) $(XLIBINC)
LFLAGS      = $(LIBPNGLIB) $(ZLIBLIB) -lm

# Linux compiler flags, generic
#CFLAGS      = -O6 -finline-functions -ffast-math -c -ansi -DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)

# Linux compiler flags, Pentium optimized
#CFLAGS      = -O6 -finline-functions -ffast-math -c -ansi -m386 -DCPU=586 -DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)

# Linux compiler flags, Pentium II optimized
CFLAGS      = -c -D_BSD_EXTENSION -DCOMPILER_VER=\"plan9-$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)

# HPUX compiler flags
#CFLAGS      = +O2 -finline-functions -c -Aa -D_HPUX_SOURCE -DCOMPILER_VER=\".`uname`.$(CC)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)

# IRIX 6.5 compiler flags, courtesy Johan Eriksson
#CFLAGS	     = -O2 -n32 -mips4 -r10000 -ansi -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC) $(XLIBINC)

# Your compiler
CC          = cc

# The X11 variable should point to the top-level directory where the X11
#   libraries and include files are located.  It should really be set in
#   your system startup script (ie .cshrc or .profile) so that it can be
#   different for each platform without having to change the makefile.
# If you already have it set, comment all of these lines out.  Otherwise,
#   uncomment one of the following lines, or edit one to suit your system.
#X11 = /usr/local/X11R6

# for some SunOS systems:
#X11 = /usr/openwin

# for some AIX systems:
#X11 = /usr/lpp/X11

X11 = /usr/X11R6

# You probably won't need to change these if you have the X11 variable
#   above set properly...
XLIBINC = -I$(X11)/include
XLIBLIB = -L$(X11)/lib -lX11

# libpng and zlib include and library directories.
#
# Use libXXX.a if you want to force static linking of the libraries.
#   Use -Llibdir -lXXX if you want to use shared libraries (if they are
#   available).  It doesn't matter if you only have libXXX.a libraries.
PNGDIR = $(SRCDIR)/libpng
LIBPNGINC = -I$(PNGDIR)
#LIBPNGLIB = $(PNGDIR)/libpng.a
LIBPNGLIB = -L$(PNGDIR) -lpng
#LIBPNGLIB = -L/usr/local/lib -lpng

# The following options are added at the suggestion of Axel Hecht
# Modify png_povDEP accordingly if you use this option
# PREFIX = $HOME
# LIBPNGINCDIR = $(PREFIX)/include
# LIBPNGINC = -I$(LIBPNGINCDIR)
# LIBPNGLIB = -L$(PREFIX)/lib -lpng

ZLIBDIR = $(SRCDIR)/zlib
ZLIBINC = -I$(ZLIBDIR)
#ZLIBLIB = $(ZLIBDIR)/libz.a
ZLIBLIB = -L$(ZLIBDIR) -lz
#ZLIBLIB = -L/usr/local/lib -lz

# The following options are added at the suggestion of Axel Hecht
# PREFIX = $HOME
# ZLIBINCDIR = $(PREFIX)/include
# ZLIBINC = -I$(LIBPNGINCDIR)
# ZLIBLIB = -L$(PREFIX)/lib -lpng

#--------------------------------------------------------------------------
# This concludes the options that may be necessary for POV-Ray to compile.
# You may still wish to modify the next few items, but it should at least
# compile if you have the lines above configured correctly for your system.
#--------------------------------------------------------------------------

# This decides which version of the executable you will get, either the
# Unix text-only version, the X-Windows version, or the SVGAlib version.
# default: config.h unix
#default: unix
default: xwin
#default: svga

# Define the default POV-Ray library location
POVLIBDIR = /lib/povray31

# Define the path under which you want POV-Ray files to be installed,
# typically /usr/local/bin, though Linux distributions may wish to
# alter this to /usr/bin
POVPATH = /$objtype/bin

#----------------------------------------------------------------------
# There should be no compelling reason to customize the makefile beyond
# this point.  Happy compiling!
#----------------------------------------------------------------------

# set ODIR to the location where you want the object files placed.
ODIR=.

# set SRCDIR to the location where the main POV-Ray source is located.
SRCDIR=..

# UTARGET is the name of the text-only UNIX version
UTARGET=povray

# XTARGET is the name of the X-Windows executable.
XTARGET=x-povray

# STARGET is the name of the SVGA executable.
STARGET=s-povray

# This is the suffix for object files.
OBJ     = .o

# This is the command used to delete a file
RM    = /bin/rm -f

# Libraries for the SVGA Linux version
SLIBLIB = -lvga -lvgagl

SRCINC  = -I. -I$(SRCDIR)

#
# End of user specific options
#

POVOBJS = $(ODIR)/atmosph$(OBJ)  \
          $(ODIR)/bbox$(OBJ)     \
          $(ODIR)/bcyl$(OBJ)     \
          $(ODIR)/bezier$(OBJ)   \
          $(ODIR)/blob$(OBJ)     \
          $(ODIR)/boxes$(OBJ)    \
          $(ODIR)/bsphere$(OBJ)  \
          $(ODIR)/camera$(OBJ)   \
          $(ODIR)/chi2$(OBJ)     \
          $(ODIR)/colour$(OBJ)   \
          $(ODIR)/cones$(OBJ)    \
          $(ODIR)/csg$(OBJ)      \
          $(ODIR)/discs$(OBJ)    \
          $(ODIR)/express$(OBJ)  \
          $(ODIR)/fractal$(OBJ)  \
          $(ODIR)/gif$(OBJ)      \
          $(ODIR)/gifdecod$(OBJ) \
          $(ODIR)/hcmplx$(OBJ)   \
          $(ODIR)/hfield$(OBJ)   \
          $(ODIR)/iff$(OBJ)      \
          $(ODIR)/image$(OBJ)    \
          $(ODIR)/interior$(OBJ) \
          $(ODIR)/lathe$(OBJ)    \
          $(ODIR)/lbuffer$(OBJ)  \
          $(ODIR)/lighting$(OBJ) \
          $(ODIR)/matrices$(OBJ) \
	  $(ODIR)/media$(OBJ)    \
          $(ODIR)/mem$(OBJ)      \
          $(ODIR)/mesh$(OBJ)     \
          $(ODIR)/normal$(OBJ)   \
          $(ODIR)/objects$(OBJ)  \
          $(ODIR)/octree$(OBJ)   \
          $(ODIR)/optin$(OBJ)    \
          $(ODIR)/optout$(OBJ)   \
          $(ODIR)/parse$(OBJ)    \
          $(ODIR)/parstxtr$(OBJ) \
          $(ODIR)/pattern$(OBJ)  \
          $(ODIR)/pgm$(OBJ)      \
          $(ODIR)/pigment$(OBJ)  \
          $(ODIR)/planes$(OBJ)   \
          $(ODIR)/png_pov$(OBJ)  \
          $(ODIR)/point$(OBJ)    \
          $(ODIR)/poly$(OBJ)     \
          $(ODIR)/polygon$(OBJ)  \
          $(ODIR)/polysolv$(OBJ) \
          $(ODIR)/povray$(OBJ)   \
          $(ODIR)/ppm$(OBJ)      \
          $(ODIR)/prism$(OBJ)    \
          $(ODIR)/quadrics$(OBJ) \
          $(ODIR)/quatern$(OBJ)  \
          $(ODIR)/rad_data$(OBJ) \
          $(ODIR)/radiosit$(OBJ) \
          $(ODIR)/ray$(OBJ)      \
          $(ODIR)/render$(OBJ)   \
          $(ODIR)/sor$(OBJ)      \
          $(ODIR)/spheres$(OBJ)  \
          $(ODIR)/super$(OBJ)    \
          $(ODIR)/targa$(OBJ)    \
          $(ODIR)/texture$(OBJ)  \
          $(ODIR)/tokenize$(OBJ) \
          $(ODIR)/torus$(OBJ)    \
          $(ODIR)/triangle$(OBJ) \
          $(ODIR)/truetype$(OBJ) \
          $(ODIR)/txttest$(OBJ)  \
          $(ODIR)/userio$(OBJ)   \
          $(ODIR)/vbuffer$(OBJ)  \
          $(ODIR)/vlbuffer$(OBJ) \
          $(ODIR)/warps$(OBJ)    \
          $(MACHINE_OBJ)

#
# Specific module header dependencies for POV-Ray:
#

atmosphDEP              = $(SRCDIR)/atmosph.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
			  $(SRCDIR)/chi2.h     \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lighting.h \
			  $(SRCDIR)/matrices.h \
			  $(SRCDIR)/media.h    \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
			  $(SRCDIR)/ray.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

bboxDEP                 = $(SRCDIR)/bbox.c     \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

bcylDEP                 = $(SRCDIR)/bcyl.c     \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/bcyl.h     \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/vector.h   \
                          config.h             \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/warps.h

bezierDEP               = $(SRCDIR)/bezier.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/bezier.h   \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

blobDEP                 = $(SRCDIR)/blob.c     \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/blob.h     \
                          $(SRCDIR)/bsphere.h  \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

boxesDEP                = $(SRCDIR)/boxes.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

bsphereDEP              = $(SRCDIR)/bsphere.c  \
                          $(SRCDIR)/bsphere.h  \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/vector.h

cameraDEP               = $(SRCDIR)/camera.c   \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/vector.h

chi2DEP                 = $(SRCDIR)/chi2.c     \
                          $(SRCDIR)/chi2.h     \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/povproto.h

colourDEP               = $(SRCDIR)/colour.c   \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/warps.h

conesDEP                = $(SRCDIR)/cones.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/cones.h    \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

csgDEP                  = $(SRCDIR)/csg.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/csg.h      \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/quadrics.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

discsDEP                = $(SRCDIR)/discs.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/discs.h    \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

expressDEP              = $(SRCDIR)/express.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/express.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/parstxtr.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

fractalDEP              = $(SRCDIR)/fractal.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hcmplx.h   \
                          $(SRCDIR)/quatern.h  \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

gifDEP                  = $(SRCDIR)/gif.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/gif.h      \
                          $(SRCDIR)/gifdecod.h \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

gifdecodDEP             = $(SRCDIR)/gifdecod.c \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/gif.h      \
                          $(SRCDIR)/gifdecod.h \
                          $(SRCDIR)/povproto.h

mediaDEP                = $(SRCDIR)/media.c    \
			  config.h             \
			  $(SRCDIR)/atmosph.h  \
			  $(SRCDIR)/bbox.h     \
			  $(SRCDIR)/camera.h   \
                          $(SRCDIR)/chi2.h     \
			  $(SRCDIR)/colour.h   \
			  $(SRCDIR)/frame.h    \
			  $(SRCDIR)/interior.h \
			  $(SRCDIR)/lighting.h \
			  $(SRCDIR)/matrices.h \
			  $(SRCDIR)/media.h    \
			  $(SRCDIR)/mem.h      \
			  $(SRCDIR)/objects.h  \
			  $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h \
			  $(SRCDIR)/point.h    \
			  $(SRCDIR)/povproto.h \
			  $(SRCDIR)/povray.h   \
			  $(SRCDIR)/ray.h      \
			  $(SRCDIR)/render.h   \
			  $(SRCDIR)/texture.h  \
			  $(SRCDIR)/vector.h   \
			  $(SRCDIR)/vlbuffer.h \
			  $(SRCDIR)/warps.h

interiorDEP             = $(SRCDIR)/interior.c \
			  config.h             \
			  $(SRCDIR)/atmosph.h  \
			  $(SRCDIR)/bbox.h     \
			  $(SRCDIR)/camera.h   \
			  $(SRCDIR)/chi2.h     \
			  $(SRCDIR)/colour.h   \
			  $(SRCDIR)/frame.h    \
			  $(SRCDIR)/media.h    \
			  $(SRCDIR)/interior.h \
			  $(SRCDIR)/lighting.h \
			  $(SRCDIR)/matrices.h \
			  $(SRCDIR)/mem.h      \
			  $(SRCDIR)/objects.h  \
			  $(SRCDIR)/pattern.h  \
			  $(SRCDIR)/pigment.h  \
			  $(SRCDIR)/point.h    \
			  $(SRCDIR)/povproto.h \
			  $(SRCDIR)/povray.h   \
			  $(SRCDIR)/ray.h      \
			  $(SRCDIR)/render.h   \
			  $(SRCDIR)/texture.h  \
			  $(SRCDIR)/vector.h   \
			  $(SRCDIR)/vlbuffer.h \
			  $(SRCDIR)/warps.h

hcmplxDEP               = $(SRCDIR)/hcmplx.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hcmplx.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

hfieldDEP               = $(SRCDIR)/hfield.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

iffDEP                  = $(SRCDIR)/iff.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/iff.h      \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

imageDEP                = $(SRCDIR)/image.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

quaternDEP              = $(SRCDIR)/quatern.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/quatern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

latheDEP                = $(SRCDIR)/lathe.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
			  $(SRCDIR)/bcyl.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lathe.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/torus.h    \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

lbufferDEP              = $(SRCDIR)/lbuffer.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lbuffer.h  \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

lightingDEP             = $(SRCDIR)/lighting.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/blob.h     \
                          $(SRCDIR)/bsphere.h  \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/interior.h \
                          $(SRCDIR)/lbuffer.h  \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/media.h    \
                          $(SRCDIR)/mesh.h     \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/ray.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

matricesDEP             = $(SRCDIR)/matrices.c \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/vector.h

memDEP                  = $(SRCDIR)/mem.c      \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/mem.h      \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/povproto.h

meshDEP                 = $(SRCDIR)/mesh.c     \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/mesh.h     \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

normalDEP               = $(SRCDIR)/normal.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/txttest.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

objectsDEP              = $(SRCDIR)/objects.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/interior.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

octreeDEP               = $(SRCDIR)/octree.c   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/vector.h

optinDEP                = $(SRCDIR)/optin.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/mem.h      \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/optin.h    \
                          $(SRCDIR)/optout.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/png_pov.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

optoutDEP               = $(SRCDIR)/optout.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/bezier.h   \
                          $(SRCDIR)/blob.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/bsphere.h  \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/cones.h    \
                          config.h             \
                          $(SRCDIR)/csg.h      \
                          $(SRCDIR)/discs.h    \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/lathe.h    \
                          $(SRCDIR)/lbuffer.h  \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/mesh.h     \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/optin.h    \
                          $(SRCDIR)/optout.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/poly.h     \
                          $(SRCDIR)/polygon.h  \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/prism.h    \
                          $(SRCDIR)/quadrics.h \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/sor.h      \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/super.h    \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/torus.h    \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/truetype.h \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vbuffer.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

parseDEP                = $(SRCDIR)/parse.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/bezier.h   \
                          $(SRCDIR)/blob.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/bsphere.h  \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/colour.h   \
                          $(SRCDIR)/cones.h    \
                          config.h             \
                          $(SRCDIR)/csg.h      \
                          $(SRCDIR)/discs.h    \
                          $(SRCDIR)/express.h  \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/gif.h      \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/iff.h      \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/interior.h \
                          $(SRCDIR)/lathe.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/mesh.h     \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/parstxtr.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/poly.h     \
                          $(SRCDIR)/polygon.h  \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/prism.h    \
                          $(SRCDIR)/quadrics.h \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/sor.h      \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/super.h    \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/torus.h    \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/truetype.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

parstxtrDEP             = $(SRCDIR)/parstxtr.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/express.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/gif.h      \
                          $(SRCDIR)/iff.h      \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/media.h    \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/parstxtr.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/png_pov.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

patternDEP              = $(SRCDIR)/pattern.c  \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/txttest.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/warps.h

pgmDEP                  = $(SRCDIR)/pgm.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

pigmentDEP              = $(SRCDIR)/pigment.c  \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/txttest.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/warps.h

planesDEP               = $(SRCDIR)/planes.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

png_povDEP              = $(SRCDIR)/png_pov.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/optout.h   \
                          $(PNGDIR)/png.h      \
                          $(SRCDIR)/png_pov.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

pointDEP                = $(SRCDIR)/point.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

polyDEP                 = $(SRCDIR)/poly.c     \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/poly.h     \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

polygonDEP              = $(SRCDIR)/polygon.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polygon.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

polysolvDEP             = $(SRCDIR)/polysolv.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

povrayDEP               = $(SRCDIR)/povray.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/bezier.h   \
                          $(SRCDIR)/blob.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/bsphere.h  \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/cones.h    \
                          config.h             \
                          $(SRCDIR)/csg.h      \
                          $(SRCDIR)/discs.h    \
                          $(SRCDIR)/express.h  \
                          $(SRCDIR)/fractal.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/lathe.h    \
                          $(SRCDIR)/lbuffer.h  \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/mem.h      \
                          $(SRCDIR)/mesh.h     \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/optin.h    \
                          $(SRCDIR)/optout.h   \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/png_pov.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/poly.h     \
                          $(SRCDIR)/polygon.h  \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/prism.h    \
                          $(SRCDIR)/quadrics.h \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/sor.h      \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/super.h    \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/torus.h    \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/truetype.h \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vbuffer.h  \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

ppmDEP                  = $(SRCDIR)/ppm.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/optout.h   \
                          $(SRCDIR)/pgm.h      \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ppm.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

prismDEP                = $(SRCDIR)/prism.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/prism.h    \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

quadricsDEP             = $(SRCDIR)/quadrics.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/planes.h   \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/quadrics.h \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

rad_dataDEP             = $(SRCDIR)/rad_data.c \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/radiosit.h \
                          config.h

radiositDEP             = $(SRCDIR)/radiosit.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/optin.h    \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/ray.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

rayDEP                  = $(SRCDIR)/ray.c      \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/interior.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/ray.h      \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h

renderDEP               = $(SRCDIR)/render.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/chi2.h     \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/interior.h \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/octree.h   \
                          $(SRCDIR)/optout.h   \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/radiosit.h \
                          $(SRCDIR)/ray.h      \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vbuffer.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

sorDEP                  = $(SRCDIR)/sor.c      \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/sor.h      \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

spheresDEP              = $(SRCDIR)/spheres.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/spheres.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

superDEP                = $(SRCDIR)/super.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/super.h    \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

svgaDEP                 = svga.c               \
                          config.h             \
                          unixconf.h           \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h

targaDEP                = $(SRCDIR)/targa.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/targa.h    \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

textureDEP              = $(SRCDIR)/texture.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/image.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/normal.h   \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/pigment.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

tokenizeDEP             = $(SRCDIR)/tokenize.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          $(SRCDIR)/colour.h   \
                          config.h             \
                          $(SRCDIR)/express.h  \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

torusDEP                = $(SRCDIR)/torus.c    \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/polysolv.h \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/torus.h    \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

triangleDEP             = $(SRCDIR)/triangle.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

truetypeDEP             = $(SRCDIR)/truetype.c \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/csg.h      \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/truetype.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

txttestDEP              = $(SRCDIR)/txttest.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/txttest.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

unixDEP                 = unix.c               \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/povproto.h \
			  $(SRCDIR)/povray.h   \
			  $(SRCDIR)/optin.h

userioDEP               = $(SRCDIR)/userio.c   \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/parse.h    \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/tokenize.h \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

vbufferDEP              = $(SRCDIR)/vbuffer.c  \
                          $(SRCDIR)/atmosph.h  \
                          $(SRCDIR)/bbox.h     \
                          $(SRCDIR)/boxes.h    \
                          $(SRCDIR)/camera.h   \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/hfield.h   \
                          $(SRCDIR)/lighting.h \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/objects.h  \
                          $(SRCDIR)/point.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/povray.h   \
                          $(SRCDIR)/render.h   \
                          $(SRCDIR)/triangle.h \
                          $(SRCDIR)/userio.h   \
                          $(SRCDIR)/vbuffer.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h \
                          $(SRCDIR)/warps.h

vlbufferDEP             = $(SRCDIR)/vlbuffer.c \
                          $(SRCDIR)/bbox.h     \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/vlbuffer.h

warpsDEP                = $(SRCDIR)/warps.c    \
                          config.h             \
                          $(SRCDIR)/frame.h    \
                          $(SRCDIR)/matrices.h \
                          $(SRCDIR)/pattern.h  \
                          $(SRCDIR)/povproto.h \
                          $(SRCDIR)/texture.h  \
                          $(SRCDIR)/vector.h   \
                          $(SRCDIR)/warps.h

xwindowsDEP             = xwindows.c           \
                          config.h             \
                          unixconf.h           \
                          $(SRCDIR)/frame.h    \
                          xpovicon.xbm         \
                          xpovmask.xbm         \
                          $(SRCDIR)/povproto.h

config.h:
	@echo
	@echo 'You need to select which executable version you want'
	@echo 'to make (xwin, svga, or unix), and then use the'
	@echo 'appropriate make command to create the config.h file.'
	@echo 'Use "make newunix" to make the text-only version.'
	@echo 'Use "make newxwin" to make the X Windows version.'
	@echo 'Use "make newsvga" to make the SVGAlib version.'
	@echo
	@echo 'If you want to build the X-Windows version, you should make'
	@echo 'sure that the X11 variable is set correctly.  It is currently'
	@echo 'set to '$(X11)'.  By default this is set at the top of the'
	@echo 'makefile, but can also be set in your shell startup script.'
	@echo
	@echo 'Both the X Windows and SVGAlib versions also use the'
	@echo 'unixconf.h file, so it must still be present when'
	@echo 'compiling the display capable versions of POV-Ray.'
	@echo
	@false

unix:	$(UTARGET)
	@echo

$(UTARGET):	$(POVOBJS) $(ODIR)/unix$(OBJ)
	$(CC) $(POVOBJS) $(ODIR)/unix$(OBJ) $(LFLAGS) -o $(UTARGET)

svga:	$(STARGET)
	@echo

$(STARGET):	$(POVOBJS) $(ODIR)/svga$(OBJ) $(ODIR)/unix$(OBJ)
	$(CC) $(POVOBJS) $(ODIR)/svga$(OBJ) $(ODIR)/unix$(OBJ) $(LFLAGS) $(SLIBLIB) -o $(STARGET)

xwin:	$(XTARGET)
	@echo

$(XTARGET):	$(POVOBJS) $(ODIR)/xwindows$(OBJ) $(ODIR)/unix$(OBJ)
	$(CC) $(POVOBJS) $(ODIR)/xwindows$(OBJ) $(ODIR)/unix$(OBJ) $(LFLAGS) $(XLIBLIB) -o $(XTARGET)

# Only these files need to be rebuilt if the display type was changed
DISPOBJS = $(ODIR)/povray$(OBJ) $(ODIR)/render$(OBJ) \
           $(ODIR)/userio$(OBJ) $(ODIR)/vbuffer$(OBJ)

newunix:
	-@$(RM) $(DISPOBJS)
	-@cp unixconf.h config.h
	-@touch -c $(ODIR)/*$(OBJ)
	-@$(MAKE) unix

newsvga:
	-@$(RM) $(DISPOBJS)
	-@cp svgaconf.h config.h
	-@touch -c $(ODIR)/*$(OBJ)
	-@$(MAKE) svga

newxwin:
	-@$(RM) $(DISPOBJS)
	-@cp xwinconf.h config.h
	-@touch -c $(ODIR)/*$(OBJ)
	-@$(MAKE) xwin

clean:
	-@$(RM) $(POVOBJS) $(ODIR)/unix$(OBJ) $(ODIR)/xwindows$(OBJ)
	-@$(RM) $(ODIR)/svga$(OBJ) $(UTARGET) $(XTARGET) $(STARGET)

install:
	-@cp povray.1 $(POVPATH)/man/man1
	-@if \
	[ -x $(UTARGET) ]; \
	then \
	cp $(UTARGET) $(POVPATH)/bin; \
	fi
	-@if \
	[ -x $(XTARGET) ]; \
	then \
	cp $(XTARGET) $(POVPATH)/bin; \
	fi
	-@if \
	[ -x $(STARGET) ]; \
	then \
	cp $(STARGET) $(POVPATH)/bin; \
	fi

$(ODIR)/atmosph$(OBJ)  : $(atmosphDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/atmosph.c

$(ODIR)/bbox$(OBJ)     : $(bboxDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/bbox.c

$(ODIR)/bcyl$(OBJ)     : $(bcylDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/bcyl.c

$(ODIR)/bezier$(OBJ)   : $(bezierDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/bezier.c

$(ODIR)/blob$(OBJ)     : $(blobDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/blob.c

$(ODIR)/boxes$(OBJ)    : $(boxesDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/boxes.c

$(ODIR)/bsphere$(OBJ)  : $(bsphereDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/bsphere.c

$(ODIR)/camera$(OBJ)   : $(cameraDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/camera.c

$(ODIR)/chi2$(OBJ)     : $(chi2DEP)
	$(CC) $(CFLAGS) $(SRCDIR)/chi2.c

$(ODIR)/colour$(OBJ)   : $(colourDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/colour.c

$(ODIR)/cones$(OBJ)    : $(conesDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/cones.c

$(ODIR)/csg$(OBJ)      : $(csgDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/csg.c

$(ODIR)/discs$(OBJ)    : $(discsDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/discs.c

$(ODIR)/express$(OBJ)  : $(expressDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/express.c

$(ODIR)/fractal$(OBJ)  : $(fractalDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/fractal.c

$(ODIR)/gif$(OBJ)      : $(gifDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/gif.c

$(ODIR)/gifdecod$(OBJ) : $(gifdecodDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/gifdecod.c

$(ODIR)/hcmplx$(OBJ)   : $(hcmplxDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/hcmplx.c

$(ODIR)/hfield$(OBJ)   : $(hfieldDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/hfield.c

$(ODIR)/iff$(OBJ)      : $(iffDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/iff.c

$(ODIR)/image$(OBJ)    : $(imageDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/image.c

$(ODIR)/interior$(OBJ) : $(interiorDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/interior.c

$(ODIR)/lathe$(OBJ)    : $(latheDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/lathe.c

$(ODIR)/lbuffer$(OBJ)  : $(lbufferDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/lbuffer.c

$(ODIR)/lighting$(OBJ) : $(lightingDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/lighting.c

$(ODIR)/matrices$(OBJ) : $(matricesDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/matrices.c

$(ODIR)/media$(OBJ)    : $(mediaDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/media.c

$(ODIR)/mem$(OBJ)      : $(memDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/mem.c

$(ODIR)/mesh$(OBJ)     : $(meshDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/mesh.c

$(ODIR)/normal$(OBJ)   : $(normalDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/normal.c

$(ODIR)/objects$(OBJ)  : $(objectsDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/objects.c

$(ODIR)/octree$(OBJ)   : $(octreeDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/octree.c

$(ODIR)/optin$(OBJ)    : $(optinDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/optin.c

$(ODIR)/optout$(OBJ)   : $(optoutDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/optout.c

$(ODIR)/parse$(OBJ)    : $(parseDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/parse.c

$(ODIR)/parstxtr$(OBJ) : $(parstxtrDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/parstxtr.c

$(ODIR)/pattern$(OBJ)  : $(patternDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/pattern.c

$(ODIR)/pgm$(OBJ)      : $(pgmDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/pgm.c

$(ODIR)/pigment$(OBJ)  : $(pigmentDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/pigment.c

$(ODIR)/planes$(OBJ)   : $(planesDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/planes.c

$(ODIR)/point$(OBJ)    : $(pointDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/point.c

$(ODIR)/poly$(OBJ)     : $(polyDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/poly.c

$(ODIR)/polygon$(OBJ)  : $(polygonDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/polygon.c

$(ODIR)/polysolv$(OBJ) : $(polysolvDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/polysolv.c

$(ODIR)/povray$(OBJ)   : $(povrayDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/povray.c

$(ODIR)/png_pov$(OBJ)  : $(png_povDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/png_pov.c

$(ODIR)/ppm$(OBJ)      : $(ppmDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/ppm.c

$(ODIR)/prism$(OBJ)    : $(prismDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/prism.c

$(ODIR)/quadrics$(OBJ) : $(quadricsDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/quadrics.c

$(ODIR)/quatern$(OBJ)  : $(quaternDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/quatern.c

$(ODIR)/rad_data$(OBJ) : $(rad_dataDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/rad_data.c

$(ODIR)/radiosit$(OBJ) : $(radiositDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/radiosit.c

$(ODIR)/ray$(OBJ)      : $(rayDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/ray.c

$(ODIR)/render$(OBJ)   : $(renderDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/render.c

$(ODIR)/sor$(OBJ)      : $(sorDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/sor.c

$(ODIR)/spheres$(OBJ)  : $(spheresDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/spheres.c

$(ODIR)/super$(OBJ)    : $(superDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/super.c

$(ODIR)/svga$(OBJ) : $(svgaDEP)
	$(CC) $(CFLAGS) svga.c

$(ODIR)/targa$(OBJ)    : $(targaDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/targa.c

$(ODIR)/texture$(OBJ)  : $(textureDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/texture.c

$(ODIR)/tokenize$(OBJ) : $(tokenizeDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/tokenize.c

$(ODIR)/torus$(OBJ)    : $(torusDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/torus.c

$(ODIR)/triangle$(OBJ) : $(triangleDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/triangle.c

$(ODIR)/truetype$(OBJ) : $(truetypeDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/truetype.c

$(ODIR)/txttest$(OBJ)  : $(txttestDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/txttest.c

$(ODIR)/unix$(OBJ)     : $(unixDEP)
	$(CC) $(CFLAGS) unix.c

$(ODIR)/userio$(OBJ)   : $(userioDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/userio.c

$(ODIR)/vbuffer$(OBJ)  : $(vbufferDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/vbuffer.c

$(ODIR)/vlbuffer$(OBJ) : $(vlbufferDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/vlbuffer.c

$(ODIR)/warps$(OBJ)    : $(warpsDEP)
	$(CC) $(CFLAGS) $(SRCDIR)/warps.c

$(ODIR)/xwindows$(OBJ) : $(xwindowsDEP)
	$(CC) $(CFLAGS) $(XLIBINC) xwindows.c















^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-19 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-19 17:59 [9fans] povray for R4 andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).