📄 makefile
字号:
# Makefile for Graphics Gems III source## Eric Haines, 10/92## This make file will build "gemslib3.a" and a number of executables.# Gemslib3 is built solely for debugging purposes -- it is not intended# to be used as a library.## Some code uses ANSI headers, some doesn't, so you may have to mess with# CFLAGS, depending.## Note that some of the gems need additional macros, functions, tables# driving routines, etc. before they will compile or run properly.# These include:## accurate_scan - the test program uses HP's Starbase graphics API## bsp.c - need routines for FirstOfLinkList, NextOfLinkList, AddToLinkList,# and code for RayBoxIntersect, RayObjIntersect## cyclic.c - note that this file is simply a set of macros, no code is compiled## luminaire - need function "hit()"## panorama.c - needs Rayshade include files.## simplex - need function "bitCount()"## C compiler flags#CFLAGS =## Location of Graphics Gems library#LIBFILE = gemslib3.a## Graphics Gems II Vector Library#VECLIB = GraphicsGems.oMFLAGS = "LIBFILE = ../$(LIBFILE)" "GENCFLAGS = $(CFLAGS)"SHELL = /bin/shOFILES = 3d.o PIR.o Polyintr.o accForm.o bitmap.o \ bounding_volumes.o bsp.o bzrinter.o circlexc.o con2d.o contour.o \ edgeCalc.o fastBitmap.o fastLinear.o fastSpan.o fillet.o filter.o \ forfac.o hemis.o insectc.o intell.o intqdr.o motblur.o ndline.o \ newell.o parelarc.o pl2plane.o planeSets.o pt2plane.o \ quatspin.o rand_rotation.o rgbvary.o scallops8.o \ sqfinal.o sqrt.o triangleCube.o urot.o zdepth.oDIRS = accurate_scan alloc exttest luminaire partition3d simplexALL = contour filter forfac scallops8 sqfinal $(LIBFILE)all: $(ALL) @for d in $(DIRS) ; do \ (cd $$d ; $(MAKE) $(MFLAGS)) ;\ done$(LIBFILE): $(OFILES) $(VECLIB) ar rcs $(LIBFILE) $(OFILES) $(VECLIB)contour: contour.o $(CC) $(CFLAGS) -o $@ contour.ofilter: filter.o $(CC) $(CFLAGS) -o $@ filter.o -lmforfac: forfac.o $(CC) $(CFLAGS) -o $@ forfac.o -lmscallops8: scallops8.o $(CC) $(CFLAGS) -o $@ scallops8.osqfinal: sqfinal.o $(CC) $(CFLAGS) -o $@ sqfinal.o -lmclean: @for d in $(DIRS) ; do \ (cd $$d ; $(MAKE) $(MFLAGS) clean) ;\ done /bin/rm -f $(OFILES) $(VECLIB) /bin/rm -f 3d.o PIR.o Polyintr.o accForm.o bitmap.o \ bounding_volumes.o bsp.o bzrinter.o circlexc.o con2d.o \ contour.o edgeCalc.o fastBitmap.o fastLinear.o fastSpan.o \ fillet.o filter.o forfac.o hemis.o insectc.o intell.o \ intqdr.o motblur.o ndline.o newell.o parelarc.o \ pl2plane.o planeSets.o pt2plane.o quatspin.o rand_rotation.o \ rgbvary.o scallops8.o sqfinal.o sqrt.o \ triangleCube.o urot.o zdepth.o \ contour filter forfac scallops8 sqfinal \ a.out core $(LIBFILE)$(ALL): GraphicsGems.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -