9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Packer <packer@bway.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] mkfile for Solaris-sparc using gcc?
Date: Tue, 12 Mar 2002 00:25:08 -0500	[thread overview]
Message-ID: <3C8D9134.4BEFAE66@bway.net> (raw)
In-Reply-To: <Pine.LNX.4.33L2.0203112320410.14213-100000@pali.cps.cmich.edu>

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Ish:

Try the attached mkfile.

You need to tweak DSRC and BIN to work with your setup.

Also, you need mk (from the Inferno distribution).

I think I have a Makefile as well, if you need that.


John Packer

[-- Attachment #2: mkfile --]
[-- Type: text/plain, Size: 2363 bytes --]

CONF=Solaris-sparc
DSRC=/home/john/plan9/drawterm
BIN=$DSRC/bin

<$DSRC/mkfile-$CONF

DRAWTERM=\
	_asgetticket.$O\
	_asrdfile.$O\
	_asrdresp.$O\
	_asreadn.$O\
	argv0.$O\
	atexit.$O\
	auth.$O\
	authaux.$O\
	authdial.$O\
	chan.$O\
	conv.$O\
	crypt.$O\
	dev.$O\
	devtab.$O\
	devcon.$O\
	devdraw.$O\
	$DEVFS.$O\
	$DEVIP.$O\
	devmnt.$O\
	devmouse.$O\
	devpipe.$O\
	devroot.$O\
	drawterm.$O\
	dial.$O\
	dirfstat.$O\
	doprint.$O\
	error.$O\
	exportfs.$O\
	fcallconv.$O\
	getcallerpc.$O\
	getuser.$O\
	latin1.$O\
	lock.$O\
	mallocz.$O\
	nan.$O\
	netmkaddr.$O\
	ns.$O\
	passtokey.$O\
	pipe.$O\
	pow10.$O\
	print.$O\
	proc.$O\
	qio.$O\
	readn.$O\
	ref.$O\
	rune.$O\
	rwlock.$O\
	screen-$WIN.$O\
	syscall.$O\
	tabs.$O\
	term.$O\
	tokenize.$O\
	$OS.$O\
	utflen.$O\
	utfrune.$O\
	werrstr.$O\
	wstrtoutf.$O\
	$OSFILES\
	
# screen

LIBMEMLAYER=\
	ml-draw.$O\
	ml-lalloc.$O\
	ml-layerop.$O\
	ml-ldelete.$O\
	ml-lhide.$O\
	ml-line.$O\
	ml-load.$O\
	ml-lorigin.$O\
	ml-lsetrefresh.$O\
	ml-ltofront.$O\
	ml-ltorear.$O\

LIBMEMDRAW=\
	md-alloc.$O\
	md-alloc-$WIN.$O\
	md-arc.$O\
	md-cload.$O\
	md-cload-$WIN.$O\
	md-cmap.$O\
	md-cread.$O\
	md-defont.$O\
	md-draw.$O\
	md-draw-$WIN.$O\
	md-ellipse.$O\
	md-fillpoly.$O\
	md-hwdraw.$O\
	md-line.$O\
	md-load.$O\
	md-load-$WIN.$O\
	md-poly.$O\
	md-read.$O\
	md-string.$O\
	md-subfont.$O\
	md-unload.$O\

LIBDRAW=\
	d-alloc.$O\
	d-arith.$O\
	d-bytesperline.$O\
	d-chan.$O\
	d-defont.$O\
	d-rectclip.$O\
	d-rgb.$O\
	d-icossin.$O\
	d-icossin2.$O\

XFILES=\
	md-alloc-x11.$O\
	md-cload-x11.$O\
	md-draw-x11.$O\
	md-load-x11.$O\

OFILES=$DRAWTERM $LIBMEMLAYER $LIBMEMDRAW $LIBDRAW

all:V: $TARG

$TARG: $OFILES
	$LD $LDFLAGS $prereq $LIBS

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

$LIBMEMDRAW: $DSRC/libmemdraw/memdraw.h $DSRC/libdraw/draw.h
$LIBDRAW: $DSRC/libdraw/draw.h
$LIBMEMLAYER: $DSRC/libmemdraw/memdraw.h $DSRC/libdraw/draw.h $DSRC/libmemlayer/memlayer.h
$XFILES: $DSRC/libmemdraw/xmem.h


%.$O:	$DSRC/%.c
	$CC $CFLAGS $DSRC/$stem.c

%.$O:	$DSRC/%.s
	$AS $ASFLAGS -o $stem.$O $DSRC/$stem.s
	
install: $TARG
	install $TARG $BIN/$TARG

clean:V:
	rm -f *.$O a.out y.tab.? y.debug y.output *.pch *.pdb *.map $TARG

src.tar:V:
	tar cf src.tar *.[ch] mkfile* */*.[ch]


  reply	other threads:[~2002-03-12  5:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-12  4:23 Ish Rattan
2002-03-12  5:25 ` John Packer [this message]
     [not found] <rsc@plan9.bell-labs.com>
2002-03-12  4:24 ` Russ Cox
2002-03-12  4:26   ` Scott Schwartz
2002-03-18 13:25     ` Boyd Roberts
2002-03-18 15:10       ` AMSRL-CI-CN
2002-03-12  4:59   ` Ish Rattan

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=3C8D9134.4BEFAE66@bway.net \
    --to=packer@bway.net \
    --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).