Subversion Repositories SvarDOS

Rev

Rev 2193 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2193 Rev 2244
Line 18... Line 18...
18
# dump the NLS collate table to screen at each DIR
18
# dump the NLS collate table to screen at each DIR
19
#FEATURES += -DDIR_DUMPNLSCOLLATE
19
#FEATURES += -DDIR_DUMPNLSCOLLATE
20
 
20
 
21
 
21
 
22
LDFLAGS = -0 -y -wx -mt -lr -we -d0 -ox -fm=command.map
22
LDFLAGS = -0 -y -wx -mt -lr -we -d0 -ox -fm=command.map
23
CFLAGS = -0 -wx -ms -we -d0 -ox $(FEATURES)
23
CFLAGS = -0 -wx -ms -we -d0 -ox -zl $(FEATURES)
24
# -0   generate 8086 compatible code
24
# -0   generate 8086 compatible code
25
# -y   ignore %WCL% if present
25
# -y   ignore %WCL% if present
26
# -wx  maximum warnings level
26
# -wx  maximum warnings level
27
# -mt  TINY memory model
27
# -mt  TINY memory model
28
# -lr  real-mode target
28
# -lr  real-mode target
29
# -we  any warning is considered an error
29
# -we  any warning is considered an error
30
# -d0  no debug data
30
# -d0  no debug data
31
# -ox  maximum optimization level
31
# -ox  maximum optimization level
-
 
32
# -zl  remove default library information
32
#
33
#
33
# NOTE: wcc does not understand -mt, that is why -ms must be passed instead
34
# NOTE: wcc does not understand -mt, that is why -ms must be passed instead
34
 
35
 
35
all: command.com
36
all: command.com
36
 
37
 
37
command.com: rmodcore.h command.obj cmd.obj deflang.obj env.obj redir.obj rmodinit.obj sayonara.obj helpers.obj
38
command.com: startup.obj rmodcore.h command.obj cmd.obj deflang.obj env.obj redir.obj rmodinit.obj sayonara.obj helpers.obj
38
	# build the final executable
39
	# build the final executable
39
	*wcl $(LDFLAGS) command.obj cmd.obj deflang.obj env.obj redir.obj rmodinit.obj sayonara.obj helpers.obj svarlang.lib\svarlngs.lib
40
	*wlink SYSTEM DOS COM OPTION MAP FILE startup,command.obj,cmd.obj,deflang.obj,env.obj,redir.obj,rmodinit.obj,sayonara.obj,helpers.obj,svarlang.lib\svarlngs.lib NAME command.com
-
 
41
 
-
 
42
startup.obj: startup.asm
-
 
43
	wasm startup.asm -DSTACKSIZE=2048
40
 
44
 
41
deflang.obj: lang\*.txt
45
deflang.obj: lang\*.txt
42
	# GENERATE CODEPAGE-SPECIFIC VERSIONS OUT OF UTF-8 FILES
46
	# GENERATE CODEPAGE-SPECIFIC VERSIONS OUT OF UTF-8 FILES
43
	CD LANG
47
	CD LANG
44
	utf8tocp 850 BR-UTF8.TXT BR.TXT
48
	utf8tocp 850 BR-UTF8.TXT BR.TXT