[fpc-pascal]make clean does not remove .o files

Vincent Snijders vsnijders at quicknet.nl
Mon Aug 16 22:57:39 CEST 2004


On Sun, 8 Aug 2004 00:09:43 +0200
Vincent Snijders <vslist at zonnet.nl> wrote:

> On Sat, 7 Aug 2004 22:06:51 +0200
> Vincent Snijders <vslist at zonnet.nl> wrote:
> 
> > Hi,
> > 
> > If I do make clean in for example the fcl/db/dbase or fcl/image all ppu files are removed, but not the .o files. I tried to find out, how this can be fixed.
> > 
> > A Makefile contains these two lines:
> > override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
> > 
> > override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
> > 
> > Since I very new to reading make files, I don't know what the wildcard in the CLEANPPULINKFILES is suposed to do.If I remove it .o files are removed.
> > 
> > Is it correct to remove the wildcard?
> I did some further research. The wildcard is used so that only existing files are removed. I had no .o files for the fpImage units, so no rm statement was generated and I thought they were not removed. The output from fcl/image IS removed.
> 
In case anybody is interested, I replaced the make from the fpc distribution with the lasted mingw32-make.exe and it correctly interprets the wildchar makefile command(?). 

I would like to suggest that fpc updates the make utility, it distributes with its releases.

Regards,
Vincent.




More information about the fpc-pascal mailing list