9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] mk(file) question
@ 2002-06-05 14:40 Russ Cox
  2002-06-05 14:59 ` [9fans] " Henry Baragar
  2002-06-10 10:03 ` [9fans] " peter a. cejchan
  0 siblings, 2 replies; 4+ messages in thread
From: Russ Cox @ 2002-06-05 14:40 UTC (permalink / raw)
  To: 9fans

you don't tell mk, you tell the compiler.
the default mkfiles compile with

	$CC $CFLAGS $stem.c

so you can add

	CFLAGS=$CFLAGS -I/usr/pac/include

and similarly

	LDFLAGS=-L/usr/pac/$objtype/lib

look at /sys/src/cmd/mkone for the rules
being used.  there's no builtin magic.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] Re: mk(file) question
  2002-06-05 14:40 [9fans] mk(file) question Russ Cox
@ 2002-06-05 14:59 ` Henry Baragar
  2002-06-10 10:03 ` [9fans] " peter a. cejchan
  1 sibling, 0 replies; 4+ messages in thread
From: Henry Baragar @ 2002-06-05 14:59 UTC (permalink / raw)
  To: 9fans

I thought the Plan 9 way was:

        bind -b /usr/pac/include /sys/include


Russ Cox writes:

> you don't tell mk, you tell the compiler.
> the default mkfiles compile with
>
> 	$CC $CFLAGS $stem.c
>
> so you can add
>
> 	CFLAGS=$CFLAGS -I/usr/pac/include
>
> and similarly
>
> 	LDFLAGS=-L/usr/pac/$objtype/lib
>
> look at /sys/src/cmd/mkone for the rules
> being used.  there's no builtin magic.
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] mk(file) question
  2002-06-05 14:40 [9fans] mk(file) question Russ Cox
  2002-06-05 14:59 ` [9fans] " Henry Baragar
@ 2002-06-10 10:03 ` peter a. cejchan
  1 sibling, 0 replies; 4+ messages in thread
From: peter a. cejchan @ 2002-06-10 10:03 UTC (permalink / raw)
  To: 9fans

rsc@plan9.bell-labs.com (Russ Cox) wrote in message news:<de39561d8dadb16d6dd71ac2e39216fe@plan9.bell-labs.com>...
> you don't tell mk, you tell the compiler.
> the default mkfiles compile with
>
> 	$CC $CFLAGS $stem.c
>
> so you can add
>
> 	CFLAGS=$CFLAGS -I/usr/pac/include
>
> and similarly
>
> 	LDFLAGS=-L/usr/pac/$objtype/lib
>
> look at /sys/src/cmd/mkone for the rules
> being used.  there's no builtin magic.

Thanks, Russ and Henry! Why didn't I 'invent' that myself?! ;-)
++ pac.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] mk(file) question
@ 2002-06-05 14:30 Peter A. Cejchan
  0 siblings, 0 replies; 4+ messages in thread
From: Peter A. Cejchan @ 2002-06-05 14:30 UTC (permalink / raw)
  To: 9fans

Please,

how do you tell mk to look for includes/libraries in other places than default
(like make -L <path> -I <path>) ?

TIA,
regards,
--
++pac.

Peter A. Cejchan
Paleobiology Lab, GLU Acad. Sci. CZ
<pac@next.gli.cas.cz>
[http | ftp]://next.gli.cas.cz


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-10 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 14:40 [9fans] mk(file) question Russ Cox
2002-06-05 14:59 ` [9fans] " Henry Baragar
2002-06-10 10:03 ` [9fans] " peter a. cejchan
  -- strict thread matches above, loose matches on Subject: below --
2002-06-05 14:30 Peter A. Cejchan

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).