Subversion Repositories SvarDOS

Rev

Rev 432 | Rev 448 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 432 Rev 433
1
#
1
#
2
# This is a makefile to build the SVARCOM command interpreter (COMMAND.COM)
2
# This is a makefile to build the SVARCOM command interpreter (COMMAND.COM)
3
# using OpenWatcom and nasm.
3
# using OpenWatcom and nasm.
4
#
4
#
5
# You can use following targets:
5
# You can use following targets:
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
CFLAGS = -0 -y -cc -wx -mt -lr -we -d0 -ox -fm=command.map
12
# -0   generate 8086 compatible code
12
# -0   generate 8086 compatible code
13
# -y   ignore %WCL% if present
13
# -y   ignore %WCL% if present
14
# -cc  C code
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
 
21
 
22
all: command.com
22
all: command.com
23
 
23
 
24
command.com: rmod.h command.c cmd.c doserr.c env.c redir.c rmodinit.c helpers.c cmd\*.c
24
command.com: deflang.h rmod.h command.c cmd.c doserr.c env.c redir.c rmodinit.c helpers.c cmd\*.c
25
	wcl $(CFLAGS) command.c cmd.c doserr.c env.c redir.c rmodinit.c helpers.c
25
	wcl $(CFLAGS) command.c cmd.c doserr.c env.c redir.c rmodinit.c helpers.c
26
 
26
 
27
rmod.h: file2c.com rmod.com
27
rmod.h: file2c.com rmod.com
28
	file2c /c rmod.com rmod.h rmod
28
	file2c /c rmod.com rmod.h rmod
29
 
29
 
-
 
30
deflang.h: file2c.com tlumacz\default.lng
-
 
31
	file2c /l4096 tlumacz\default.lng deflang.h langblock
-
 
32
 
30
file2c.com: file2c.c
33
file2c.com: file2c.c
31
	wcl $(CFLAGS) file2c.c
34
	wcl $(CFLAGS) file2c.c
32
 
35
 
33
rmod.com: rmod.asm
36
rmod.com: rmod.asm
34
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
37
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
35
 
38
 
36
clean: .SYMBOLIC
39
clean: .SYMBOLIC
37
	del *.com
40
	del *.com
38
	del *.obj
41
	del *.obj
39
 
42
 
40
pkg: svarcom.zip
43
pkg: svarcom.zip
41
 
44
 
42
svarcom.zip: command.com
45
svarcom.zip: command.com
43
	zip -9 svarcom.zip command.com *.txt
46
	zip -9 svarcom.zip command.com *.txt
44
 
47