Subversion Repositories SvarDOS

Rev

Go to most recent revision | Details | 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)
3
#
4
# You can use following targets:
5
#
6
#  wmake           - compiles the program
7
#  wmake clean     - cleans up all non-source files
8
#
9
 
10
CFLAGS = -0 -y -cc -wx -mt -lr -we -d0 -ox -fm=command.map
11
# -0   generate 8086 compatible code
12
# -y   ignore %WCL% if present
13
# -cc  C code
14
# -wx  maximum warnings level
15
# -mt  TINY memory model
16
# -lr  real-mode target
17
# -we  any warning is considered an error
18
# -d0  no debug data
19
# -ox  maximum optimization level
20
 
21
all: command.com
22
 
361 mateuszvis 23
command.com: rmod.h command.c cmd.c env.c rmodinit.c helpers.c cmd\*.c
24
	wcl $(CFLAGS) command.c cmd.c env.c rmodinit.c helpers.c
349 mateuszvis 25
 
26
rmod.h: file2c.com rmod.com
27
	file2c rmod.com rmod.h rmod
28
 
29
file2c.com: file2c.c
30
	wcl $(CFLAGS) file2c.c
31
 
32
rmod.com: rmod.asm
33
	nasm -f bin -l rmod.lst -o rmod.com rmod.asm
34
 
35
clean: .SYMBOLIC
36
	del *.com
37
	del *.obj