diff --git a/makefile b/makefile index a84e26982b0..fc1a2f6c743 100644 --- a/makefile +++ b/makefile @@ -509,7 +509,7 @@ tools: maketree $(TOOLS) maketree: $(sort $(OBJDIRS)) -clean: +clean: $(OSDCLEAN) @echo Deleting object tree $(OBJ)... $(RM) -r $(OBJ) @echo Deleting $(EMULATOR)... @@ -520,12 +520,6 @@ ifdef MAP @echo Deleting $(FULLNAME).map... $(RM) $(FULLNAME).map endif -ifdef MSVC_BUILD - @echo Deleting Visual Studio specific files... - $(RM) *.pdb - $(RM) *.lib - $(RM) *.exp -endif diff --git a/src/osd/windows/windows.mak b/src/osd/windows/windows.mak index 58ad24e5696..5596c1154de 100644 --- a/src/osd/windows/windows.mak +++ b/src/osd/windows/windows.mak @@ -157,6 +157,14 @@ $(WINOBJ)/vconv.o: $(WINSRC)/vconv.c @echo Compiling $<... @cl.exe /nologo /O1 -D_CRT_SECURE_NO_DEPRECATE -c $< /Fo$@ +OSDCLEAN = msvcclean + +msvcclean: + @echo Deleting Visual Studio specific files... + $(RM) *.pdb + $(RM) *.lib + $(RM) *.exp + endif endif