-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
36 lines (26 loc) · 806 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# OpenWatcom Makefile, use wmake
DOS_H = $(%WATCOM)/h
C16FLAGS = -i=$(DOS_H) -bt=dos -ms -q -ec
WC16 = wcc $(C16FLAGS)
ASM = wasm
AFLAGS = -zq -0
LNKOPT = option quiet
.EXTENSIONS:
.EXTENSIONS: .exe .rex .lib .obj .wbj .asm .c .for
all: .SYMBOLIC diskdump.exe
HELLOOBJS = diskdump.obj utils.obj
diskdump.exe: $(HELLOOBJS) .PRECIOUS
wlink $(LNKOPT) system dos name diskdump &
file diskdump.obj &
file utils.obj
clean: .SYMBOLIC
@if exist *.obj rm *.obj
@if exist *.exe rm *.exe
@if exist *.sys rm *.sys
@if exist *.err rm *.err
@if exist *.map rm *.map
@if exist *.lnk rm *.lnk
.c.obj: .AUTODEPEND
$(WC16) $(C16FLAGS) -fo=$*.obj $*.c
.asm.obj : .AUTODEPEND
$(ASM) $(AFLAGS) -fo=$*.obj $^&.asm