home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-02-02 | 1.7 KB | 66 lines |
- # makefile for Rayce.
-
- # set CC, YACC to the appropriate names, set the CFLAGS correct
- # Depending on your os, change the .$(OBEX) endings
-
-
- # MSDOS/Turbo-C
-
- SYSFILE=ibmtcc
- PARSFILE=rayparse
- LINKFL=-ml -erayce
- LINKER=tcc
- CC=tcc
- YFLAGS=-d
- YACC=bison
- CFLAGS=-c -ml -w-cln # stop compiler from complaining on Bison output
- OBEX=obj
-
- # be careful. MS Dos truncates some names, such as initialize.c
-
- SRC= poly.c algebraic.c gif.c imagemap.c csg.c queue.c \
- color.c $(PARSFILE).c triangle.c\
- box.c composite.c lights.c token.c plane.c camera.c\
- object.c texture.c quadric.c sphere.c $(SYSFILE).c raymath.c\
- main.c trace.c intersect.c initialize.c bg.c parall.c shade.c\
- solve.c torus.c polygon.c superq.c extrusion.c triangle.c discs.c
-
- OBJ= poly.$(OBEX) algebraic.$(OBEX) gif.$(OBEX) \
- imagemap.$(OBEX) csg.$(OBEX) queue.$(OBEX) \
- color.$(OBEX) $(PARSFILE).$(OBEX)\
- box.$(OBEX) triangle.$(OBEX) composite.$(OBEX) \
- lights.$(OBEX) token.$(OBEX)\
- plane.$(OBEX) camera.$(OBEX) object.$(OBEX) texture.$(OBEX)\
- quadric.$(OBEX) parall.$(OBEX) sphere.$(OBEX) \
- $(SYSFILE).$(OBEX) raymath.$(OBEX) \
- main.$(OBEX) trace.$(OBEX) intersect.$(OBEX) \
- initialize.$(OBEX) shade.$(OBEX)\
- bg.$(OBEX) solve.$(OBEX) torus.$(OBEX) polygon.$(OBEX) \
- discs.$(OBEX) extrusion.$(OBEX) superq.$(OBEX)
-
- HDR=ray.h extern.h
-
- rayce: $(OBJ)
- $(LINKER) $(LINKFL) *.obj
-
- $(OBJ): $(HDR)
-
- .c.$(OBEX):
- $(CC) $(CFLAGS) $*.c
-
- # note on messydog systems, output of bison will be called
- # rayparse.y and rayparse.h
- #
- #rayparse.c: rayparse.y
-
- #is an implicit rule in gnu make, but just to be on the safe side
- $(PARSFILE).h $(PARSFILE).c: rayparse.y
- $(YACC) $(YFLAGS) rayparse.y
-
-
-
-
-
-
-
-