Subversion Repositories SvarDOS

Rev

Rev 433 | Rev 476 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
349 mateuszvis 1
#
2
# This is a makefile to build the SVARCOM command interpreter (COMMAND.COM)
421 mateuszvis 3
# using OpenWatcom and nasm.
349 mateuszvis 4
#
5
# You can use following targets:
6
#
7
#  wmake           - compiles the program
8
#  wmake clean     - cleans up all non-source files
9
#
10
 
11
CFLAGS = -0 -y -cc -wx -mt -lr -we -d0 -ox -fm=command.map
12
# -0   generate 8086 compatible code
13
# -y   ignore %WCL% if present
14
# -cc  C code
15
# -wx  maximum warnings level
16
# -mt  TINY memory model
17
# -lr  real-mode target
18
# -we  any warning is considered an error
19
# -d0  no debug data
20
# -ox  maximum optimization level
21
 
22
all: command.com
23
 
448 mateuszvis 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
25
	wcl $(CFLAGS) command.c cmd.c doserr.c env.c redir.c rmodinit.c sayonara.c helpers.c
349 mateuszvis 26
 
27
rmod.h: file2c.com rmod.com
432 mateuszvis 28
	file2c /c rmod.com rmod.h rmod
349 mateuszvis 29
 
433 mateuszvis 30
deflang.h: file2c.com tlumacz\default.lng
31
	file2c /l4096 tlumacz\default.lng deflang.h langblock
32
 
349 mateuszvis 33
file2c.com: file2c.c
34
	wcl $(CFLAGS) file2c.c
35
 
36
rmod.com: rmod.asm
37
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
38
 
39
clean: .SYMBOLIC
40
	del *.com
41
	del *.obj
394 mateuszvis 42
 
43
pkg: svarcom.zip
44
 
45
svarcom.zip: command.com
46
	zip -9 svarcom.zip command.com *.txt