9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: okamoto@granite.cias.osakafu-u.ac.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] gcc install help needed
Date: Fri, 10 Oct 2003 15:54:28 +0900	[thread overview]
Message-ID: <29e002f9eeee100018713f89977a1de6@granite.cias.osakafu-u.ac.jp> (raw)
In-Reply-To: <92f58c1d82b93f0d421ece40ffb0236b@granite.cias.osakafu-u.ac.jp>

> 3) then, recompile /386/lib/gnu/libc.a.   Don't forget to ranlib to it.
> You may want to add some neccessary files which I forgot.

It was adding three files to /sys/src/gnu/ape:
1) mkconfig
# global include file for the APE environment

< /$objtype/mkfile		# gives (compiler loader extension ranliber)
APEBIN=/$objtype/bin/gnu/ape	# where installed ape binaries go
APELIB=/rc/bin/gnu/ape		# where helper programs go
CC=gcc				# compiler (must be ansi)
LD=gcc				# loader
AS=as
CFLAGS=				# global defaults
FAMILY=plan9
AR=ar				# manipulating libraries
RANLIB=echo			# for updating libraries

INSTALL=$APELIB/install		# install script
INSOWNER=()			# default installation parameter
INSGROUP=bin			# default installation parameter
INSMODE=775			# default installation parameter
2) mkfile
</$objtype/mkfile

DIRS=lib9 libbsd libc libl libnet libregexp libv

none:V:
	echo mk all, install, installall, clean, or nuke

all clean nuke install installall:V:
	for (i in $DIRS) @{
		cd $i
		mk $target
	}
3) mksyslib
AFLAGS=

all:V:	$LIB

$LIB:V:	$OFILES			# force archive even when not neede
	ar vu $LIB $newprereq

&:n:	&.$O
	ar vu $LIB $stem.$O

%.$O:	$HFILES			# don't combine with following %.$O rules

%.$O:	%.c
	$CC $CFLAGS $stem.c
	mv $stem.o $stem.$O

%.$O:	%.s
	$AS $AFLAGS $stem.s

install:V: $LIB

installall:V:
	for(objtype in $CPUS) mk install

%.all:V:
	for(objtype in $CPUS) mk $stem

%.installall:V:
	for(objtype in $CPUS) mk $stem

clean:V:
	rm -f *.[$OS] [$OS].out $CLEANFILES

%.clean:V:
	rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem

nuke:V:
	rm -f *.[$OS] [$OS].out $CLEANFILES

%.acid: %.$O $HFILES
	$CC $CFLAGS -a $stem.c >$target

update:V:
	update $UPDATEFLAGS $UPDATE

Those I copied from somewhere, and make small changes, but I forgot it.

Kenji



      reply	other threads:[~2003-10-10  6:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09 11:25 cej
2003-10-10  6:48 ` okamoto
2003-10-10  6:54   ` okamoto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29e002f9eeee100018713f89977a1de6@granite.cias.osakafu-u.ac.jp \
    --to=okamoto@granite.cias.osakafu-u.ac.jp \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).