The SGI Ultimate MAKEFILE

Andrew Myers andru at sgi.com
Thu Jun 7 06:43:04 AEST 1990


In article <1990Jun6.130601.17186 at jarvis.csri.toronto.edu> corkum at 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



More information about the Comp.sys.sgi mailing list