Subversion Repositories SvarDOS

Rev

Rev 448 | Rev 478 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 448 Rev 476
Line 6... Line 6...
6
#
6
#
7
#  wmake           - compiles the program
7
#  wmake           - compiles the program
8
#  wmake clean     - cleans up all non-source files
8
#  wmake clean     - cleans up all non-source files
9
#
9
#
10
 
10
 
11
CFLAGS = -0 -y -cc -wx -mt -lr -we -d0 -ox -fm=command.map
11
LDFLAGS = -0 -y -wx -mt -lr -we -d0 -ox -fm=command.map
-
 
12
CFLAGS = -0 -wx -ms -we -d0 -ox
12
# -0   generate 8086 compatible code
13
# -0   generate 8086 compatible code
13
# -y   ignore %WCL% if present
14
# -y   ignore %WCL% if present
14
# -cc  C code
-
 
15
# -wx  maximum warnings level
15
# -wx  maximum warnings level
16
# -mt  TINY memory model
16
# -mt  TINY memory model
17
# -lr  real-mode target
17
# -lr  real-mode target
18
# -we  any warning is considered an error
18
# -we  any warning is considered an error
19
# -d0  no debug data
19
# -d0  no debug data
20
# -ox  maximum optimization level
20
# -ox  maximum optimization level
-
 
21
#
-
 
22
# NOTE: wcc does not understand -mt, that is why -ms must be passed instead
21
 
23
 
22
all: command.com
24
all: command.com
23
 
25
 
24
command.com: deflang.h rmod.h command.c cmd.c doserr.c env.c redir.c rmodinit.c sayonara.c helpers.c cmd\*.c
26
command.com: deflang.h rmod.h command.obj cmd.obj doserr.obj env.obj redir.obj rmodinit.obj sayonara.obj helpers.obj
25
	wcl $(CFLAGS) command.c cmd.c doserr.c env.c redir.c rmodinit.c sayonara.c helpers.c
27
	*wcl $(LDFLAGS) command.obj cmd.obj doserr.obj env.obj redir.obj rmodinit.obj sayonara.obj helpers.obj
-
 
28
 
-
 
29
.c.obj:
-
 
30
	wcc $(CFLAGS) $<
26
 
31
 
27
rmod.h: file2c.com rmod.com
32
rmod.h: file2c.com rmod.com
28
	file2c /c rmod.com rmod.h rmod
33
	file2c /c rmod.com rmod.h rmod
29
 
34
 
30
deflang.h: file2c.com tlumacz\default.lng
35
deflang.h: file2c.com tlumacz\default.lng
31
	file2c /l4096 tlumacz\default.lng deflang.h langblock
36
	file2c /l4096 tlumacz\default.lng deflang.h langblock
32
 
37
 
33
file2c.com: file2c.c
38
file2c.com: file2c.c
34
	wcl $(CFLAGS) file2c.c
39
	wcl $(LDFLAGS) file2c.c
35
 
40
 
36
rmod.com: rmod.asm
41
rmod.com: rmod.asm
37
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
42
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
38
 
43
 
39
clean: .SYMBOLIC
44
clean: .SYMBOLIC