-
Notifications
You must be signed in to change notification settings - Fork 2
/
MAKEFILE
52 lines (39 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
LINK = tlink
LFLAGS = /m /v /s
ASM = tasm
AFLAGS = /mx /la /s /zi /dMDL=TINY
AMDL = __TINY__
# This is 2.0 instead of 4.0, because the 4.0\tlib is buggy
LIB = d:\tasm2.0\tlib
LIBFLAGS = /c/0
# default rule for making a .COM from an object module
#.obj.com:
# $(LINK) $(LFLAGS) $<,,,amis$(MDL)
# default rule for making an object module from an assembler source file
.asm.obj:
$(ASM) $(AFLAGS) /D$(AMDL) $*
# default rule for making an .EXE from an object module
.obj.exe:
$(LINK) $(LFLAGS) $<,,,amis$(MDL)
all: softhddi.com
amis.obj: amis.asm amis.mac
amishotk.obj: amishotk.asm amis.mac
amisutil.obj: amisutil.asm amis.mac
amipopup.obj: amipopup.asm amis.mac
amis$(MDL).lib: amis.obj amishotk.obj amisutil.obj amipopup.obj
del amis$(MDL).lib
$(LIB) $(LIBFLAGS) amis$(MDL) +amis+amishotk+amipopup+amisutil
clean:
del softhddi.obj
del softhddi.com
del *.tds
del *.map
del *.lst
softhddi.exe: softhddi.obj amis$(MDL).lib
softhddi.com: softhddi.exe
tdstrip -s -c softhddi.exe softhddi.com
#del softhddi.exe
softhddi.obj: softhddi.asm amis.mac
softhddi.zip: softhddi.com softhddi.txt file_id.diz
del softhddi.zip
pkzip -ex softhddi.zip softhddi.com softhddi.txt file_id.diz