source: trunk/src/kernel32/makefile@ 461

Last change on this file since 461 was 450, checked in by achimha, 26 years ago

odincrt adjustments

File size: 7.4 KB
Line 
1# $Id: makefile,v 1.15 1999-08-09 18:42:06 achimha Exp $
2
3#
4# PD-Win32 API
5#
6# kernel32.dll makefile
7#
8
9PDWIN32_INCLUDE = ..\..\include
10PDWIN32_LIB = ..\..\lib
11PDWIN32_BIN = ..\..\bin
12
13
14!include $(PDWIN32_INCLUDE)/pdwin32.mk
15
16
17CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) /Tm+
18CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) /Tm+
19
20
21OBJS = KERNEL32.OBJ \
22 KOBJECTS.OBJ \
23 CONSOLE.OBJ \
24 CONIN.OBJ \
25 CONBUFFER.OBJ \
26 CONOUT.OBJ \
27 UNICODE.OBJ \
28 network.OBJ \
29 DEVIO.OBJ \
30 profile.obj \
31 THREAD.OBJ \
32 THUNK.OBJ \
33 OBSOLETE.OBJ \
34 COMM.OBJ \
35 MESSAGE.OBJ \
36 RESOURCE.OBJ \
37 NAMEID.OBJ \
38 WINRES.OBJ \
39 WINMOD.OBJ \
40 OS2NATIVE.OBJ \
41 EXCEPTIONS.OBJ \
42 LFILE.OBJ \
43 MMAP.OBJ \
44 NPIPE.OBJ \
45 MISC.OBJ \
46 EXCEPT.OBJ \
47 LANG.OBJ \
48 ICCIO.OBJ \
49 MAP.OBJ \
50 WIN32UTIL.OBJ \
51 heap.OBJ \
52 heapstring.obj \
53 os2heap.OBJ \
54 vmutex.OBJ \
55 initterm.OBJ \
56 os2util.OBJ \
57 handlemanager.OBJ \
58 hmdevice.obj \
59 hmopen32.obj \
60 hmobjects.obj \
61 hmevent.obj \
62 hmmutex.obj \
63 hmsemaphore.obj \
64 wprocess.OBJ \
65 conprop.OBJ \
66 winimage.OBJ \
67 windll.OBJ \
68 winexe.OBJ \
69 time.obj \
70 pefile.OBJ \
71 winimgres.OBJ \
72 wintls.obj \
73 async.OBJ \
74 fileio.obj \
75 atom.obj \
76 disk.obj \
77 directory.obj \
78 stubs.obj
79
80
81TARGET = kernel32
82
83all: $(PDWIN32_LIB)\pmwinx.lib $(TARGET).dll $(TARGET).LIB
84
85
86$(TARGET).dll: $(OBJS) $(TARGET).def
87 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj $(TARGET).def $(PDWIN32_LIB)\PMWINX.LIB $(PDWIN32_LIB)\LIBULS.LIB $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB
88 rc -r console.rc console.res
89 rc console.res $@
90 $(CP) $@ $(PDWIN32_BIN)
91
92$(TARGET).LIB: $(TARGET)exp.def
93 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
94 $(CP) $@ $(PDWIN32_LIB)
95
96$(PDWIN32_LIB)\pmwinx.lib:
97 $(IMPLIB) $(IMPLIBFLAGS) $@ $(PDWIN32_LIB)\pmwinx.def
98
99kernel32.OBJ: kernel32.cpp \
100 except.h \
101 $(PDWIN32_INCLUDE)\unicode.h \
102 heap.h \
103 $(PDWIN32_INCLUDE)\wprocess.h \
104 os2util.h \
105 $(PDWIN32_INCLUDE)\nameid.h
106
107kobjects.obj: kobjects.cpp
108
109comm.OBJ: \
110 .\comm.cpp \
111 $(PDWIN32_INCLUDE)\unicode.h
112
113profile.obj: profile.cpp \
114 $(PDWIN32_INCLUDE)\unicode.h
115
116directory.obj: directory.cpp \
117 $(PDWIN32_INCLUDE)\unicode.h
118
119disk.obj: disk.cpp \
120 $(PDWIN32_INCLUDE)\unicode.h
121
122atom.obj: atom.cpp \
123 $(PDWIN32_INCLUDE)\unicode.h
124
125time.obj: time.cpp \
126 $(PDWIN32_INCLUDE)\unicode.h
127
128wintls.obj: wintls.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\windll.h
129
130fileio.obj: fileio.cpp \
131 $(PDWIN32_INCLUDE)\unicode.h
132
133thread.OBJ: \
134 .\thread.cpp \
135 $(PDWIN32_INCLUDE)\wprocess.h \
136 $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\windll.h \
137 thread.h
138
139heap.OBJ: \
140 .\heap.cpp \
141 .\heap.h \
142 os2heap.h
143
144heapstring.obj: \
145 .\heapstring.cpp \
146 .\heap.h \
147 .\heapstring.h
148
149os2heap.OBJ: \
150 .\os2heap.cpp \
151 $(PDWIN32_INCLUDE)\vmutex.h \
152 $(PDWIN32_INCLUDE)\win32type.h \
153 os2heap.h
154
155initterm.OBJ: .\initterm.cpp
156
157thunk.OBJ: \
158 .\thunk.cpp \
159 thunk.h
160
161vmutex.OBJ: vmutex.cpp \
162 $(PDWIN32_INCLUDE)\vmutex.h
163
164exceptions.OBJ: \
165 .\exceptions.cpp \
166 $(PDWIN32_INCLUDE)\exceptions.h \
167 except.h
168
169message.OBJ: \
170 .\message.cpp \
171 $(PDWIN32_INCLUDE)\unicode.h
172
173devio.OBJ: \
174 .\devio.cpp \
175 devio.h \
176 map.h \
177 cio.h
178
179LANG.OBJ: \
180 .\lang.cpp
181
182wprocess.OBJ: \
183 .\wprocess.cpp \
184 $(PDWIN32_INCLUDE)\nameid.h \
185 $(PDWIN32_INCLUDE)\unicode.h \
186 $(PDWIN32_INCLUDE)\winexe.h \
187 $(PDWIN32_INCLUDE)\windll.h \
188 $(PDWIN32_INCLUDE)\winimage.h \
189 $(PDWIN32_INCLUDE)\versionos2.h \
190 $(PDWIN32_INCLUDE)\wprocess.h \
191 console2.h \
192 cio.h \
193 os2util.h
194
195map.OBJ: \
196 .\map.cpp \
197 map.h \
198 mapos2.h
199
200os2native.OBJ: \
201 .\os2native.cpp \
202 $(PDWIN32_INCLUDE)\unicode.h
203
204network.OBJ: \
205 .\network.cpp \
206 $(PDWIN32_INCLUDE)\unicode.h
207
208misc.OBJ: \
209 .\misc.cpp \
210 $(PDWIN32_INCLUDE)\misc.h
211
212win32util.OBJ: \
213 .\win32util.cpp \
214 $(PDWIN32_INCLUDE)\win32util.h
215
216npipe.OBJ: \
217 .\npipe.cpp \
218 $(PDWIN32_INCLUDE)\misc.h
219
220unicode.OBJ: \
221 .\unicode.cpp \
222 $(PDWIN32_INCLUDE)\unicode.h \
223 $(PDWIN32_INCLUDE)\misc.h
224
225console.OBJ: \
226 .\console.cpp \
227 .\console2.h \
228 $(PDWIN32_INCLUDE)\misc.h
229
230conin.OBJ: \
231 .\conin.h \
232 .\conin.cpp
233
234conout.OBJ: \
235 .\conout.h \
236 .\conout.cpp
237
238conbuffer.OBJ: \
239 .\conbuffer.h \
240 .\conbuffer.cpp
241
242mmap.OBJ: \
243 .\mmap.cpp \
244 mmap.h \
245 $(PDWIN32_INCLUDE)\unicode.h
246
247lfile.OBJ: \
248 .\lfile.cpp \
249 $(PDWIN32_INCLUDE)\wprocess.h \
250 os2util.h
251
252obsolete.OBJ: \
253 .\obsolete.cpp
254
255nameid.OBJ: \
256 .\nameid.cpp \
257 $(PDWIN32_INCLUDE)\nameid.h \
258 $(PDWIN32_INCLUDE)\win32util.h \
259 $(PDWIN32_INCLUDE)\winimage.h \
260 $(PDWIN32_INCLUDE)\winexe.h \
261 $(PDWIN32_INCLUDE)\windll.h \
262 $(PDWIN32_INCLUDE)\misc.h
263
264resource.OBJ: \
265 .\resource.cpp \
266 $(PDWIN32_INCLUDE)\nameid.h \
267 $(PDWIN32_INCLUDE)\unicode.h \
268 $(PDWIN32_INCLUDE)\winimage.h \
269 $(PDWIN32_INCLUDE)\winres.h \
270 $(PDWIN32_INCLUDE)\misc.h
271
272except.OBJ: \
273 .\except.asm
274
275iccio.OBJ: \
276 .\iccio.asm
277
278winres.OBJ: \
279 .\winres.cpp \
280 $(PDWIN32_INCLUDE)\winres.h \
281 $(PDWIN32_INCLUDE)\nameid.h \
282 $(PDWIN32_INCLUDE)\winimage.h \
283 $(PDWIN32_INCLUDE)\winexe.h \
284 $(PDWIN32_INCLUDE)\windll.h \
285 $(PDWIN32_INCLUDE)\misc.h
286
287winmod.OBJ: \
288 .\winres.cpp \
289 $(PDWIN32_INCLUDE)\winimage.h \
290 $(PDWIN32_INCLUDE)\winexe.h \
291 $(PDWIN32_INCLUDE)\windll.h \
292 $(PDWIN32_INCLUDE)\winimage.h \
293 $(PDWIN32_INCLUDE)\misc.h
294
295os2util.OBJ: .\os2util.cpp
296
297handlemanager.OBJ: \
298 .\handlemanager.cpp \
299 $(PDWIN32_INCLUDE)\handlemanager.h
300
301hmdevice.OBJ: \
302 .\hmdevice.cpp \
303 .\hmdevice.h \
304 $(PDWIN32_INCLUDE)\handlemanager.h
305
306hmopen32.OBJ: \
307 .\hmopen32.cpp \
308 .\hmopen32.h \
309 $(PDWIN32_INCLUDE)\handlemanager.h
310
311hmobjects.obj: \
312 .\hmobjects.cpp \
313 .\hmobjects.h \
314 $(PDWIN32_INCLUDE)\handlemanager.h
315
316hmevent.obj: \
317 .\hmevent.cpp \
318 .\hmevent.h \
319 .\hmdevice.h \
320 .\hmopen32.h
321
322hmmutex.obj: \
323 .\hmmutex.cpp \
324 .\hmmutex.h \
325 .\hmdevice.h \
326 .\hmopen32.h
327
328hmsemaphore.obj: \
329 .\hmsemaphore.cpp \
330 .\hmsemaphore.h \
331 .\hmdevice.h \
332 .\hmopen32.h
333
334conprop.OBJ: \
335 .\conprop.h \
336 .\conprop.cpp
337
338async.OBJ: \
339 .\async.cpp \
340 $(PDWIN32_INCLUDE)\win32type.h \
341 $(PDWIN32_INCLUDE)\misc.h \
342 $(PDWIN32_INCLUDE)\unicode.h
343
344pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h
345winimage.OBJ: winimage.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h
346winimgres.OBJ: winimgres.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\winres.h
347windll.OBJ: windll.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h
348winexe.OBJ: winexe.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\winexe.h
349stubs.obj: stubs.cpp stubs.h
350
351
352clean:
353 $(RM) *.OBJ *.LIB *.dll *~ *.map *.pch
354 $(RM) $(PDWIN32_LIB)\$(TARGET).LIB
355 $(RM) $(PDWIN32_BIN)\$(TARGET).dll
356
357
Note: See TracBrowser for help on using the repository browser.