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