Article View: gnu.misc.discuss
Article #1374makefile for gnu make on SGI
From: Steve Bacher
Date: Tue, 15 Dec 1992 21:17
Date: Tue, 15 Dec 1992 21:17
53 lines
2147 bytes
2147 bytes
On Tue, 25 Aug 1992 14:45:23 GMT fish@daacdev1.stx.com wrote: >i need the Makefile for GNU make for an SGI platform - i have the >Makefile but can't figure out what def's and flags to set > >i had to set -cckr CFLAG and i def'ed USG and USGr3 (isn't irix USGr4 though?) > >and then i ran into a problem with it finding alloca() in glob.c >and then i found that i need to have -l mld for nlist and then >i decided i better go to the net fer help. > > fish >-- >John R. Vanderpool INTERNET: fish@daacdev1.stx.com >NASA/GSFC VOX: 301-513-1683 >Hughes/STX Corporation FAX: 301-513-1608 I got it to work by also specifying -Dsparc. It turns out that if sparc is defined, alloca.h is include'd. Since the sparc define is referenced only in 2 modules, and only for the purpose of determining what to do about alloca, I found it safe to specify -Dsparc in the makefile. So, here are the changes I used: while making gnu make 3.62 on an SGI box: 22,24d21 < # Following added by seb1525 < prefix = /user1/people/seb1525/make < 44,47c41 < # *** Following line changed by seb1525 from < # defines = < # *** to < defines = -DUSG -DUSGr3 -Dsparc -cckr --- > defines = 72,75c66 < # *** following line changed by SEB1525 from < # LOADLIBES = < # *** to < LOADLIBES = -lmld -lPW --- > LOADLIBES = Now all I need is for the sysadmin to create a group "kmem"... :-( Btw, John, how did you come up with -cckr? I wouldn't have even tried it if not for you. -- Steve Bacher (Batchman) Draper Laboratory Internet: seb@draper.com Cambridge, MA, USA
Technical Details
Message-ID:
<19921215161735SEB1525@MVS.draper.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525Show Full Headers
Complete Article Headers
Newsgroups: gnu.misc.discuss,comp.sys.sgi Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525 From: SEB1525@MVS.draper.com (Steve Bacher) Subject: makefile for gnu make on SGI Message-ID: <19921215161735SEB1525@MVS.draper.com> Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com> Nntp-Posting-Host: mvs.draper.com Organization: Draper Laboratory Date: Tue, 15 Dec 1992 21:17:00 GMT Lines: 53