home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / Viewers / raytracers / ohta / Source / Makefile < prev    next >
Encoding:
Makefile  |  1991-10-08  |  872 b   |  44 lines

  1. SRC=alloc.c bg.c dindex.c initdir.c input.c intersect.c main.c\
  2.     scan.c shade.c shape.c trace.c data.c
  3.  
  4. OBJ=alloc.o bg.o dindex.o initdir.o input.o intersect.o main.o\
  5.     scan.o shade.o shape.o trace.o data.o
  6.  
  7. HDR=ray.h
  8.  
  9. CC=cc
  10. CFLAGS=-O -g
  11.  
  12. ray:    $(OBJ)
  13.     $(CC) $(CFLAGS) $(OBJ) -o ray -lm
  14.  
  15. ray.lint:    $(HDR) $(SRC)
  16.     lint -b $(SRC) -lm >ray.lint
  17.  
  18. $(OBJ):    ray.h
  19.  
  20. print:
  21.     print Makefile $(HDR) $(SRC)
  22.  
  23. ray.shar: README Makefile $(HDR) $(SRC) test.v random.c
  24.     shar README Makefile $(HDR) $(SRC) test.v random.c >ray.shar
  25.  
  26. clean:
  27.     rm -f $(OBJ) ray random test.pic test1000.v test1000.pic lint
  28.  
  29. random: random.c
  30.     cc -O random.c -o random -lm
  31.  
  32. test.pic: ray
  33.     ray test.v test.pic
  34.  
  35. test100.v: random
  36.     echo f 90 >test100.v
  37.     echo l 1 1 -3 >>test100.v
  38.     echo l -4 0 -1 >>test100.v
  39.     random 100 0.07 >>test100.v
  40.     echo e >>test100.v
  41.  
  42. test100.pic: ray test100.v
  43.     ray -t test100.v test100.pic 
  44.