News:

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

macro directory?

Started by p0wder, July 26, 2006, 01:24:50 PM

Previous topic - Next topic

p0wder

what is something that i can use in my batch file for including the default directory for macros ... ie: /LIBPATH:C:\masm32\lib .. but for macros?

drizz

if you supply the search path to assembler (ml) via </I:"mypath"> switch you can have anyfile
included in the source (you can give multiple /I commands)

example
[cmdline]
use drive letter X if you are not building on the same partition as the assembler /I"X:\MASM32\INCLUDE"
\masm32\bin\ml /nologo /c /coff /I"\MASM32\INCLUDE" /I"\MASM32\MACRO" myfile.asm

[myfile.asm src]
.686
...
; no need for full path here if you give it on the cmdline
include windows.inc
include kernel32.inc
include user32.inc
include mymacros.mac




The truth cannot be learned ... it can only be recognized.