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 |
|
---|
9 | PDWIN32_INCLUDE = ..\..\include
|
---|
10 | PDWIN32_LIB = ..\..\lib
|
---|
11 | PDWIN32_BIN = ..\..\bin
|
---|
12 | PDWIN32_TOOLS = ..\..\tools\bin
|
---|
13 |
|
---|
14 |
|
---|
15 | !include $(PDWIN32_INCLUDE)/pdwin32.mk
|
---|
16 |
|
---|
17 |
|
---|
18 | CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) /Tm+
|
---|
19 | CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) /Tm+
|
---|
20 |
|
---|
21 |
|
---|
22 | OBJS = KERNEL32.OBJ KOBJECTS.OBJ CONSOLE.OBJ CONIN.OBJ \
|
---|
23 | CONBUFFER.OBJ CONOUT.OBJ UNICODE.OBJ network.OBJ DEVIO.OBJ \
|
---|
24 | profile.obj THREAD.OBJ virtual.obj THUNK.OBJ OBSOLETE.OBJ COMM.OBJ\
|
---|
25 | MESSAGE.OBJ RESOURCE.OBJ EXCEPTIONS.OBJ \
|
---|
26 | LFILE.OBJ NPIPE.OBJ oslibdos.obj oslibmisc.obj MISC.OBJ EXCEPTUTIL.OBJ \
|
---|
27 | LANG.OBJ ICCIO.OBJ MAP.OBJ WIN32UTIL.OBJ heap.OBJ heapstring.obj \
|
---|
28 | os2heap.OBJ vmutex.OBJ initterm.OBJ handlemanager.OBJ winresmenu.obj \
|
---|
29 | hmdevice.obj hmopen32.obj hmobjects.obj hmevent.obj hmmutex.obj \
|
---|
30 | hmsemaphore.obj wprocess.OBJ conprop.OBJ winimagelx.obj \
|
---|
31 | winimagebase.OBJ windllbase.OBJ winexebase.OBJ time.obj mmap.obj \
|
---|
32 | winimagepe2lx.obj winimagepeldr.obj windllpe2lx.obj windlllx.obj windllpeldr.obj \
|
---|
33 | winexepe2lx.obj winexelx.obj winexepeldr.obj WINRES.OBJ \
|
---|
34 | pefile.OBJ winimgres.OBJ wintls.obj async.OBJ fileio.obj \
|
---|
35 | atom.obj disk.obj directory.obj cvtbitmap.obj hmmmap.obj \
|
---|
36 | cvtmenu.obj cvtaccel.obj cvticon.obj cvticongrp.obj \
|
---|
37 | cvtcursor.obj cvtcursorgrp.obj stubs.obj interlock.obj toolhelp.obj
|
---|
38 |
|
---|
39 |
|
---|
40 | TARGET = kernel32
|
---|
41 |
|
---|
42 | all: $(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
|
---|
64 | OS2386.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 |
|
---|
79 | kernel32.OBJ: kernel32.cpp \
|
---|
80 | exceptutil.h \
|
---|
81 | $(PDWIN32_INCLUDE)\unicode.h \
|
---|
82 | $(PDWIN32_INCLUDE)\heap.h \
|
---|
83 | $(PDWIN32_INCLUDE)\wprocess.h
|
---|
84 |
|
---|
85 | kobjects.obj: kobjects.cpp
|
---|
86 |
|
---|
87 | comm.OBJ: \
|
---|
88 | .\comm.cpp \
|
---|
89 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
90 |
|
---|
91 | profile.obj: profile.cpp \
|
---|
92 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
93 |
|
---|
94 | directory.obj: directory.cpp \
|
---|
95 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
96 |
|
---|
97 | disk.obj: disk.cpp \
|
---|
98 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
99 |
|
---|
100 | atom.obj: atom.cpp \
|
---|
101 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
102 |
|
---|
103 | time.obj: time.cpp \
|
---|
104 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
105 |
|
---|
106 | wintls.obj: wintls.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winexebase.h $(PDWIN32_INCLUDE)\windllbase.h
|
---|
107 |
|
---|
108 | fileio.obj: fileio.cpp \
|
---|
109 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
110 |
|
---|
111 | thread.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 |
|
---|
117 | heap.OBJ: \
|
---|
118 | .\heap.cpp \
|
---|
119 | $(PDWIN32_INCLUDE)\heap.h \
|
---|
120 | os2heap.h
|
---|
121 |
|
---|
122 | heapstring.obj: \
|
---|
123 | .\heapstring.cpp \
|
---|
124 | $(PDWIN32_INCLUDE)\heap.h \
|
---|
125 | $(PDWIN32_INCLUDE)\heapstring.h
|
---|
126 |
|
---|
127 | os2heap.OBJ: \
|
---|
128 | .\os2heap.cpp \
|
---|
129 | $(PDWIN32_INCLUDE)\vmutex.h \
|
---|
130 | $(PDWIN32_INCLUDE)\win32type.h \
|
---|
131 | os2heap.h
|
---|
132 |
|
---|
133 | initterm.OBJ: .\initterm.cpp initterm.h
|
---|
134 |
|
---|
135 | thunk.OBJ: \
|
---|
136 | .\thunk.cpp \
|
---|
137 | thunk.h
|
---|
138 |
|
---|
139 | vmutex.OBJ: vmutex.cpp \
|
---|
140 | $(PDWIN32_INCLUDE)\vmutex.h
|
---|
141 |
|
---|
142 | exceptions.OBJ: \
|
---|
143 | .\exceptions.cpp \
|
---|
144 | mmap.h \
|
---|
145 | $(PDWIN32_INCLUDE)\exceptions.h \
|
---|
146 | exceptutil.h
|
---|
147 |
|
---|
148 | message.OBJ: \
|
---|
149 | .\message.cpp \
|
---|
150 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
151 |
|
---|
152 | devio.OBJ: \
|
---|
153 | .\devio.cpp \
|
---|
154 | exceptutil.h \
|
---|
155 | devio.h \
|
---|
156 | map.h \
|
---|
157 | cio.h
|
---|
158 |
|
---|
159 | LANG.OBJ: \
|
---|
160 | .\lang.cpp
|
---|
161 |
|
---|
162 | wprocess.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 |
|
---|
177 | map.OBJ: \
|
---|
178 | .\map.cpp \
|
---|
179 | map.h \
|
---|
180 | mapos2.h
|
---|
181 |
|
---|
182 | oslibdos.OBJ: \
|
---|
183 | .\oslibdos.cpp oslibdos.h initterm.h
|
---|
184 |
|
---|
185 | network.OBJ: \
|
---|
186 | .\network.cpp \
|
---|
187 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
188 |
|
---|
189 | misc.OBJ: \
|
---|
190 | .\misc.cpp \
|
---|
191 | initterm.h \
|
---|
192 | $(PDWIN32_INCLUDE)\misc.h
|
---|
193 |
|
---|
194 | win32util.OBJ: \
|
---|
195 | .\win32util.cpp \
|
---|
196 | $(PDWIN32_INCLUDE)\win32util.h
|
---|
197 |
|
---|
198 | npipe.OBJ: \
|
---|
199 | .\npipe.cpp \
|
---|
200 | $(PDWIN32_INCLUDE)\misc.h
|
---|
201 |
|
---|
202 | unicode.OBJ: \
|
---|
203 | .\unicode.cpp \
|
---|
204 | $(PDWIN32_INCLUDE)\unicode.h \
|
---|
205 | $(PDWIN32_INCLUDE)\misc.h
|
---|
206 |
|
---|
207 | console.OBJ: \
|
---|
208 | .\console.cpp \
|
---|
209 | .\console2.h \
|
---|
210 | $(PDWIN32_INCLUDE)\misc.h
|
---|
211 |
|
---|
212 | conin.OBJ: \
|
---|
213 | .\conin.h \
|
---|
214 | .\hmdevice.h \
|
---|
215 | .\conin.cpp
|
---|
216 |
|
---|
217 | conout.OBJ: \
|
---|
218 | .\conout.h \
|
---|
219 | .\hmdevice.h \
|
---|
220 | .\conout.cpp
|
---|
221 |
|
---|
222 | conbuffer.OBJ: \
|
---|
223 | .\conbuffer.h \
|
---|
224 | .\hmdevice.h \
|
---|
225 | .\conbuffer.cpp
|
---|
226 |
|
---|
227 | lfile.OBJ: \
|
---|
228 | .\lfile.cpp \
|
---|
229 | $(PDWIN32_INCLUDE)\wprocess.h
|
---|
230 |
|
---|
231 | obsolete.OBJ: \
|
---|
232 | .\obsolete.cpp
|
---|
233 |
|
---|
234 | resource.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 |
|
---|
241 | exceptutil.OBJ: \
|
---|
242 | .\exceptutil.asm
|
---|
243 |
|
---|
244 | iccio.OBJ: \
|
---|
245 | .\iccio.asm
|
---|
246 |
|
---|
247 | winres.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 |
|
---|
257 | oslibmisc.OBJ: .\oslibmisc.cpp oslibmisc.h
|
---|
258 |
|
---|
259 | handlemanager.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 |
|
---|
269 | hmdevice.OBJ: \
|
---|
270 | .\hmdevice.cpp \
|
---|
271 | .\hmdevice.h \
|
---|
272 | $(PDWIN32_INCLUDE)\handlemanager.h
|
---|
273 |
|
---|
274 | hmopen32.OBJ: \
|
---|
275 | .\hmopen32.cpp \
|
---|
276 | .\hmdevice.h \
|
---|
277 | .\hmopen32.h \
|
---|
278 | $(PDWIN32_INCLUDE)\handlemanager.h
|
---|
279 |
|
---|
280 | hmobjects.obj: \
|
---|
281 | .\hmobjects.cpp \
|
---|
282 | .\hmdevice.h \
|
---|
283 | .\hmobjects.h \
|
---|
284 | $(PDWIN32_INCLUDE)\handlemanager.h
|
---|
285 |
|
---|
286 | hmevent.obj: \
|
---|
287 | .\hmevent.cpp \
|
---|
288 | .\hmevent.h \
|
---|
289 | .\hmdevice.h \
|
---|
290 | .\hmopen32.h
|
---|
291 |
|
---|
292 | hmmutex.obj: \
|
---|
293 | .\hmmutex.cpp \
|
---|
294 | .\hmmutex.h \
|
---|
295 | .\hmdevice.h \
|
---|
296 | .\hmopen32.h
|
---|
297 |
|
---|
298 | hmsemaphore.obj: \
|
---|
299 | .\hmsemaphore.cpp \
|
---|
300 | .\hmsemaphore.h \
|
---|
301 | .\hmdevice.h \
|
---|
302 | .\hmopen32.h
|
---|
303 |
|
---|
304 | hmmmap.obj: hmmmap.cpp hmdevice.h hmopen32.h mmap.h
|
---|
305 |
|
---|
306 | conprop.OBJ: \
|
---|
307 | .\conprop.h \
|
---|
308 | .\conprop.cpp
|
---|
309 |
|
---|
310 | async.OBJ: \
|
---|
311 | .\async.cpp \
|
---|
312 | $(PDWIN32_INCLUDE)\win32type.h \
|
---|
313 | $(PDWIN32_INCLUDE)\misc.h \
|
---|
314 | $(PDWIN32_INCLUDE)\unicode.h
|
---|
315 |
|
---|
316 | virtual.obj: virtual.cpp $(PDWIN32_INCLUDE)\win\virtual.h $(PDWIN32_INCLUDE)\handlemanager.h mmap.h
|
---|
317 | mmap.obj: mmap.cpp mmap.h $(PDWIN32_INCLUDE)\vmutex.h oslibdos.h
|
---|
318 |
|
---|
319 | pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h
|
---|
320 |
|
---|
321 | winimagebase.obj: winimagebase.cpp $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
322 | winimagepe2lx.obj: winimagepe2lx.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winimagepe2lx.h
|
---|
323 | winimagepeldr.obj: winimagepeldr.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winimagepeldr.h
|
---|
324 | winimagelx.obj: winimagelx.cpp $(PDWIN32_INCLUDE)\winimagebase.h $(PDWIN32_INCLUDE)\winimagelx.h
|
---|
325 | windllbase.obj: windllbase.cpp $(PDWIN32_INCLUDE)\windllbase.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
326 | windllpe2lx.obj: windllpe2lx.cpp $(PDWIN32_INCLUDE)\windllbase.h $(PDWIN32_INCLUDE)\windllpe2lx.h \
|
---|
327 | $(PDWIN32_INCLUDE)\winimagepe2lx.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
328 | windlllx.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
|
---|
331 | windllpeldr.obj: windllpeldr.cpp $(PDWIN32_INCLUDE)\windllbase.h $(PDWIN32_INCLUDE)\windllpeldr.h $(PDWIN32_INCLUDE)\winimagepeldr.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
332 | winexebase.obj: winexebase.cpp $(PDWIN32_INCLUDE)\winexebase.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
333 | winexepe2lx.obj: winexepe2lx.cpp $(PDWIN32_INCLUDE)\winexebase.h $(PDWIN32_INCLUDE)\winexepe2lx.h $(PDWIN32_INCLUDE)\winimagepe2lx.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
334 | winexelx.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
|
---|
336 | winexepeldr.obj: winexepeldr.cpp $(PDWIN32_INCLUDE)\winexebase.h $(PDWIN32_INCLUDE)\winexepeldr.h $(PDWIN32_INCLUDE)\winimagepeldr.h $(PDWIN32_INCLUDE)\winimagebase.h
|
---|
337 |
|
---|
338 | winimgres.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
|
---|
339 | stubs.obj: stubs.cpp stubs.h
|
---|
340 |
|
---|
341 | winresmenu.obj: winresmenu.cpp $(PDWIN32_INCLUDE)\winresmenu.h $(PDWIN32_INCLUDE)\winres.h
|
---|
342 |
|
---|
343 | cvtbitmap.obj: cvtbitmap.cpp $(PDWIN32_INCLUDE)\winicon.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
344 | cvtmenu.obj: cvtmenu.cpp $(PDWIN32_INCLUDE)\winmenu.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
345 | cvtaccel.obj: cvtaccel.cpp $(PDWIN32_INCLUDE)\winaccel.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
346 | cvticon.obj: cvticon.cpp $(PDWIN32_INCLUDE)\winicon.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
347 | cvticongrp.obj: cvticongrp.cpp $(PDWIN32_INCLUDE)\winicon.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
348 | cvtcursor.obj: cvtcursor.cpp $(PDWIN32_INCLUDE)\wincursor.h $(PDWIN32_INCLUDE)\winicon.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
349 | cvtcursorgrp.obj: cvtcursorgrp.cpp $(PDWIN32_INCLUDE)\wincursor.h $(PDWIN32_INCLUDE)\winicon.h $(PDWIN32_INCLUDE)\misc.h cvtresource.h
|
---|
350 |
|
---|
351 | interlock.obj: interlock.asm
|
---|
352 | toolhelp.obj: toolhelp.cpp
|
---|
353 |
|
---|
354 | clean:
|
---|
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
|
---|