home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyclopedia of Graphics File Formats Companion
/
GFF_CD.ISO
/
formats
/
uray
/
code
/
makefile
< prev
next >
Wrap
Makefile
|
1994-06-20
|
5KB
|
175 lines
#/************************************************************************
# * *
# * Copyright (c) 1988, David B. Wecker *
# * All Rights Reserved *
# * *
# * This file is part of DBW_uRAY *
# * *
# * DBW_uRAY is distributed in the hope that it will be useful, but *
# * WITHOUT ANY WARRANTY. No author or distributor accepts *
# * responsibility to anyone for the consequences of using it or for *
# * whether it serves any particular purpose or works at all, unless *
# * he says so in writing. Refer to the DBW_uRAY General Public *
# * License for full details. *
# * *
# * Everyone is granted permission to copy, modify and redistribute *
# * DBW_uRAY, but only under the conditions described in the *
# * DBW_uRAY General Public License. A copy of this license is *
# * supposed to have been given to you along with DBW_uRAY so you *
# * can know your rights and responsibilities. It should be in a file *
# * named LICENSE. Among other things, the copyright notice and this *
# * notice must be preserved on all copies. *
# ************************************************************************
# * *
# * Authors: *
# * DBW - David B. Wecker *
# * *
# * Versions: *
# * V1.0 881023 DBW - First released version *
# * V1.1 881110 DBW - Fixed scan coherence code *
# * V1.2 881125 DBW - Removed ALL scan coherence code (useless) *
# * added "fat" extent boxes *
# * V1.3 881203 DBW - Fixed single precision TOLerances *
# * *
# ************************************************************************/
############################################################################
# Amiga floating point definitions (uncomment one set of FFLG,DBL,MLIB)
############################################################################
# Amiga 68000 single precision:
FFLG = +ff
DBL = 0
MLIB = -lm32
# Amiga 68000 double precision:
#FFLG = +fi
#DBL = 1
#MLIB = -lma32
# Amiga 68000 68881:
#FFLG = +f8
#DBL = 1
#MLIB = -lm832
# Amiga 68020 single precision:
#FFLG = +2 +ff
#DBL = 0
#MLIB = -lm32
# Amiga 68020 double precision:
#FFLG = +2 +fi
#DBL = 1
#MLIB = -lma32
# Amiga 68020 68881:
#FFLG = +2 +f8
#DBL = 1
#MLIB = -lm832
############################################################################
# Uncomment either the Amiga or Vax/Ultrix or Vax/VMS definitions:
############################################################################
#############################################################################
# Amiga:
#############################################################################
#CC = cc
#LN = ln
#BFLAGS = -E200 +L -n $(FFLG) -DDODOUBLE=$(DBL) -DAMIGA
#IFLAGS = +Iuray.pre
#HFLAGS = +Huray.pre
#LFLAGS = -g
#CLIB = -lc32
#OBJS = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
# output.o random.o
#CFLAGS = $(BFLAGS) $(IFLAGS)
#SRCS = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
# output.c random.c
#
#all : uray display
#
#uray : $(OBJS)
# $(LN) $(LFLAGS) -o $@ $(OBJS) $(MLIB) $(CLIB)
#
#uray.o : uray.c
# $(CC) $(BFLAGS) $(HFLAGS) $*.c
#
#display : display.c
# $(CC) $(BFLAGS) -o $*.o $*.c
# $(LN) $(LFLAGS) -o $@ $*.o $(MLIB) $(CLIB)
############################################################################
# Vax/Ultrix:
############################################################################
CC = cc
LN = cc
CFLAGS = -g -DDODOUBLE=1 -DU__X -DVAXBYTES
LFLAGS = -g
MLIB = -lm
KITDIR = /usr/users/wecker/kits/uray
OBJS = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
output.o random.o
SRCS = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
output.c random.c
uray : $(OBJS)
$(LN) $(LFLAGS) -o $@ $(OBJS) $(MLIB)
kit : version tar arc shar uuencode
mv uray.tar $(KITDIR)
mv uray.arc $(KITDIR)
mv uray.shar $(KITDIR)
mv uray_??.uu $(KITDIR)
version :
csh -fe Make.version LICENSE uray.h $(SRCS) display.c uray.dat
tar :
tar cvf uray.tar README LICENSE Makefile Make.version uray.h $(SRCS) \
display.c uray.dat uray_??
compress uray.tar
arc :
arc a uray README LICENSE Makefile Make.version uray.h $(SRCS) \
display.c uray.dat uray_??
shar :
shar README LICENSE Makefile Make.version uray.h $(SRCS) display.c \
uray.dat > uray.shar
uuencode :
uuencode uray_2c uray_2c > uray_2c.uu
uuencode uray_2d uray_2d > uray_2d.uu
uuencode uray_2s uray_2s > uray_2s.uu
uuencode uray_cp uray_cp > uray_cp.uu
uuencode uray_dp uray_dp > uray_dp.uu
uuencode uray_sp uray_sp > uray_sp.uu
#############################################################################
# Vax/VMS:
#############################################################################
#CC = cc
#LN = link
#CFLAGS = /debug/define=(DDODOUBLE=1,VMS,VAXBYTES)
#LFLAGS =
#CLIB = ,SYS$LIBRARY:VAXCRTL/LIB
#OBJS = uray.obj,trace.obj,intersect.obj,texture.obj,support.obj,-
# extent.obj,rkm.obj,output.obj,random.obj
#uray.exe : $(OBJS)
# $(LN)$(LFLAGS)/exe=$@ $(OBJS)$(CLIB)