source: trunk/src/kernel32/old/makefile@ 2013

Last change on this file since 2013 was 1054, checked in by sandervl, 26 years ago

Compilation fixes

File size: 9.0 KB
Line 
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
9PDWIN32_INCLUDE = ..\..\..\include\old
10PDWIN32_LIB = ..\..\..\lib
11PDWIN32_BIN = .
12PDWIN32_TOOLS = ..\..\..\tools\bin
13
14
15!include $(PDWIN32_INCLUDE)/pdwin32.mk
16
17
18CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\..\win
19CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\..\win
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 NAMEID.OBJ WINRES.OBJ WINMOD.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 \
31winimage.OBJ windll.OBJ winexe.OBJ time.obj mmap.obj \
32pefile.OBJ winimgres.OBJ wintls.obj async.OBJ fileio.obj \
33atom.obj disk.obj directory.obj cvtbitmap.obj hmmmap.obj \
34cvtmenu.obj cvtaccel.obj cvticon.obj cvticongrp.obj \
35cvtcursor.obj cvtcursorgrp.obj stubs.obj interlock.obj toolhelp.obj
36
37
38TARGET = kernel32
39
40all: $(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
61OS2386.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
75kernel32.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
82kobjects.obj: kobjects.cpp
83
84comm.OBJ: \
85 .\comm.cpp \
86 $(PDWIN32_INCLUDE)\unicode.h
87
88profile.obj: profile.cpp \
89 $(PDWIN32_INCLUDE)\unicode.h
90
91directory.obj: directory.cpp \
92 $(PDWIN32_INCLUDE)\unicode.h
93
94disk.obj: disk.cpp \
95 $(PDWIN32_INCLUDE)\unicode.h
96
97atom.obj: atom.cpp \
98 $(PDWIN32_INCLUDE)\unicode.h
99
100time.obj: time.cpp \
101 $(PDWIN32_INCLUDE)\unicode.h
102
103wintls.obj: wintls.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\windll.h
104
105fileio.obj: fileio.cpp \
106 $(PDWIN32_INCLUDE)\unicode.h
107
108thread.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
114heap.OBJ: \
115 .\heap.cpp \
116 $(PDWIN32_INCLUDE)\heap.h \
117 os2heap.h
118
119heapstring.obj: \
120 .\heapstring.cpp \
121 $(PDWIN32_INCLUDE)\heap.h \
122 $(PDWIN32_INCLUDE)\heapstring.h
123
124os2heap.OBJ: \
125 .\os2heap.cpp \
126 $(PDWIN32_INCLUDE)\vmutex.h \
127 $(PDWIN32_INCLUDE)\win32type.h \
128 os2heap.h
129
130initterm.OBJ: .\initterm.cpp initterm.h
131
132thunk.OBJ: \
133 .\thunk.cpp \
134 thunk.h
135
136vmutex.OBJ: vmutex.cpp \
137 $(PDWIN32_INCLUDE)\vmutex.h
138
139exceptions.OBJ: \
140 .\exceptions.cpp \
141 mmap.h \
142 $(PDWIN32_INCLUDE)\exceptions.h \
143 exceptutil.h
144
145message.OBJ: \
146 .\message.cpp \
147 $(PDWIN32_INCLUDE)\unicode.h
148
149devio.OBJ: \
150 .\devio.cpp \
151 exceptutil.h \
152 devio.h \
153 map.h \
154 cio.h
155
156LANG.OBJ: \
157 .\lang.cpp
158
159wprocess.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
173map.OBJ: \
174 .\map.cpp \
175 map.h \
176 mapos2.h
177
178oslibdos.OBJ: \
179 .\oslibdos.cpp oslibdos.h initterm.h
180
181network.OBJ: \
182 .\network.cpp \
183 $(PDWIN32_INCLUDE)\unicode.h
184
185misc.OBJ: \
186 .\misc.cpp \
187 initterm.h \
188 $(PDWIN32_INCLUDE)\misc.h
189
190win32util.OBJ: \
191 .\win32util.cpp \
192 $(PDWIN32_INCLUDE)\win32util.h
193
194npipe.OBJ: \
195 .\npipe.cpp \
196 $(PDWIN32_INCLUDE)\misc.h
197
198unicode.OBJ: \
199 .\unicode.cpp \
200 $(PDWIN32_INCLUDE)\unicode.h \
201 $(PDWIN32_INCLUDE)\misc.h
202
203console.OBJ: \
204 .\console.cpp \
205 .\console2.h \
206 $(PDWIN32_INCLUDE)\misc.h
207
208conin.OBJ: \
209 .\conin.h \
210 .\hmdevice.h \
211 .\conin.cpp
212
213conout.OBJ: \
214 .\conout.h \
215 .\hmdevice.h \
216 .\conout.cpp
217
218conbuffer.OBJ: \
219 .\conbuffer.h \
220 .\hmdevice.h \
221 .\conbuffer.cpp
222
223lfile.OBJ: \
224 .\lfile.cpp \
225 $(PDWIN32_INCLUDE)\wprocess.h
226
227obsolete.OBJ: \
228 .\obsolete.cpp
229
230nameid.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
239resource.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
247exceptutil.OBJ: \
248 .\exceptutil.asm
249
250iccio.OBJ: \
251 .\iccio.asm
252
253winres.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
264winmod.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
272oslibmisc.OBJ: .\oslibmisc.cpp oslibmisc.h
273
274handlemanager.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
284hmdevice.OBJ: \
285 .\hmdevice.cpp \
286 .\hmdevice.h \
287 $(PDWIN32_INCLUDE)\handlemanager.h
288
289hmopen32.OBJ: \
290 .\hmopen32.cpp \
291 .\hmdevice.h \
292 .\hmopen32.h \
293 $(PDWIN32_INCLUDE)\handlemanager.h
294
295hmobjects.obj: \
296 .\hmobjects.cpp \
297 .\hmdevice.h \
298 .\hmobjects.h \
299 $(PDWIN32_INCLUDE)\handlemanager.h
300
301hmevent.obj: \
302 .\hmevent.cpp \
303 .\hmevent.h \
304 .\hmdevice.h \
305 .\hmopen32.h
306
307hmmutex.obj: \
308 .\hmmutex.cpp \
309 .\hmmutex.h \
310 .\hmdevice.h \
311 .\hmopen32.h
312
313hmsemaphore.obj: \
314 .\hmsemaphore.cpp \
315 .\hmsemaphore.h \
316 .\hmdevice.h \
317 .\hmopen32.h
318
319hmmmap.obj: hmmmap.cpp hmdevice.h hmopen32.h mmap.h
320
321conprop.OBJ: \
322 .\conprop.h \
323 .\conprop.cpp
324
325async.OBJ: \
326 .\async.cpp \
327 $(PDWIN32_INCLUDE)\win32type.h \
328 $(PDWIN32_INCLUDE)\misc.h \
329 $(PDWIN32_INCLUDE)\unicode.h
330
331virtual.obj: virtual.cpp $(PDWIN32_INCLUDE)\handlemanager.h mmap.h
332mmap.obj: mmap.cpp mmap.h $(PDWIN32_INCLUDE)\vmutex.h oslibdos.h
333
334pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h
335winimage.OBJ: winimage.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h initterm.h oslibmisc.h
336winimgres.OBJ: winimgres.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\winres.h
337windll.OBJ: windll.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h oslibmisc.h
338winexe.OBJ: winexe.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\winexe.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.