Subversion Repositories SvarDOS

Rev

Rev 402 | Rev 432 | 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
 
402 mateuszvis 24
command.com: 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
349 mateuszvis 26
 
27
rmod.h: file2c.com rmod.com
28
	file2c rmod.com rmod.h rmod
29
 
30
file2c.com: file2c.c
31
	wcl $(CFLAGS) file2c.c
32
 
33
rmod.com: rmod.asm
34
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
35
 
36
clean: .SYMBOLIC
37
	del *.com
38
	del *.obj
394 mateuszvis 39
 
40
pkg: svarcom.zip
41
 
42
svarcom.zip: command.com
43
	zip -9 svarcom.zip command.com *.txt