3.1.6 BUILD Limitations and Rules
BUILD is subject to the following limitations and rules:
1.Only one DLL or library can be built in a given source directory. The equivalent of an import library will be generated automatically when you build a DLL.
2.Any number of executables can be generated, as long as each consists of a single source file (containing main) that is to be linked to the library or DLL being generated.
3.When you build a DLL, the LIBRARY statement in your .def file must match the TARGETNAME statement in the sources file exactly. The comparison is case-sensitive.
4.If your DLL must link with other libraries, these libraries must be specified in the TARGETLIBS statement in your sources file. These libraries must be specified with the “\*\” notation already described for UMLIBS.
5.There should be no blank spaces between a BUILD keyword and the equal sign. For example, the following line is invalid:
SOURCES = file.c
while the following line is valid:
SOURCES= file.c
6.BUILD does not process NMAKE macros or conditional syntax. Consequently, the value of a BUILD keyword in a sources file must be textual, and it cannot contain references to NMAKE macros.