question about compiling

4197,ATTT rbr at bonnie.ATT.COM
Wed Jan 9 00:48:49 AEST 1991


In article <CSHORT.91Jan7152814 at haywire.nmsu.edu> cshort at nmsu.edu (SpamG*D lord of potted meat products) writes:
>
>hi. 
>
>since my acount size is small, i would like to set up source
>code in a /tmp then compile it into my dir. how would i do this?
>also is the a make toggle that would delete the souce files
>when it is done with them?
>
>thanks
>
>chris
>cshort at nmsu.edu

I assume that the source code normally resides in a protected place and
will not get removed if you crash.  To put the output in your account:

	cc <compile opts> -o ~/<objdir>/<pgm-name>  <pgm_name>.c

The trick here is the "-o" option. I use "cc -O -s -o ~/bin/$PGM  $PGM.c" in
my compiles.

Bob Rager



More information about the Comp.unix.shell mailing list