home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GRAPHICS
/
rayshade.lzh
/
Makefile.orig
< prev
next >
Wrap
Makefile
|
1990-08-31
|
8KB
|
332 lines
#
# Makefile for rayshade.
#
# Craig Kolb
#
# $Id: Makefile,v 3.0.1.1 90/03/07 21:38:06 craig Exp $
#
# If you are using the Utah Raster Toolkit, you must set RLELIB and RLEINC
# to be the name of the Utah Raster library and include file directory.
#
# If you are not using the Utah Raster Toolkit, you must compile using
# -DNORLE (see below). In this case, you should comment out the next two
# definitions.
#
RLELIB = /usr/u/utah/lib/librle.a
RLEINC = /usr/u/utah/include
#
# Linda compiler, if appropriate.
#
#LCC = /homes/systems/carriero/linda/v2.2/bin/clc
#
# Bin directory and executable name.
#
BINDIR = /usr/u/craig/bin
SHADENAME = rayshade
#
# Compiler flags.
#
# GENERIC (BSD): CFLAGS = -I$(RLEINC)
# SYSV: add -DSYSV
#
# Multimax (shared memory):
# add -DMULTIMAX -DSHAREDMEM
# Linda: add -DLINDA (and move raytrace.c to raytrace.cl)
#
# Long ago, rayshade was compiled on the Amiga using Aztec C and:
# CFLAGS = +fi +C +D +L -DAZTEC
#
# If you are not using the Utah Raster toolkit, add -DNORLE
# If your compiler doesn't understand the void type, add -DNOVOID
#
# If your compiler has trouble with the definitions of
# vecadd(), veccomb(), etc. in funcdefs.h, compile with -DDUMB_CPP
#
# Be sure to add any necessary floating-point hardware switches.
#
CFLAGS = -I$(RLEINC) -O -DSYSV
#
# Libraries:
# BSD: LIBS = $(RLELIB) -lm
# SYSV: LIBS = $(RLELIB) -lm
# AZTEC C (amiga):
# LIBS = $(RLELIB) -lUnixl32 -lmal32 -lml32 -lcl32
#
# Multimax: LIBS = $(RLELIB) -lm -lpp
#
# If you have fast versions of malloc/free available, use them
# (e.g., -lmalloc on MIPS machines).
#
LIBS = $(RLELIB) -lm -lmalloc
#
# Uncomment the following line if you want the
# fast malloc routines in malloc.c to be used.
#
#MALLOC.O = malloc.o
#
# Change "raytrace.o" to "raytrace.lo" below if using Linda.
#
OBJ = main.o ray_options.o setup.o input.o input_yacc.o input_lex.o \
viewing.o object.o bounds.o voxels.o list.o surface.o \
raymath.o matrix.o raytrace.o intersect.o grid.o box.o cone.o \
cylinder.o hf.o plane.o poly.o sphere.o superq.o triangle.o \
texture.o noise.o shade.o atmosphere.o light.o outputp.o \
memory.o version.o $(MALLOC.O)
SRC = main.c ray_options.c setup.c input.c input_yacc.c input_lex.c \
viewing.c object.c bounds.c voxels.c list.c surface.c \
raymath.c matrix.c raytrace.c intersect.c grid.c box.c cone.c \
cylinder.c hf.c plane.c poly.c sphere.c superq.c triangle.c \
texture.c noise.c shade.c atmosphere.c light.c outputp.c \
memory.c version.c
#
# Change $(CC) below to $(LCC) if using Linda.
#
$(SHADENAME): $(OBJ)
$(CC) $(CFLAGS) -o $(SHADENAME) $(OBJ) $(LIBS)
#
# Uncomment the following rule if using Linda.
#
#raytrace.lo: raytrace.cl
# $(LCC) $(CFLAGS) -c raytrace.cl
#
# End of configuration section
#
install: $(SHADENAME)
mv $(SHADENAME) $(BINDIR)/$(SHADENAME)
input_yacc.c: input_yacc.y
yacc -d input_yacc.y
mv y.tab.c input_yacc.c
input_lex.c: input_lex.l
lex -t input_lex.l > input_lex.c
clean:
@ /bin/rm -f $(OBJ) core
realclean:
@ /bin/rm -f $(OBJ) core input_lex.c input_yacc.c y.tab.h
lint:
lint $(CFLAGS) $(SRC)
depend:
(sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
cc -M ${CFLAGS} ${SRC} | sed 's/\.\///; /\//d' \
) >Makefile.new
cp Makefile Makefile.bak
cp Makefile.new Makefile
rm -f Makefile.new
archive:
(cd .. ; tar cvf ../rayshade.arch.tar .)
kit:
(cd .. ; makekit -iPACKING_LIST -oMANIFEST)
# DO NOT DELETE THIS LINE
main.o: main.c
main.o: constants.h
main.o: typedefs.h
main.o: datatypes.h
main.o: primobj.h
main.o: defaults.h
ray_options.o: ray_options.c
ray_options.o: constants.h
ray_options.o: typedefs.h
ray_options.o: datatypes.h
ray_options.o: primobj.h
setup.o: setup.c
setup.o: constants.h
setup.o: defaults.h
setup.o: typedefs.h
setup.o: datatypes.h
setup.o: primobj.h
setup.o: funcdefs.h
input.o: input.c
input_yacc.o: input_yacc.c
input_yacc.o: constants.h
input_yacc.o: typedefs.h
input_yacc.o: datatypes.h
input_yacc.o: primobj.h
input_yacc.o: funcdefs.h
input_yacc.o: texture.h
input_yacc.o: atmosphere.h
input_lex.o: input_lex.c
input_lex.o: typedefs.h
input_lex.o: datatypes.h
input_lex.o: primobj.h
input_lex.o: y.tab.h
viewing.o: viewing.c
viewing.o: constants.h
viewing.o: typedefs.h
viewing.o: datatypes.h
viewing.o: primobj.h
viewing.o: funcdefs.h
object.o: object.c
object.o: constants.h
object.o: typedefs.h
object.o: datatypes.h
object.o: primobj.h
object.o: funcdefs.h
object.o: texture.h
bounds.o: bounds.c
bounds.o: constants.h
bounds.o: typedefs.h
bounds.o: datatypes.h
bounds.o: primobj.h
bounds.o: funcdefs.h
voxels.o: voxels.c
voxels.o: constants.h
voxels.o: typedefs.h
voxels.o: datatypes.h
voxels.o: primobj.h
voxels.o: funcdefs.h
list.o: list.c
list.o: constants.h
list.o: typedefs.h
list.o: datatypes.h
list.o: primobj.h
list.o: funcdefs.h
surface.o: surface.c
surface.o: constants.h
surface.o: typedefs.h
surface.o: datatypes.h
surface.o: primobj.h
surface.o: funcdefs.h
raymath.o: raymath.c
raymath.o: typedefs.h
raymath.o: datatypes.h
raymath.o: primobj.h
raymath.o: constants.h
raymath.o: funcdefs.h
matrix.o: matrix.c
matrix.o: typedefs.h
matrix.o: datatypes.h
matrix.o: primobj.h
matrix.o: constants.h
matrix.o: funcdefs.h
raytrace.o: raytrace.c
raytrace.o: typedefs.h
raytrace.o: datatypes.h
raytrace.o: primobj.h
raytrace.o: constants.h
raytrace.o: funcdefs.h
raytrace.o: raytrace.h
intersect.o: intersect.c
intersect.o: typedefs.h
intersect.o: datatypes.h
intersect.o: primobj.h
intersect.o: funcdefs.h
intersect.o: constants.h
grid.o: grid.c
grid.o: constants.h
grid.o: typedefs.h
grid.o: datatypes.h
grid.o: primobj.h
grid.o: funcdefs.h
box.o: box.c
box.o: constants.h
box.o: typedefs.h
box.o: datatypes.h
box.o: primobj.h
box.o: funcdefs.h
cone.o: cone.c
cone.o: typedefs.h
cone.o: datatypes.h
cone.o: primobj.h
cone.o: funcdefs.h
cone.o: constants.h
cylinder.o: cylinder.c
cylinder.o: typedefs.h
cylinder.o: datatypes.h
cylinder.o: primobj.h
cylinder.o: funcdefs.h
cylinder.o: constants.h
hf.o: hf.c
hf.o: typedefs.h
hf.o: datatypes.h
hf.o: primobj.h
hf.o: funcdefs.h
hf.o: constants.h
plane.o: plane.c
plane.o: constants.h
plane.o: typedefs.h
plane.o: datatypes.h
plane.o: primobj.h
plane.o: funcdefs.h
poly.o: poly.c
poly.o: constants.h
poly.o: typedefs.h
poly.o: datatypes.h
poly.o: primobj.h
poly.o: funcdefs.h
sphere.o: sphere.c
sphere.o: constants.h
sphere.o: typedefs.h
sphere.o: datatypes.h
sphere.o: primobj.h
sphere.o: funcdefs.h
superq.o: superq.c
superq.o: constants.h
superq.o: typedefs.h
superq.o: datatypes.h
superq.o: primobj.h
superq.o: funcdefs.h
triangle.o: triangle.c
triangle.o: constants.h
triangle.o: typedefs.h
triangle.o: datatypes.h
triangle.o: primobj.h
triangle.o: funcdefs.h
texture.o: texture.c
texture.o: constants.h
texture.o: typedefs.h
texture.o: datatypes.h
texture.o: primobj.h
texture.o: funcdefs.h
texture.o: texture.h
noise.o: noise.c
noise.o: constants.h
noise.o: typedefs.h
noise.o: datatypes.h
noise.o: primobj.h
noise.o: funcdefs.h
shade.o: shade.c
shade.o: constants.h
shade.o: typedefs.h
shade.o: datatypes.h
shade.o: primobj.h
shade.o: funcdefs.h
shade.o: atmosphere.h
atmosphere.o: atmosphere.c
atmosphere.o: typedefs.h
atmosphere.o: datatypes.h
atmosphere.o: primobj.h
atmosphere.o: constants.h
atmosphere.o: funcdefs.h
atmosphere.o: atmosphere.h
light.o: light.c
light.o: typedefs.h
light.o: datatypes.h
light.o: primobj.h
light.o: funcdefs.h
light.o: constants.h
outputp.o: outputp.c
outputp.o: typedefs.h
outputp.o: datatypes.h
outputp.o: primobj.h
outputp.o: constants.h
outputp.o: funcdefs.h
memory.o: memory.c
memory.o: typedefs.h
memory.o: datatypes.h
memory.o: primobj.h
memory.o: funcdefs.h
version.o: version.c
version.o: patchlevel.h