source: trunk/src/kernel32/makefile@ 304

Last change on this file since 304 was 281, checked in by sandervl, 26 years ago

Major changes in PE2LX/KERNEL32 for TLS support. DLL VERSION INCREASED TO 3 AS THIS CHANGE MAKES IT INCOMPATIBLE WITH APPS CONVERTED WITH PREVIOUS VERSION OF PE2LX (OR WIN32K)

File size: 7.2 KB
Line 
1# $Id: makefile,v 1.12 1999-07-07 08:11:10 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 \
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 os2heap.OBJ \
53 vmutex.OBJ \
54 initterm.OBJ \
55 os2util.OBJ \
56 handlemanager.OBJ \
57 hmdevice.obj \
58 hmopen32.obj \
59 hmobjects.obj \
60 hmevent.obj \
61 hmmutex.obj \
62 hmsemaphore.obj \
63 wprocess.OBJ \
64 conprop.OBJ \
65 winimage.OBJ \
66 windll.OBJ \
67 winexe.OBJ \
68 time.obj \
69 pefile.OBJ \
70 winimgres.OBJ \
71 wintls.obj \
72 async.OBJ \
73 fileio.obj \
74 atom.obj \
75 disk.obj \
76 directory.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
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 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 os2heap.h
141
142os2heap.OBJ: \
143 .\os2heap.cpp \
144 $(PDWIN32_INCLUDE)\vmutex.h \
145 $(PDWIN32_INCLUDE)\win32type.h \
146 os2heap.h
147
148initterm.OBJ: .\initterm.cpp
149
150thunk.OBJ: \
151 .\thunk.cpp \
152 thunk.h
153
154vmutex.OBJ: vmutex.cpp \
155 $(PDWIN32_INCLUDE)\vmutex.h
156
157exceptions.OBJ: \
158 .\exceptions.cpp \
159 $(PDWIN32_INCLUDE)\exceptions.h \
160 except.h
161
162message.OBJ: \
163 .\message.cpp \
164 $(PDWIN32_INCLUDE)\unicode.h
165
166devio.OBJ: \
167 .\devio.cpp \
168 devio.h \
169 map.h \
170 cio.h
171
172LANG.OBJ: \
173 .\lang.cpp
174
175wprocess.OBJ: \
176 .\wprocess.cpp \
177 $(PDWIN32_INCLUDE)\nameid.h \
178 $(PDWIN32_INCLUDE)\unicode.h \
179 $(PDWIN32_INCLUDE)\winexe.h \
180 $(PDWIN32_INCLUDE)\windll.h \
181 $(PDWIN32_INCLUDE)\winimage.h \
182 $(PDWIN32_INCLUDE)\versionos2.h \
183 $(PDWIN32_INCLUDE)\wprocess.h \
184 console2.h \
185 cio.h \
186 os2util.h
187
188map.OBJ: \
189 .\map.cpp \
190 map.h \
191 mapos2.h
192
193os2native.OBJ: \
194 .\os2native.cpp \
195 $(PDWIN32_INCLUDE)\unicode.h
196
197network.OBJ: \
198 .\network.cpp \
199 $(PDWIN32_INCLUDE)\unicode.h
200
201misc.OBJ: \
202 .\misc.cpp \
203 $(PDWIN32_INCLUDE)\misc.h
204
205win32util.OBJ: \
206 .\win32util.cpp \
207 $(PDWIN32_INCLUDE)\win32util.h
208
209npipe.OBJ: \
210 .\npipe.cpp \
211 $(PDWIN32_INCLUDE)\misc.h
212
213unicode.OBJ: \
214 .\unicode.cpp \
215 $(PDWIN32_INCLUDE)\unicode.h \
216 $(PDWIN32_INCLUDE)\misc.h
217
218console.OBJ: \
219 .\console.cpp \
220 .\console2.h \
221 $(PDWIN32_INCLUDE)\misc.h
222
223conin.OBJ: \
224 .\conin.h \
225 .\conin.cpp
226
227conout.OBJ: \
228 .\conout.h \
229 .\conout.cpp
230
231conbuffer.OBJ: \
232 .\conbuffer.h \
233 .\conbuffer.cpp
234
235mmap.OBJ: \
236 .\mmap.cpp \
237 mmap.h \
238 $(PDWIN32_INCLUDE)\unicode.h
239
240lfile.OBJ: \
241 .\lfile.cpp \
242 $(PDWIN32_INCLUDE)\wprocess.h \
243 os2util.h
244
245obsolete.OBJ: \
246 .\obsolete.cpp
247
248nameid.OBJ: \
249 .\nameid.cpp \
250 $(PDWIN32_INCLUDE)\nameid.h \
251 $(PDWIN32_INCLUDE)\win32util.h \
252 $(PDWIN32_INCLUDE)\winimage.h \
253 $(PDWIN32_INCLUDE)\winexe.h \
254 $(PDWIN32_INCLUDE)\windll.h \
255 $(PDWIN32_INCLUDE)\misc.h
256
257resource.OBJ: \
258 .\resource.cpp \
259 $(PDWIN32_INCLUDE)\nameid.h \
260 $(PDWIN32_INCLUDE)\unicode.h \
261 $(PDWIN32_INCLUDE)\winimage.h \
262 winres.h \
263 $(PDWIN32_INCLUDE)\misc.h
264
265except.OBJ: \
266 .\except.asm
267
268iccio.OBJ: \
269 .\iccio.asm
270
271winres.OBJ: \
272 .\winres.cpp \
273 winres.h \
274 $(PDWIN32_INCLUDE)\nameid.h \
275 $(PDWIN32_INCLUDE)\winimage.h \
276 $(PDWIN32_INCLUDE)\winexe.h \
277 $(PDWIN32_INCLUDE)\windll.h \
278 $(PDWIN32_INCLUDE)\misc.h
279
280winmod.OBJ: \
281 .\winres.cpp \
282 $(PDWIN32_INCLUDE)\winimage.h \
283 $(PDWIN32_INCLUDE)\winexe.h \
284 $(PDWIN32_INCLUDE)\windll.h \
285 $(PDWIN32_INCLUDE)\winimage.h \
286 $(PDWIN32_INCLUDE)\misc.h
287
288os2util.OBJ: .\os2util.cpp
289
290handlemanager.OBJ: \
291 .\handlemanager.cpp \
292 $(PDWIN32_INCLUDE)\handlemanager.h
293
294hmdevice.OBJ: \
295 .\hmdevice.cpp \
296 .\hmdevice.h \
297 $(PDWIN32_INCLUDE)\handlemanager.h
298
299hmopen32.OBJ: \
300 .\hmopen32.cpp \
301 .\hmopen32.h \
302 $(PDWIN32_INCLUDE)\handlemanager.h
303
304hmobjects.obj: \
305 .\hmobjects.cpp \
306 .\hmobjects.h \
307 $(PDWIN32_INCLUDE)\handlemanager.h
308
309hmevent.obj: \
310 .\hmevent.cpp \
311 .\hmevent.h \
312 .\hmdevice.h \
313 .\hmopen32.h
314
315hmmutex.obj: \
316 .\hmmutex.cpp \
317 .\hmmutex.h \
318 .\hmdevice.h \
319 .\hmopen32.h
320
321hmsemaphore.obj: \
322 .\hmsemaphore.cpp \
323 .\hmsemaphore.h \
324 .\hmdevice.h \
325 .\hmopen32.h
326
327conprop.OBJ: \
328 .\conprop.h \
329 .\conprop.cpp
330
331async.OBJ: \
332 .\async.cpp \
333 $(PDWIN32_INCLUDE)\win32type.h \
334 $(PDWIN32_INCLUDE)\misc.h \
335 $(PDWIN32_INCLUDE)\unicode.h
336
337pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h
338winimage.OBJ: winimage.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h
339winimgres.OBJ: winimgres.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winexe.h winres.h
340windll.OBJ: windll.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h
341winexe.OBJ: winexe.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\winexe.h
342stubs.obj: stubs.cpp stubs.h
343
344
345clean:
346 $(RM) *.OBJ *.LIB *.dll *~ *.map *.pch
347 $(RM) $(PDWIN32_LIB)\$(TARGET).LIB
348 $(RM) $(PDWIN32_BIN)\$(TARGET).dll
349
350
Note: See TracBrowser for help on using the repository browser.