News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Miscellaneous

Started by skywalker, March 06, 2006, 04:07:17 PM

Previous topic - Next topic

skywalker

I can see the logic of having a separate directory for each project. Just what
you need is there without the clutter of seeing other files.
(When you don't have separate dirs you get icons incorporated into files
you didn't want to :-)

But it seems wasteful to keep adding sub-dirs all the time.

Is there a way using Qeditor to have projects delete the object files after each
compilation ?

Just venting.

Outta here.

P1

Just modify the batch files in the MASM32\Bin directory to delete any immediate files you don't need.  Remember to keep a backup copy, just in case of a problems.

i.e. BLDALL.BAT   Note:  Branch logic for a resouce or not.

Regards,  P1  :8)

Tedd

Insert "del %1.obj" onto the line following the call to link (in bin\lnk.bat)
Also add one for resource files and any other annoyances :wink
No snowflake in an avalanche feels responsible.

skywalker

Quote from: Tedd on March 08, 2006, 11:58:36 AM
Insert "del %1.obj" onto the line following the call to link (in bin\lnk.bat)
Also add one for resource files and any other annoyances :wink

This is my modification, but it still leave the obj files there.

@echo off

if exist "%1.exe" del "%1.exe"

if not exist rsrc.obj goto nores

\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF "%1.obj" rsrc.obj
dir "%1.*"
del %1.obj
goto TheEnd

:nores
\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF "%1.obj"
dir "%1.*"

:TheEnd

if errorlevel 0 dir "%1.*" > \masm32\bin\lnk.txt

\masm32\thegun \masm32\bin\lnk.txt

Tedd


@echo off

if exist "%1.exe" del "%1.exe"

if not exist rsrc.obj goto nores

\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF "%1.obj" rsrc.obj
if errorlevel 1 goto errlink
del %1.obj
del rsrc.obj
dir "%1.*" > \masm32\bin\lnk.txt
goto TheEnd

:nores
\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF "%1.obj"
if errorlevel 1 goto errlink
del %1.obj
dir "%1.*" > \masm32\bin\lnk.txt
goto TheEnd

:errlink
echo ___Link error___
pause > nul

:TheEnd


-- cleanup, plus a few extras :wink
No snowflake in an avalanche feels responsible.