Post by Paul G. Wei » Fri, 27 Jul 1990 00:16:03

I have been using the new make utility NMAKE that comes with Microsoft
C 6.0 and in general I have been quite pleased about it.  It is vastly
superior to its predecessor, MAKE.

There is a feature called Macro Substitution whereby an expression of
the form:
expands to the current definition of MACRONAME with <new-text>
substituted for every occurrence of <old-text>.  My biggest complaint
is that <old-text> and <new-text> are not themselves scanned for

For example, suppose you have a group of object files that are to
be built in a certain directory.  You set things up:
        UTIL_DIR = c:\misc\utils
        UTIL_OBJS = x.obj y.obj z.obj
I had thought that you could then do this:
        $(UTIL_DIR)\$(UTIL_OBJS: = $(UTIL_DIR)\)
and it would expand into
        c:\misc\utils\x.obj c:\misc\utils\y.obj c:\misc\utils\z.obj
which could then be used as the dependent files in a description
block.  But no, you have to say:
        c:\misc\utils\$(UTIL_OBJS: = c:\misc\utils\)
in order for it to work, since the substitution text is used "as is",
instead of being expanded.  Now if I change the directory, I must
change it in two places instead of one.  If Microsoft is listening,
I hope that they will consider adding this behavior.

My one other disappointment is that I had hoped that you would be able
to say to NMAKE: "Take all 'C' and 'ASM' files in the current
directory, compile them using my usual inference rules, then link them
together to form the file FOO.EXE"

I can't find a way to do this without explicitly mentioning all the
object files, e.g. :


Note that this description block is all that is necessary to build
the program -- NMAKE will search for source files corresponding to
the object file targets and apply inference rules to compile them.
This itself is a big improvement over MAKE.  However I would like
to go a step further and have the NMAKE program infer that if there
is an eligible source file, then it is to be compiled and the resulting
object file is to be included in the link.  Does anyone know
how to automate which object files get in to the link?


1. Building djgpp on NT Machine (was Nmake for WinNT 3.5 utilities)

No, I'm talking about compiling the djgpp sources on my NT machine.  We've
scrapped the idea of using MSVC at all.  We're going to do it the
"traditional" way using editors and RHIDE where we can.  First,
though, I need to get djgpp to compile on my machine.  I've successfully
compiled gcc on sunos, linux, and irix boxes in the past . . . but I have
never had as hard a time as getting djgpp to compile on my NT machine . .
  And I think it's because I don't have the right tools (i.e. make
program).  Basically what I need is a list of tools and versions and a
step-by-step list of how to build it.  The GNU CC installation
instructions just aren't specific enough for the DOS/Windows platform.  So
far, though, I haven't located anyone who has this kind of information :(
 . .  sigh.

|...... Casey K. Corcoran ......| University of Illinois

|....... (217) 244-0049 ........| 1308 W. Main Street, Urbana, IL 61801

2. Please help - sbs - exchange

3. Nmake for WinNT 3.5 utilities

4. Medical Image Format FAQ, Part 6/8

5. does GNU do nmake?

6. Resolved: Re: [tao-users] TAO_CEC_EventChannel causes an access violation (long)

7. NMAKE weirdness

8. port 22644 ?

9. Problem with nmake

10. Help needed using NMAKE

11. Help: Good Book for NMAKE?

12. NMAKE targets

13. nmake for DOS... Where?