source: trunk/src/kernel32/makefile@ 1036

Last change on this file since 1036 was 978, checked in by sandervl, 26 years ago

Changes for LX image resource support

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