-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·115 lines (95 loc) · 2.24 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# This is Borland MAKE makefile
# Files to fix for new version:
# file_id.diz - version and copyright
# *.doc - version, copyright, changes
# srdisk.h - VERSION
# srdisk.c - copyright year
# define.inc - SRD_VERSION, DEBUGGING
# srdisk.inc - copyright year
# srdummy.asm - copyright year
# makefile - VERSION and RELTIME
BORLANDC=d:\borlandc
!ifndef DISTRIBUTE
DEBUG=/v
TEST=-N
LINK=-m -s
BETA=-DBETA
!else
TEST=-DNDEBUG
!endif
MODEL=s
CFLAGS=-O2 -w -m$(MODEL) $(DEBUG) $(TEST)
.AUTODEPEND
OBJS =\
allocate.obj \
bitmap.obj \
cmdline.obj \
director.obj \
diskinit.obj \
diskio.obj \
env.obj \
error.obj \
fat.obj \
format.obj \
formutil.obj \
getopt.obj \
makenewf.obj \
packdata.obj \
realloc.obj \
resize.obj \
srdemsf.obj \
srdisk.obj \
srdutil.obj \
srdxmsf.obj \
writenew.obj
#Make the version always three digits
VERSION = 209
# The time format is mmddhhmmyy.ss
RELTIME = 07150$(VERSION)05.00
ARCHIVE = srdsk$(VERSION)
all: srdisk.exe srdxms.sys srdems.sys srdxmss.sys srdemss.sys srdems3.sys \
srdummy.sys xmssize.exe
.SUFFIXES: .exe .sys .obj .asm .c
.c.obj:
bcc $(CFLAGS) $(BETA) -c{ $&.c}
.obj.sys:
tlink /t $&.obj,$@
.asm.obj:
tasm /t /m2 /ml /la $&.asm
srdxms.obj srdxmss.obj: srdxms.inc srdisk.inc define.inc
srdems.obj srdemss.obj: srdems.inc srdisk.inc define.inc
srdems3.obj: srdems3.inc srdisk.inc define.inc
srdummy.obj: define.inc
srdisk.exe: $(OBJS)
tlink /L$(BORLANDC)\lib /c $(DEBUG) $(LINK) c0$(MODEL).obj @&&!
$(OBJS)
!,srdisk.exe,,c$(MODEL).lib
xmssize.exe: xmssize.obj
tlink xmssize
distribute:
del *.obj
del srdisk.exe
del *.sys
$(MAKE) "-DDISTRIBUTE" distribution
distribution: all package
echo :::::: DEBUG=$(DEBUG) TEST=$(TEST) BETA=$(BETA)
package:
touch -t$(RELTIME) file_id.diz whatsnew.doc beta.doc read.me
touch -t$(RELTIME) *.sys srdisk.doc srdisk.exe suomi.doc
touch -t$(RELTIME) xmssize.doc xmssize.exe
pkzip -ex $(ARCHIVE) @&&!
read.me
file_id.diz
whatsnew.doc
srdisk.doc
srdxms.sys
srdxmss.sys
srdems.sys
srdemss.sys
srdems3.sys
srdummy.sys
srdisk.exe
xmssize.doc
xmssize.exe
COPYING
!