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