home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / rayce27s / makefile.tc < prev    next >
Encoding:
Makefile  |  1994-02-02  |  1.7 KB  |  66 lines

  1. # makefile for Rayce.
  2.  
  3. # set CC, YACC to the appropriate names, set the CFLAGS correct
  4. # Depending on your os, change the .$(OBEX) endings
  5.  
  6.  
  7. #          MSDOS/Turbo-C
  8.  
  9. SYSFILE=ibmtcc
  10. PARSFILE=rayparse
  11. LINKFL=-ml -erayce
  12. LINKER=tcc
  13. CC=tcc
  14. YFLAGS=-d
  15. YACC=bison
  16. CFLAGS=-c -ml -w-cln    # stop compiler from complaining on Bison output
  17. OBEX=obj
  18.  
  19. # be careful. MS Dos truncates some names, such as initialize.c
  20.  
  21. SRC=    poly.c algebraic.c gif.c imagemap.c csg.c queue.c \
  22.     color.c $(PARSFILE).c triangle.c\
  23.     box.c composite.c lights.c token.c plane.c camera.c\
  24.     object.c texture.c  quadric.c sphere.c $(SYSFILE).c  raymath.c\
  25.     main.c trace.c intersect.c  initialize.c bg.c parall.c shade.c\
  26.     solve.c torus.c polygon.c superq.c extrusion.c triangle.c discs.c
  27.  
  28. OBJ=    poly.$(OBEX) algebraic.$(OBEX) gif.$(OBEX) \
  29.     imagemap.$(OBEX) csg.$(OBEX) queue.$(OBEX) \
  30.     color.$(OBEX) $(PARSFILE).$(OBEX)\
  31.     box.$(OBEX) triangle.$(OBEX) composite.$(OBEX) \
  32.     lights.$(OBEX) token.$(OBEX)\
  33.     plane.$(OBEX) camera.$(OBEX) object.$(OBEX) texture.$(OBEX)\
  34.     quadric.$(OBEX)  parall.$(OBEX) sphere.$(OBEX) \
  35.     $(SYSFILE).$(OBEX) raymath.$(OBEX) \
  36.     main.$(OBEX) trace.$(OBEX)  intersect.$(OBEX) \
  37.     initialize.$(OBEX) shade.$(OBEX)\
  38.     bg.$(OBEX) solve.$(OBEX) torus.$(OBEX) polygon.$(OBEX) \
  39.     discs.$(OBEX) extrusion.$(OBEX) superq.$(OBEX)
  40.  
  41. HDR=ray.h extern.h
  42.  
  43. rayce:  $(OBJ) 
  44.     $(LINKER) $(LINKFL) *.obj
  45.  
  46. $(OBJ):    $(HDR)
  47.  
  48. .c.$(OBEX):
  49.     $(CC) $(CFLAGS) $*.c
  50.  
  51. # note on messydog systems, output of bison will be called
  52. # rayparse.y and rayparse.h
  53. #
  54. #rayparse.c: rayparse.y
  55.  
  56. #is an implicit rule in gnu make, but just to be on the safe side
  57. $(PARSFILE).h $(PARSFILE).c: rayparse.y
  58.     $(YACC) $(YFLAGS) rayparse.y
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.