🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #75216

Don't want gnumake to clean up object modules by default

#75216
From: A.V. Raman
Date: Fri, 14 Sep 1990 01:50
24 lines
1058 bytes
I've got the following lines in a GNUmakefile.
---

# delete known suffixes
.SUFFIXES:
	
%:	%.o
	$(CC) -o $@ $< $(LIBS)

%.o:	%.c $(HDRS)
	$(CC) -c $(CFLAGS) $<

---
when I make testfile, gnumake automatically deletes testfile.o after
loading it.

I've tried reading the info on Gnumake, but couldn't find out how to
inhibit automatic deletion of object modules after loading.

Could someone help through email please.

Thanks.

-& (Anand)
Technical Details
Message-ID: <987@massey.ac.nz>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!comp.vuw.ac.nz!massey.ac.nz!ARaman

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,7db883f7a88ce413,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1990-09-13 18:50:03 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!comp.vuw.ac.nz!massey.ac.nz!ARaman
From: ARaman@massey.ac.nz (A.V. Raman)
Newsgroups: gnu.misc.discuss
Subject: Don't want gnumake to clean up object modules by default
Message-ID: <987@massey.ac.nz>
Date: 14 Sep 90 01:50:03 GMT
Reply-To: ARaman@massey.ac.nz (A.V. Raman)
Organization: Massey University, Palmerston North, New Zealand
Lines: 24
Posted: Fri Sep 14 02:50:03 1990