I use Gnu Make (Ported to windows with MINGW) to build my programs.

This is my makefile


.PHONY: clean


%.dll : %.obj
link $(LFLAGS) $<

%.obj : %.res
cvtres $< /MACHINE:IX86 /NOLOGO

%.res : %.rc
rc /I$(INC_PATH) $<

all: italian.dll english.dll spanish.dll

@del *.res *.obj *.dll

This is the output of make

rc /I\masm32\include italian.rc

cvtres italian.res /MACHINE:IX86 /NOLOGO
link /DLL /NOENTRY /NOLOGO italian.obj
rc /I\masm32\include english.rc
cvtres english.res /MACHINE:IX86 /NOLOGO
link /DLL /NOENTRY /NOLOGO english.obj
rc /I\masm32\include spanish.rc
cvtres spanish.res /MACHINE:IX86 /NOLOGO
link /DLL /NOENTRY /NOLOGO spanish.obj
rm spanish.obj spanish.res italian.obj italian.res english.obj english.res

Why does make delete obj and res?
Posted on 2003-08-26 06:34:31 by greenant

@del *.res *.obj *.dll
Posted on 2003-08-26 11:44:53 by Will
If I remove clean: del *.res .... it delete res anyway
Posted on 2003-08-26 12:46:50 by greenant
What version of gmake? I have never seen this behavior before. Moreover, 'rm' is not generally available on any Win32 platform. That looks suspicious.

If this causes you a problem, either you read the source code and fix it or you can submit your complaint to MinGW developers.
Posted on 2003-08-26 22:17:48 by Starless
Posted on 2003-08-27 00:31:33 by greenant

If there is no special reason that you have to use 3.80, I would recommend you downgrade to 3.79. I have no such problem that you described with 3.79.
Posted on 2003-08-28 02:54:31 by Starless