home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-04-04 | 4.4 KB | 158 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 COPYING. 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 *
- # * *
- # ************************************************************************/
-
-
-
- ############################################################################
- # Amiga floating point defs (uncomment one set of FFLG,DBL,MLIB,TARGET)
- ############################################################################
-
- # Amiga 68000 single precision:
- #FFLG = +ff
- #DBL = 0
- #MLIB = -lm32
- #TARGET = uray_s
-
- # Amiga 68000 double precision:
-
- #FFLG = +fi
- #DBL = 1
- #MLIB = -lma32
- #TARGET = uray_d
-
- # Amiga 68000 68881:
-
- #FFLG = +f8
- #DBL = 1
- #MLIB = -lm832
- #TARGET = uray_c
-
- # Amiga 68020 single precision:
-
- #FFLG = +2 +ff
- #DBL = 0
- #MLIB = -lm32
- #TARGET = uray_2s
-
- # Amiga 68020 double precision:
-
- #FFLG = +2 +fi
- #DBL = 1
- #MLIB = -lma32
- #TARGET = uray_2d
-
- # Amiga 68020 68881:
-
- FFLG = +2 +f8
- DBL = 1
- MLIB = -lm832
- TARGET = uray_2c
-
-
- ############################################################################
- # 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 $(TARGET) $(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
- #LFLAGS = -g
- #MLIB = -lm
- #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 :
- # csh -fe Make.version COPYING uray.h $(SRCS) display.c,uray.dat
- # tar cvf uray.tar README COPYING Makefile Make.version uray.h $(SRCS) \
- # display.c,display uray.dat uray.??
- # compress uray.tar
- # arc a uray README COPYING Makefile Make.version uray.h $(SRCS) \
- # display.c,display uray.dat uray.??
- #
-
- #############################################################################
- # Vax/VMS:
- #############################################################################
-
- #CC = cc
- #LN = link
- #CFLAGS = /debug/define=(DDODOUBLE=1,VMS)
- #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)
-
-