The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: UtillMasm on May 12, 2009, 03:41:05 AM

Title: learn nmake.exe?
Post by: UtillMasm on May 12, 2009, 03:41:05 AM
Linenumber
  1
     subargs=/$(MAKEFLAGS) ntos=$(MAKEDIR) pub=$(MAKEDIR)\..\..\public
  2
     subargs  = $(subargs) targ=i386   topobj=$(MAKEDIR)\BUILD\obji386
  3
     modules = rtl config
  4
     buildtargets = $(modules: =.build ).build
  5
     default: $(buildtargets)
  6
     $(buildtargets):
  7
          cd $(MAKEDIR)\$(@R)\BUILD
  8
               @$(MAKE) $(subargs) module=$(@R)

###

My question: what's mean about Line 4? :red
Title: Re: learn nmake.exe?
Post by: UtillMasm on May 12, 2009, 07:09:55 AM
it's a Macro Substitution.

insert 2 lines before line 7:
     @echo $(modules: =.build )
     @echo $(buildtargets)

haHa! it's so easy, but has drive me carazy! :green
Title: Re: learn nmake.exe?
Post by: Vortex on May 12, 2009, 04:47:45 PM
NMAKE Reference (http://msdn.microsoft.com/en-us/library/dd9y37ha(VS.71).aspx)
Title: Re: learn nmake.exe?
Post by: UtillMasm on May 12, 2009, 04:50:56 PM
thanks.
but it looks too new :wink.

no, that's not the reason.
the real reason is, 'i cann't understand microsoft english.'.  :toothy