Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sdd.hp.com!decwrl!sgi!shinobu!odin!andru From: andru@sgi.com (Andrew Myers) Newsgroups: comp.sys.sgi Subject: Re: The SGI Ultimate MAKEFILE Message-ID: <8633@odin.corp.sgi.com> Date: 6 Jun 90 20:43:04 GMT References: <1990Jun6.130601.17186@jarvis.csri.toronto.edu> Sender: news@odin.corp.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 44 In article <1990Jun6.130601.17186@jarvis.csri.toronto.edu> corkum@csri.toronto.edu (Brent Thomas Corkum) writes: >Regarding the ultimate makefile that was posted a while back by the >SGI people, be very careful not to break,abort the making process while >the dependency checks are taking place (by mkdepend). If you send a break >while mkdepend is running you lose your makefile. I'm not to sure why As it turns out, you need the 3.3 versions of mkdepend, commondefs, and commonrules for the Makefile I posted to work perfectly. Sorry about the confusion -- by the time customers get a release, we're often already using the development tools of the next release. Once you get 3.3, automatic dependencies should work correctly and safely in the Makefile I posted. Until then, I believe that the following fix should work for 3.2: (I've simplified the posted makefile for clarity) --------------------------------------------------------------------------- include $(ROOT)/usr/include/make/commondefs MKDEPFILE = Makedepend ### Change from 3.3 version ### TARGETS = examine3D CFILES = examine3D.c model.c displpop.c filepop.c analypop.c \ pickpop.c xformpop.c objecpop.c setuppop.c plinepop.c \ builpop.c writeex3.c strespop.c moparwin.c makemopa.c \ examinit.c togglest.c gridbox.c shadepop.c LCOPTS = -DDEBUG # "local C options" LLDLIBS = -lgl_s -lm # local libraries OPTIMIZER = -g # -g2 is default for -g, I believe default: incdepend $(TARGETS) include $(COMMONRULES) # clean and other rules supplied by COMMONRULES include $(MKDEPFILE) ### Change from 3.3 version ### $(TARGETS): $(OBJECTS) $(CCF) $(OBJECTS) $(LDFLAGS) -o $@ --------------------------------------------------------------------------- To get the makefile working, you'll need to do a "touch Makedepend". This isn't necessary in the 3.3 version. Andrew