summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/TOOLS.INI
blob: 3c6a26751ed657468fe0a34e27690f69935ff9f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[nmake]

#############################################################################
#                                                                           #
# These are the built in rules and path definitions used by the new MS Make #
# Utility (NMAKE). The following variables are set externaly (ie set in the #
# individual makefiles.                                                     #
#                                                                           #
# extasw = The 'extra assembly switch' variable is optionaly used in the    #
#          makefile to specify special MASM command line switches.          #
#                                                                           #
# extcsw = The 'extra C switch' variable is optionaly used in the makefile  #
#          to specify special C compiler command line switches.             #
#                                                                           #
# inc    = The include file search path from the utility being built to the #
#          INC directory. Used if needed.                                   #
#                                                                           #
# dos    = The include file search path from the utility being built to the #
#          DOS directory. Used if needed.                                   #
#                                                                           #
# hinc   = The include file search path from the utility being built to the #
#          H directory. Used if needed for C source compilation.            #
#                                                                           #
#############################################################################

########## Definitionms for the Assembler ##########

asm	=masm
aflags	=-Mx -t $(extasw)
ainc	=-I. -I$(inc) -I$(dos)

########## Definitions for C compiler ##########

cc	=cl
cflags	=-AS -Os -Zp $(extcsw)
cinc	=-I. -I$(hinc)

########## Definitions for linker ##########

link	=link

########## Built-in rules ##########

.SUFFIXES:
.SUFFIXES: .c .obj .lst .exe .com .cod .inc .skl .cl1 .ctl .asm .idx .msg

.asm.obj:
	$(asm) $(aflags) $(ainc) $*.asm,$*.obj;

.asm.lst:
	$(asm) -l $(aflags) $(ainc) $*.asm;

.c.obj:
	$(cc) -c $(cflags) $(cinc) -Fo$*.obj $*.c

.c.lst:
	$(cc) -c $(cflags) $(cinc) -fc$*.cod -fo$*.obj $*.c

.exe.com:
	reloc $*.exe $*.com

.skl.cl1:
	nosrvbld $*.skl $(msg)\$(COUNTRY).msg

.skl.ctl:
	buildmsg $(msg)\$(COUNTRY) $*.skl

.msg.idx:
        attrib -R $*.msg
	buildidx $*.msg
        attrib +R $*.msg