source: trunk/src/kernel32/makefile@ 596

Last change on this file since 596 was 589, checked in by sandervl, 26 years ago

More PE resource changes

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