4 #############################################################################
6 # These are the built in rules and path definitions used by the new MS Make #
7 # Utility (NMAKE). The following variables are set externaly (ie set in the #
8 # individual makefiles. #
10 # extasw = The 'extra assembly switch' variable is optionaly used in the #
11 # makefile to specify special MASM command line switches. #
13 # extcsw = The 'extra C switch' variable is optionaly used in the makefile #
14 # to specify special C compiler command line switches. #
16 # inc = The include file search path from the utility being built to the #
17 # INC directory. Used if needed. #
19 # dos = The include file search path from the utility being built to the #
20 # DOS directory. Used if needed. #
22 # hinc = The include file search path from the utility being built to the #
23 # H directory. Used if needed for C source compilation. #
25 #############################################################################
27 ########## Definitionms for the Assembler ##########
30 aflags =-Mx -t $(extasw)
31 ainc =-I. -I$(inc) -I$(dos)
33 ########## Definitions for C compiler ##########
36 cflags =-AS -Os -Zp $(extcsw)
39 ########## Definitions for linker ##########
43 ########## Built-in rules ##########
46 .SUFFIXES: .c .obj .lst .exe .com .cod .inc .skl .cl1 .ctl .asm .idx .msg
49 $(asm) $(aflags) $(ainc) $*.asm,$*.obj;
52 $(asm) -l $(aflags) $(ainc) $*.asm;
55 $(cc) -c $(cflags) $(cinc) -Fo$*.obj $*.c
58 $(cc) -c $(cflags) $(cinc) -fc$*.cod -fo$*.obj $*.c
64 nosrvbld $*.skl $(msg)\$(COUNTRY).msg
67 buildmsg $(msg)\$(COUNTRY) $*.skl