initial commit
[rofl0r-KOL.git] / system / makefile
blob1428af948f515d6eb4a9caa3f01483b705c7a148
2 # *******************************************************
3 # * *
4 # * Delphi Runtime Library *
5 # * MAKE script *
6 # * *
7 # * Copyright (C) 1988,98 Inprise Corporation *
8 # * *
9 # *******************************************************
11 # This MAKE script requires Borland MAKE Version 3.7 or later (MAKE.EXE),
12 # Turbo Assembler Version 4.0 or later (TASM32.EXE), and Borland Resource
13 # Compiler Version 4.0 or later (BRCC32.EXE).
15 # The script assumes that DCC32.EXE, TASM32.EXE, and BRCC32.EXE are present
16 # on the current search path--if this is not the case, modify the DCC, TASM,
17 # and BRCC macros below to reflect the location of these executables.
19 # To build the runtime library without debug information (the default),
20 # simply run MAKE.EXE from the directory containing this MAKEFILE. To
21 # build a debug version of the runtime library, specify a -DDEBUG command
22 # line parameter when running MAKE.EXE.
24 # The BIN and LIB macros define the output directories for binaries and
25 # compiled units.
27 # DCC = dcc32 -q
28 # TASM = tasm32
29 # BRCC = brcc32
31 DCC = c:\delphi5\bin\dcc32 -q
32 TASM = c:\tasm5\bin\tasm32
33 BRCC = c:\delphi5\bin\brcc32
35 BIN = bin
36 LIB = lib
38 !if $d(DEBUG)
39 RTLDEBUG = -$$D+
40 ASMDEBUG = -zi
41 !else
42 RTLDEBUG = -$$D-
43 ASMDEBUG = -zn
44 !endif
46 SYSTEMOBJ = \
47 sys\assign.obj \
48 sys\blockrea.obj \
49 sys\blockwri.obj \
50 sys\close.obj \
51 sys\eoffile.obj \
52 sys\eoftext.obj \
53 sys\eoln.obj \
54 sys\erase.obj \
55 sys\ext2real.obj \
56 sys\fdiv.obj \
57 sys\filepos.obj \
58 sys\filesize.obj \
59 sys\halt.obj \
60 sys\openfile.obj \
61 sys\opentext.obj \
62 sys\pow10.obj \
63 sys\readchar.obj \
64 sys\readext.obj \
65 sys\readint64.obj \
66 sys\readln.obj \
67 sys\readlong.obj \
68 sys\readrec.obj \
69 sys\readstri.obj \
70 sys\real2ext.obj \
71 sys\rename.obj \
72 sys\seek.obj \
73 sys\seekeof.obj \
74 sys\seekeoln.obj \
75 sys\settextb.obj \
76 sys\strext.obj \
77 sys\truncate.obj \
78 sys\valext.obj \
79 sys\writerec.obj \
80 sys\writestr.obj \
81 sys\_ll.obj
83 SYSUTILSOBJ = \
84 sys\ffmt.obj
86 .asm.obj:
87 $(TASM) -zn -m3 -t -w- $(ASMDEBUG) -isys $*,$*.obj
89 default: \
90 $(LIB)\system.dcu \
91 $(LIB)\sysvarnt.dcu \
92 $(LIB)\syssfini.dcu \
93 $(LIB)\syswstr.dcu \
94 $(LIB)\sharemem.dcu \
95 $(LIB)\comobj.dcu \
96 $(LIB)\comserv.dcu \
97 $(LIB)\windows.dcu \
98 $(LIB)\sysutils.dcu \
99 $(LIB)\messages.dcu \
100 $(LIB)\shellapi.dcu \
101 $(LIB)\shlobj.dcu \
102 $(LIB)\dlgs.dcu \
103 $(LIB)\commdlg.dcu \
104 $(LIB)\commctrl.dcu \
105 $(LIB)\ddeml.dcu \
106 $(LIB)\flatsb.dcu \
107 $(LIB)\mmsystem.dcu \
108 $(LIB)\nsapi.dcu \
109 $(LIB)\isapi.dcu \
110 $(LIB)\isapi2.dcu \
111 $(LIB)\wininet.dcu \
112 $(LIB)\winspool.dcu \
113 $(LIB)\winsock.dcu \
114 $(LIB)\winsvc.dcu \
115 $(LIB)\mapi.dcu \
116 $(LIB)\multimon.dcu \
117 $(LIB)\lzexpand.dcu \
118 $(LIB)\nb30.dcu \
119 $(LIB)\ole2.dcu \
120 $(LIB)\olectl.dcu \
121 $(LIB)\oledlg.dcu \
122 $(LIB)\richedit.dcu \
123 $(LIB)\tlhelp32.dcu \
124 $(LIB)\math.dcu \
125 $(LIB)\imm.dcu \
126 $(LIB)\activex.dcu \
127 $(LIB)\cpl.dcu \
128 $(LIB)\imagehlp.dcu \
129 $(LIB)\opengl.dcu \
130 $(LIB)\penwin.dcu \
131 $(LIB)\regstr.dcu \
132 $(LIB)\urlmon.dcu
135 $(LIB)\system.dcu: sys\system.pas sys\sysinit.pas sys\getmem.inc $(SYSTEMOBJ)
136 $(DCC) sys\system -m -y -z $(RTLDEBUG) -n$(LIB)
138 # follow lines are added to compile additional units (sysvarnt, syswstr):
140 $(LIB)\sysvarnt.dcu: sys\sysvarnt.pas $(LIB)\system.dcu
141 $(DCC) sys\sysvarnt -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
143 $(LIB)\syswstr.dcu: sys\syswstr.pas $(LIB)\system.dcu
144 $(DCC) sys\syswstr -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
146 $(LIB)\syssfini.dcu: sys\syssfini.pas $(LIB)\system.dcu
147 $(DCC) sys\syssfini -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
149 $(LIB)\comobj.dcu: sys\comobj.pas $(LIB)\system.dcu \
150 $(LIB)\sysutils.dcu $(LIB)\windows.dcu $(LIB)\activex.dcu
151 $(DCC) sys\comobj -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
153 $(LIB)\comserv.dcu: sys\comserv.pas $(LIB)\system.dcu \
154 $(LIB)\comobj.dcu $(LIB)\sysutils.dcu $(LIB)\windows.dcu
155 $(DCC) sys\comserv -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
157 $(LIB)\sharemem.dcu: sys\sharemem.pas $(LIB)\system.dcu
158 $(DCC) sys\sharemem -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
160 $(LIB)\windows.dcu: win\windows.pas $(LIB)\system.dcu
161 $(DCC) win\windows -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
163 $(LIB)\sysutils.dcu: sys\sysutils.pas $(SYSUTILSOBJ) \
164 $(LIB)\system.dcu $(LIB)\windows.dcu
165 $(DCC) sys\sysutils -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
167 $(LIB)\messages.dcu: win\messages.pas $(LIB)\system.dcu \
168 $(LIB)\windows.dcu
169 $(DCC) win\messages -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
171 $(LIB)\shellapi.dcu: win\shellapi.pas $(LIB)\system.dcu \
172 $(LIB)\windows.dcu
173 $(DCC) win\shellapi -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
175 $(LIB)\regstr.dcu: win\regstr.pas $(LIB)\system.dcu \
176 $(LIB)\windows.dcu
177 $(DCC) win\regstr -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
179 $(LIB)\shlobj.dcu: win\shlobj.pas $(LIB)\system.dcu \
180 $(LIB)\windows.dcu $(LIB)\ole2.dcu $(LIB)\commctrl.dcu \
181 $(LIB)\shellapi.dcu $(LIB)\regstr.dcu
182 $(DCC) win\shlobj -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
184 $(LIB)\dlgs.dcu: win\dlgs.pas $(LIB)\system.dcu
185 $(DCC) win\dlgs -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
187 $(LIB)\commdlg.dcu: win\commdlg.pas $(LIB)\system.dcu \
188 $(LIB)\windows.dcu $(LIB)\messages.dcu
189 $(DCC) win\commdlg -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
191 $(LIB)\commctrl.dcu: win\commctrl.pas $(LIB)\system.dcu \
192 $(LIB)\windows.dcu
193 $(DCC) win\commctrl -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
195 $(LIB)\ddeml.dcu: win\ddeml.pas $(LIB)\system.dcu $(LIB)\windows.dcu
196 $(DCC) win\ddeml -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
198 $(LIB)\mmsystem.dcu: win\mmsystem.pas $(LIB)\system.dcu \
199 $(LIB)\windows.dcu
200 $(DCC) win\mmsystem -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
202 $(LIB)\winspool.dcu: win\winspool.pas $(LIB)\system.dcu \
203 $(LIB)\windows.dcu
204 $(DCC) win\winspool -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
206 $(LIB)\isapi.dcu: win\isapi.pas $(LIB)\system.dcu $(LIB)\windows.dcu
207 $(DCC) win\isapi -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
209 $(LIB)\isapi2.dcu: win\isapi2.pas $(LIB)\system.dcu $(LIB)\windows.dcu
210 $(DCC) win\isapi2 -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
212 $(LIB)\nsapi.dcu: win\nsapi.pas $(LIB)\system.dcu $(LIB)\windows.dcu
213 $(DCC) win\nsapi -z $(RTLDEBUG) -u$(LIB);win -n$(LIB)
215 $(LIB)\wininet.dcu: win\wininet.pas $(LIB)\system.dcu \
216 $(LIB)\windows.dcu
217 $(DCC) win\wininet -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
219 $(LIB)\winsock.dcu: win\winsock.pas $(LIB)\system.dcu \
220 $(LIB)\windows.dcu
221 $(DCC) win\winsock -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
223 $(LIB)\winsvc.dcu: win\winsvc.pas $(LIB)\system.dcu \
224 $(LIB)\windows.dcu
225 $(DCC) win\winsvc -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
227 $(LIB)\mapi.dcu: win\mapi.pas $(LIB)\system.dcu \
228 $(LIB)\windows.dcu
229 $(DCC) win\mapi -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
231 $(LIB)\lzexpand.dcu: win\lzexpand.pas $(LIB)\system.dcu \
232 $(LIB)\windows.dcu
233 $(DCC) win\lzexpand -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
235 $(LIB)\nb30.dcu: win\nb30.pas $(LIB)\system.dcu $(LIB)\windows.dcu
236 $(DCC) win\nb30 -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
238 $(LIB)\ole2.dcu: win\ole2.pas $(LIB)\system.dcu \
239 $(LIB)\windows.dcu
240 $(DCC) win\ole2 -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
242 $(LIB)\olectl.dcu: win\olectl.pas $(LIB)\system.dcu \
243 $(LIB)\windows.dcu $(LIB)\messages.dcu $(LIB)\ole2.dcu
244 $(DCC) win\olectl -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
246 $(LIB)\oledlg.dcu: win\oledlg.pas $(LIB)\system.dcu \
247 $(LIB)\windows.dcu $(LIB)\commctrl.dcu $(LIB)\ole2.dcu
248 $(DCC) win\oledlg -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
250 $(LIB)\richedit.dcu: win\richedit.pas $(LIB)\system.dcu \
251 $(LIB)\windows.dcu
252 $(DCC) win\richedit -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
254 $(LIB)\tlhelp32.dcu: win\tlhelp32.pas $(LIB)\system.dcu \
255 $(LIB)\windows.dcu
256 $(DCC) win\tlhelp32 -z $(RTLDEBUG) -u$(LIB) -n$(LIB)
258 $(LIB)\math.dcu: sys\math.pas $(LIB)\system.dcu
259 $(DCC) sys\math -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
261 $(LIB)\imm.dcu: win\imm.pas $(LIB)\windows.dcu
262 $(DCC) win\imm -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
264 $(LIB)\activex.dcu: win\activex.pas $(LIB)\windows.dcu $(LIB)\messages.dcu
265 $(DCC) win\activex -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
267 $(LIB)\cpl.dcu: win\cpl.pas $(LIB)\windows.dcu $(LIB)\messages.dcu
268 $(DCC) win\cpl -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
270 $(LIB)\imagehlp.dcu: win\imagehlp.pas $(LIB)\windows.dcu
271 $(DCC) win\imagehlp -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
273 $(LIB)\opengl.dcu: win\opengl.pas $(LIB)\windows.dcu
274 $(DCC) win\opengl -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
276 $(LIB)\penwin.dcu: win\penwin.pas $(LIB)\windows.dcu $(LIB)\messages.dcu \
277 $(LIB)\mmsystem.dcu
278 $(DCC) win\penwin -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
280 $(LIB)\urlmon.dcu: win\urlmon.pas $(LIB)\windows.dcu $(LIB)\activex.dcu
281 $(DCC) win\urlmon -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
283 $(LIB)\flatsb.dcu: win\flatsb.pas $(LIB)\windows.dcu
284 $(DCC) win\flatsb -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)
286 $(LIB)\multimon.dcu: win\multimon.pas $(LIB)\windows.dcu
287 $(DCC) win\multimon -z $(RTLDEBUG) -u$(LIB) -r$(LIB) -n$(LIB)