🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
5 messages
5 total messages Started by SpamG*D lord of potted meat prod... Mon, 07 Jan 1991 22:28
question about compiling
#2038
Author: SpamG*D lord of potted meat prod...
Date: Mon, 07 Jan 1991 22:28
12 lines
696 bytes
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@nmsu.edu
Re: question about compiling
#2042
Author: Stephen Quan
Date: Tue, 08 Jan 1991 04:44
13 lines
937 bytes
cshort@nmsu.edu (SpamG*D lord of potted meat products) writes:
>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?

You could make a symbolic link in /tmp to your directory.
eg. ln -s ~/myrunfile /tmp/myrunfile

That way, when you overwrite /tmp/myrunfile you are really
overwritting ~/myrunfile.

A cleaner solution would to get a large account size :).
Re: question about compiling
#2306
Author: Kai Shing O'Yang
Date: Tue, 08 Jan 1991 05:30
25 lines
1564 bytes
In <quan.663309881@sol> quan@sol.surv.utas.oz (Stephen Quan) writes:

>cshort@nmsu.edu (SpamG*D lord of potted meat products) writes:
>>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?

>You could make a symbolic link in /tmp to your directory.
>eg. ln -s ~/myrunfile /tmp/myrunfile

>That way, when you overwrite /tmp/myrunfile you are really
>overwritting ~/myrunfile.

>A cleaner solution would to get a large account size :).

This is a dangerous practice. If your machine crashes, you may lose
your files because /tmp is the first place to clear.
If you insist on using /tmp, I would advise to name your directory as 
.mydir because this wouldn't be deleted by rm -*.
-- 
- Kai S O'Yang, Dept of Comp Sci, Monash Uni, Clayton VIC 3168, Australia  
- AARNET: oyang@bruce.cs.monash.edu.au         - Voice : +(61) 3 565 5778
- ARPA : oyang@bruce.cs.monash.edu.au@uunet.uu.net                       
------
Re: question about compiling
#2310
Author: 4197,ATTT
Date: Tue, 08 Jan 1991 13:48
23 lines
1173 bytes
In article <CSHORT.91Jan7152814@haywire.nmsu.edu> cshort@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@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
Re: question about compiling
#2311
Author: 4197,ATTT
Date: Tue, 08 Jan 1991 13:52
21 lines
977 bytes
In article <CSHORT.91Jan7152814@haywire.nmsu.edu> cshort@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@nmsu.edu

Use the "-o" option as in:

	cc -O -s -o ~/bin/$PGM $PGM.c

which I use for simple C compilations.

Bob Rager
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads