| www.delorie.com/archives/browse.cgi | search |
| From: | "Alex Vinokur" <alexvn AT bigfoot DOT com> |
| Newsgroups: | comp.os.msdos.djgpp,gnu.utils.help |
| Subject: | Who has removed object files ? |
| Date: | 21 Aug 2002 23:00:58 GMT |
| Lines: | 68 |
| Message-ID: | <ak1639$1f46of$2@ID-79865.news.dfncis.de> |
| NNTP-Posting-Host: | 212.150.34.234 |
| X-Trace: | fu-berlin.de 1029970858 49421071 212.150.34.234 (16 [79865]) |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4522.1200 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
============================
Windows 2000
DJGPP 2.03
gcc/gpp 3.1
GNU Make version 3.79.1
Built for i386-pc-msdosdjgpp
============================
Here is some makefile and compilation results.
We can see that somebody has removed object files.
Who did that?
I would like the object files not be removed.
How can we do it?
========= Makefile : BEGIN =========
CC=gpp
CFLAGS=-save-temps
LSO=ls *.o
all: s1.exe s2.exe
%.o : %.cpp
@echo \t--- Compiling $< ---
$(CC) $(CFLAGS) -c $< -o $@
%.exe : %.o
$(LSO)
@echo \t--- Linking $@ ---
========= Makefile : END ===========
========= Compilation : BEGIN =========
%make
--- Compiling s1.cpp ---
gpp -save-temps -c s1.cpp -o s1.o
ls *.o
s1.o
--- Linking s1.exe ---
--- Compiling s2.cpp ---
gpp -save-temps -c s2.cpp -o s2.o
ls *.o
s1.o
s2.o
--- Linking s2.exe ---
rm s1.o s2.o ### Who has removed object files ???
========= Compilation : END ===========
==================
Alex Vinokur
mailto:alexvn AT go DOT to
http://up.to/alexvn
==================
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |