ole32: Make ole2.dll into a stand-alone 16-bit module.
[wine] / dlls / Makefile.in
1 # Automatically generated by make_makefiles; DO NOT EDIT!!
2
3 TOPSRCDIR = @top_srcdir@
4 TOPOBJDIR = ..
5 SRCDIR    = @srcdir@
6 VPATH     = @srcdir@
7
8 INSTALLDIRS = $(DESTDIR)$(dlldir)
9
10 DLLSUBDIRS     = @ALL_DLL_DIRS@
11 IMPLIBSUBDIRS  = @ALL_IMPLIB_DIRS@
12 TESTSUBDIRS    = @ALL_TEST_DIRS@
13 SUBDIRS        = $(DLLSUBDIRS) $(IMPLIBSUBDIRS) $(TESTSUBDIRS)
14 BUILDSUBDIRS   = $(DLLSUBDIRS) $(TESTSUBDIRS)
15 INSTALLSUBDIRS = $(DLLSUBDIRS) $(IMPLIBSUBDIRS)
16 DOCSUBDIRS     = $(DLLSUBDIRS)
17
18 # 16-bit dlls
19
20 WIN16_FILES = \
21         avifile.dll16 \
22         commdlg.dll16 \
23         compobj.dll16 \
24         ctl3d.dll16 \
25         ctl3dv2.dll16 \
26         ddeml.dll16 \
27         gdi.exe16 \
28         imm.dll16 \
29         krnl386.exe16 \
30         mmsystem.dll16 \
31         msvideo.dll16 \
32         ole2disp.dll16 \
33         rasapi16.dll16 \
34         setupx.dll16 \
35         shell.dll16 \
36         sound.drv16 \
37         system.drv16 \
38         toolhelp.dll16 \
39         twain.dll16 \
40         typelib.dll16 \
41         user.exe16 \
42         ver.dll16 \
43         w32sys.dll16 \
44         win32s16.dll16 \
45         winaspi.dll16 \
46         wineps16.drv16 \
47         wing.dll16 \
48         winnls.dll16 \
49         winsock.dll16 \
50         wintab.dll16 \
51         wprocs.dll16
52
53 @MAKE_RULES@
54
55 # Main target
56
57 all: $(BUILDSUBDIRS) @WIN16_FILES@
58
59 # Placeholders for 16-bit libraries
60
61 avifile.dll16:
62         echo "avifil32.dll" >$@
63
64 commdlg.dll16:
65         echo "comdlg32.dll" >$@
66
67 ctl3d.dll16 ctl3dv2.dll16:
68         echo "ctl3d32.dll" >$@
69
70 gdi.exe16 wing.dll16:
71         echo "gdi32.dll" >$@
72
73 imm.dll16:
74         echo "imm32.dll" >$@
75
76 krnl386.exe16 system.drv16 toolhelp.dll16:
77         echo "kernel32.dll" >$@
78
79 msvideo.dll16:
80         echo "msvfw32.dll" >$@
81
82 compobj.dll16:
83         echo "ole32.dll" >$@
84
85 ole2disp.dll16 typelib.dll16:
86         echo "oleaut32.dll" >$@
87
88 rasapi16.dll16:
89         echo "rasapi32.dll" >$@
90
91 setupx.dll16:
92         echo "setupapi.dll" >$@
93
94 shell.dll16:
95         echo "shell32.dll" >$@
96
97 twain.dll16:
98         echo "twain_32.dll" >$@
99
100 ddeml.dll16 user.exe16:
101         echo "user32.dll" >$@
102
103 ver.dll16:
104         echo "version.dll" >$@
105
106 w32sys.dll16 win32s16.dll16:
107         echo "w32skrnl.dll" >$@
108
109 wprocs.dll16:
110         echo "winedos.dll" >$@
111
112 wineps16.drv16:
113         echo "wineps.drv" >$@
114
115 mmsystem.dll16 sound.drv16:
116         echo "winmm.dll" >$@
117
118 winnls.dll16:
119         echo "winnls32.dll" >$@
120
121 wintab.dll16:
122         echo "wintab32.dll" >$@
123
124 winaspi.dll16:
125         echo "wnaspi32.dll" >$@
126
127 winsock.dll16:
128         echo "ws2_32.dll" >$@
129
130 # Import libraries
131
132 STATIC_IMPLIBEXT = $(IMPLIBEXT:def=def.a)
133
134 IMPORT_SYMLINKS = \
135         libd3dx9.$(IMPLIBEXT) \
136         libwinspool.$(IMPLIBEXT) \
137         libxinput.$(IMPLIBEXT)
138
139 IMPORT_LIBS = \
140         $(IMPORT_SYMLINKS) \
141         adsiid/libadsiid.a \
142         dxerr8/libdxerr8.a \
143         dxerr9/libdxerr9.a \
144         dxguid/libdxguid.a \
145         strmiids/libstrmiids.a \
146         uuid/libuuid.a \
147         winecrt0/libwinecrt0.a \
148         aclui/libaclui.$(IMPLIBEXT) \
149         activeds/libactiveds.$(IMPLIBEXT) \
150         advapi32/libadvapi32.$(IMPLIBEXT) \
151         advpack/libadvpack.$(IMPLIBEXT) \
152         atl/libatl.$(IMPLIBEXT) \
153         avicap32/libavicap32.$(IMPLIBEXT) \
154         avifil32/libavifil32.$(IMPLIBEXT) \
155         cabinet/libcabinet.$(IMPLIBEXT) \
156         capi2032/libcapi2032.$(IMPLIBEXT) \
157         cards/libcards.$(IMPLIBEXT) \
158         cfgmgr32/libcfgmgr32.$(IMPLIBEXT) \
159         clusapi/libclusapi.$(IMPLIBEXT) \
160         comctl32/libcomctl32.$(IMPLIBEXT) \
161         comdlg32/libcomdlg32.$(IMPLIBEXT) \
162         compstui/libcompstui.$(IMPLIBEXT) \
163         credui/libcredui.$(IMPLIBEXT) \
164         crtdll/libcrtdll.$(IMPLIBEXT) \
165         crypt32/libcrypt32.$(IMPLIBEXT) \
166         cryptdll/libcryptdll.$(IMPLIBEXT) \
167         cryptnet/libcryptnet.$(IMPLIBEXT) \
168         cryptui/libcryptui.$(IMPLIBEXT) \
169         ctl3d32/libctl3d32.$(IMPLIBEXT) \
170         d3d10/libd3d10.$(IMPLIBEXT) \
171         d3d10core/libd3d10core.$(IMPLIBEXT) \
172         d3d8/libd3d8.$(IMPLIBEXT) \
173         d3d9/libd3d9.$(IMPLIBEXT) \
174         d3dim/libd3dim.$(IMPLIBEXT) \
175         d3drm/libd3drm.$(IMPLIBEXT) \
176         d3dx8/libd3dx8.$(IMPLIBEXT) \
177         d3dx9_36/libd3dx9.$(IMPLIBEXT) \
178         d3dxof/libd3dxof.$(IMPLIBEXT) \
179         dbghelp/libdbghelp.$(IMPLIBEXT) \
180         dciman32/libdciman32.$(IMPLIBEXT) \
181         ddraw/libddraw.$(IMPLIBEXT) \
182         dinput/libdinput.$(IMPLIBEXT) \
183         dinput/libdinput.$(STATIC_IMPLIBEXT) \
184         dinput8/libdinput8.$(IMPLIBEXT) \
185         dmusic32/libdmusic32.$(IMPLIBEXT) \
186         dnsapi/libdnsapi.$(IMPLIBEXT) \
187         dplay/libdplay.$(IMPLIBEXT) \
188         dplayx/libdplayx.$(IMPLIBEXT) \
189         dpnet/libdpnet.$(IMPLIBEXT) \
190         dsound/libdsound.$(IMPLIBEXT) \
191         dwmapi/libdwmapi.$(IMPLIBEXT) \
192         dxgi/libdxgi.$(IMPLIBEXT) \
193         gdi32/libgdi32.$(IMPLIBEXT) \
194         gdiplus/libgdiplus.$(IMPLIBEXT) \
195         glu32/libglu32.$(IMPLIBEXT) \
196         hid/libhid.$(IMPLIBEXT) \
197         hlink/libhlink.$(IMPLIBEXT) \
198         imagehlp/libimagehlp.$(IMPLIBEXT) \
199         imm32/libimm32.$(IMPLIBEXT) \
200         inetcomm/libinetcomm.$(IMPLIBEXT) \
201         iphlpapi/libiphlpapi.$(IMPLIBEXT) \
202         kernel32/libkernel32.$(IMPLIBEXT) \
203         loadperf/libloadperf.$(IMPLIBEXT) \
204         lz32/liblz32.$(IMPLIBEXT) \
205         mapi32/libmapi32.$(IMPLIBEXT) \
206         mlang/libmlang.$(IMPLIBEXT) \
207         mpr/libmpr.$(IMPLIBEXT) \
208         mprapi/libmprapi.$(IMPLIBEXT) \
209         msacm32/libmsacm32.$(IMPLIBEXT) \
210         mscms/libmscms.$(IMPLIBEXT) \
211         msdmo/libmsdmo.$(IMPLIBEXT) \
212         mshtml/libmshtml.$(IMPLIBEXT) \
213         msi/libmsi.$(IMPLIBEXT) \
214         msimg32/libmsimg32.$(IMPLIBEXT) \
215         msvcr71/libmsvcr71.$(IMPLIBEXT) \
216         msvcrt/libmsvcrt.$(IMPLIBEXT) \
217         msvcrt20/libmsvcrt20.$(IMPLIBEXT) \
218         msvcrt40/libmsvcrt40.$(IMPLIBEXT) \
219         msvcrtd/libmsvcrtd.$(IMPLIBEXT) \
220         msvfw32/libmsvfw32.$(IMPLIBEXT) \
221         mswsock/libmswsock.$(IMPLIBEXT) \
222         nddeapi/libnddeapi.$(IMPLIBEXT) \
223         netapi32/libnetapi32.$(IMPLIBEXT) \
224         newdev/libnewdev.$(IMPLIBEXT) \
225         ntdll/libntdll.$(IMPLIBEXT) \
226         ntdsapi/libntdsapi.$(IMPLIBEXT) \
227         ntoskrnl.exe/libntoskrnl.exe.$(IMPLIBEXT) \
228         odbc32/libodbc32.$(IMPLIBEXT) \
229         odbccp32/libodbccp32.$(IMPLIBEXT) \
230         ole32/libole32.$(IMPLIBEXT) \
231         oleacc/liboleacc.$(IMPLIBEXT) \
232         oleaut32/liboleaut32.$(IMPLIBEXT) \
233         olecli32/libolecli32.$(IMPLIBEXT) \
234         oledlg/liboledlg.$(IMPLIBEXT) \
235         olepro32/libolepro32.$(IMPLIBEXT) \
236         olesvr32/libolesvr32.$(IMPLIBEXT) \
237         opengl32/libopengl32.$(IMPLIBEXT) \
238         pdh/libpdh.$(IMPLIBEXT) \
239         powrprof/libpowrprof.$(IMPLIBEXT) \
240         psapi/libpsapi.$(IMPLIBEXT) \
241         quartz/libquartz.$(IMPLIBEXT) \
242         rasapi32/librasapi32.$(IMPLIBEXT) \
243         rasdlg/librasdlg.$(IMPLIBEXT) \
244         resutils/libresutils.$(IMPLIBEXT) \
245         riched20/libriched20.$(IMPLIBEXT) \
246         rpcrt4/librpcrt4.$(IMPLIBEXT) \
247         rsaenh/librsaenh.$(IMPLIBEXT) \
248         secur32/libsecur32.$(IMPLIBEXT) \
249         sensapi/libsensapi.$(IMPLIBEXT) \
250         serialui/libserialui.$(IMPLIBEXT) \
251         setupapi/libsetupapi.$(IMPLIBEXT) \
252         sfc/libsfc.$(IMPLIBEXT) \
253         sfc_os/libsfc_os.$(IMPLIBEXT) \
254         shdocvw/libshdocvw.$(IMPLIBEXT) \
255         shell32/libshell32.$(IMPLIBEXT) \
256         shfolder/libshfolder.$(IMPLIBEXT) \
257         shlwapi/libshlwapi.$(IMPLIBEXT) \
258         slc/libslc.$(IMPLIBEXT) \
259         snmpapi/libsnmpapi.$(IMPLIBEXT) \
260         spoolss/libspoolss.$(IMPLIBEXT) \
261         sti/libsti.$(IMPLIBEXT) \
262         tapi32/libtapi32.$(IMPLIBEXT) \
263         unicows/libunicows.$(IMPLIBEXT) \
264         url/liburl.$(IMPLIBEXT) \
265         urlmon/liburlmon.$(IMPLIBEXT) \
266         user32/libuser32.$(IMPLIBEXT) \
267         userenv/libuserenv.$(IMPLIBEXT) \
268         usp10/libusp10.$(IMPLIBEXT) \
269         uxtheme/libuxtheme.$(IMPLIBEXT) \
270         vdmdbg/libvdmdbg.$(IMPLIBEXT) \
271         version/libversion.$(IMPLIBEXT) \
272         wined3d/libwined3d.$(IMPLIBEXT) \
273         winedos/libwinedos.$(IMPLIBEXT) \
274         winhttp/libwinhttp.$(IMPLIBEXT) \
275         wininet/libwininet.$(IMPLIBEXT) \
276         winmm/libwinmm.$(IMPLIBEXT) \
277         winnls32/libwinnls32.$(IMPLIBEXT) \
278         winscard/libwinscard.$(IMPLIBEXT) \
279         winspool.drv/libwinspool.$(IMPLIBEXT) \
280         wintab32/libwintab32.$(IMPLIBEXT) \
281         wintrust/libwintrust.$(IMPLIBEXT) \
282         wldap32/libwldap32.$(IMPLIBEXT) \
283         wnaspi32/libwnaspi32.$(IMPLIBEXT) \
284         wow32/libwow32.$(IMPLIBEXT) \
285         ws2_32/libws2_32.$(IMPLIBEXT) \
286         wsock32/libwsock32.$(IMPLIBEXT) \
287         wtsapi32/libwtsapi32.$(IMPLIBEXT) \
288         xinput1_3/libxinput.$(IMPLIBEXT)
289
290 CROSS_IMPLIBS = \
291         libd3dx9.a \
292         libwinspool.a \
293         libxinput.a \
294         aclui/libaclui.a \
295         activeds/libactiveds.a \
296         advapi32/libadvapi32.a \
297         advpack/libadvpack.a \
298         atl/libatl.a \
299         avicap32/libavicap32.a \
300         avifil32/libavifil32.a \
301         cabinet/libcabinet.a \
302         capi2032/libcapi2032.a \
303         cards/libcards.a \
304         cfgmgr32/libcfgmgr32.a \
305         clusapi/libclusapi.a \
306         comctl32/libcomctl32.a \
307         comdlg32/libcomdlg32.a \
308         compstui/libcompstui.a \
309         credui/libcredui.a \
310         crtdll/libcrtdll.a \
311         crypt32/libcrypt32.a \
312         cryptdll/libcryptdll.a \
313         cryptnet/libcryptnet.a \
314         cryptui/libcryptui.a \
315         ctl3d32/libctl3d32.a \
316         d3d10/libd3d10.a \
317         d3d10core/libd3d10core.a \
318         d3d8/libd3d8.a \
319         d3d9/libd3d9.a \
320         d3dim/libd3dim.a \
321         d3drm/libd3drm.a \
322         d3dx8/libd3dx8.a \
323         d3dx9_36/libd3dx9.a \
324         d3dxof/libd3dxof.a \
325         dbghelp/libdbghelp.a \
326         dciman32/libdciman32.a \
327         ddraw/libddraw.a \
328         dinput8/libdinput8.a \
329         dmusic32/libdmusic32.a \
330         dnsapi/libdnsapi.a \
331         dplay/libdplay.a \
332         dplayx/libdplayx.a \
333         dpnet/libdpnet.a \
334         dsound/libdsound.a \
335         dwmapi/libdwmapi.a \
336         dxgi/libdxgi.a \
337         gdi32/libgdi32.a \
338         gdiplus/libgdiplus.a \
339         glu32/libglu32.a \
340         hid/libhid.a \
341         hlink/libhlink.a \
342         imagehlp/libimagehlp.a \
343         imm32/libimm32.a \
344         inetcomm/libinetcomm.a \
345         iphlpapi/libiphlpapi.a \
346         kernel32/libkernel32.a \
347         loadperf/libloadperf.a \
348         lz32/liblz32.a \
349         mapi32/libmapi32.a \
350         mlang/libmlang.a \
351         mpr/libmpr.a \
352         mprapi/libmprapi.a \
353         msacm32/libmsacm32.a \
354         mscms/libmscms.a \
355         msdmo/libmsdmo.a \
356         mshtml/libmshtml.a \
357         msi/libmsi.a \
358         msimg32/libmsimg32.a \
359         msvcr71/libmsvcr71.a \
360         msvcrt/libmsvcrt.a \
361         msvcrt20/libmsvcrt20.a \
362         msvcrt40/libmsvcrt40.a \
363         msvcrtd/libmsvcrtd.a \
364         msvfw32/libmsvfw32.a \
365         mswsock/libmswsock.a \
366         nddeapi/libnddeapi.a \
367         netapi32/libnetapi32.a \
368         newdev/libnewdev.a \
369         ntdll/libntdll.a \
370         ntdsapi/libntdsapi.a \
371         ntoskrnl.exe/libntoskrnl.exe.a \
372         odbc32/libodbc32.a \
373         odbccp32/libodbccp32.a \
374         ole32/libole32.a \
375         oleacc/liboleacc.a \
376         oleaut32/liboleaut32.a \
377         olecli32/libolecli32.a \
378         oledlg/liboledlg.a \
379         olepro32/libolepro32.a \
380         olesvr32/libolesvr32.a \
381         opengl32/libopengl32.a \
382         pdh/libpdh.a \
383         powrprof/libpowrprof.a \
384         psapi/libpsapi.a \
385         quartz/libquartz.a \
386         rasapi32/librasapi32.a \
387         rasdlg/librasdlg.a \
388         resutils/libresutils.a \
389         riched20/libriched20.a \
390         rpcrt4/librpcrt4.a \
391         rsaenh/librsaenh.a \
392         secur32/libsecur32.a \
393         sensapi/libsensapi.a \
394         serialui/libserialui.a \
395         setupapi/libsetupapi.a \
396         sfc/libsfc.a \
397         sfc_os/libsfc_os.a \
398         shdocvw/libshdocvw.a \
399         shell32/libshell32.a \
400         shfolder/libshfolder.a \
401         shlwapi/libshlwapi.a \
402         slc/libslc.a \
403         snmpapi/libsnmpapi.a \
404         spoolss/libspoolss.a \
405         sti/libsti.a \
406         tapi32/libtapi32.a \
407         unicows/libunicows.a \
408         url/liburl.a \
409         urlmon/liburlmon.a \
410         user32/libuser32.a \
411         userenv/libuserenv.a \
412         usp10/libusp10.a \
413         uxtheme/libuxtheme.a \
414         vdmdbg/libvdmdbg.a \
415         version/libversion.a \
416         wined3d/libwined3d.a \
417         winedos/libwinedos.a \
418         winhttp/libwinhttp.a \
419         wininet/libwininet.a \
420         winmm/libwinmm.a \
421         winnls32/libwinnls32.a \
422         winscard/libwinscard.a \
423         winspool.drv/libwinspool.a \
424         wintab32/libwintab32.a \
425         wintrust/libwintrust.a \
426         wldap32/libwldap32.a \
427         wnaspi32/libwnaspi32.a \
428         wow32/libwow32.a \
429         ws2_32/libws2_32.a \
430         wsock32/libwsock32.a \
431         wtsapi32/libwtsapi32.a \
432         xinput1_3/libxinput.a
433
434 $(TESTSUBDIRS:%=%/__crosstest__): $(CROSS_IMPLIBS)
435
436 implib: $(IMPORT_LIBS)
437
438 testsubdirs: $(TESTSUBDIRS)
439
440 .PHONY: implib testsubdirs
441
442 aclui/libaclui.def aclui/libaclui.a: aclui/aclui.spec $(WINEBUILD)
443         @cd aclui && $(MAKE) `basename $@`
444
445 activeds/libactiveds.def activeds/libactiveds.a: activeds/activeds.spec $(WINEBUILD)
446         @cd activeds && $(MAKE) `basename $@`
447
448 advapi32/libadvapi32.def advapi32/libadvapi32.a: advapi32/advapi32.spec $(WINEBUILD)
449         @cd advapi32 && $(MAKE) `basename $@`
450
451 advpack/libadvpack.def advpack/libadvpack.a: advpack/advpack.spec $(WINEBUILD)
452         @cd advpack && $(MAKE) `basename $@`
453
454 atl/libatl.def atl/libatl.a: atl/atl.spec $(WINEBUILD)
455         @cd atl && $(MAKE) `basename $@`
456
457 avicap32/libavicap32.def avicap32/libavicap32.a: avicap32/avicap32.spec $(WINEBUILD)
458         @cd avicap32 && $(MAKE) `basename $@`
459
460 avifil32/libavifil32.def avifil32/libavifil32.a: avifil32/avifil32.spec $(WINEBUILD)
461         @cd avifil32 && $(MAKE) `basename $@`
462
463 cabinet/libcabinet.def cabinet/libcabinet.a: cabinet/cabinet.spec $(WINEBUILD)
464         @cd cabinet && $(MAKE) `basename $@`
465
466 capi2032/libcapi2032.def capi2032/libcapi2032.a: capi2032/capi2032.spec $(WINEBUILD)
467         @cd capi2032 && $(MAKE) `basename $@`
468
469 cards/libcards.def cards/libcards.a: cards/cards.spec $(WINEBUILD)
470         @cd cards && $(MAKE) `basename $@`
471
472 cfgmgr32/libcfgmgr32.def cfgmgr32/libcfgmgr32.a: cfgmgr32/cfgmgr32.spec $(WINEBUILD)
473         @cd cfgmgr32 && $(MAKE) `basename $@`
474
475 clusapi/libclusapi.def clusapi/libclusapi.a: clusapi/clusapi.spec $(WINEBUILD)
476         @cd clusapi && $(MAKE) `basename $@`
477
478 comctl32/libcomctl32.def comctl32/libcomctl32.a: comctl32/comctl32.spec $(WINEBUILD)
479         @cd comctl32 && $(MAKE) `basename $@`
480
481 comdlg32/libcomdlg32.def comdlg32/libcomdlg32.a: comdlg32/comdlg32.spec $(WINEBUILD)
482         @cd comdlg32 && $(MAKE) `basename $@`
483
484 compstui/libcompstui.def compstui/libcompstui.a: compstui/compstui.spec $(WINEBUILD)
485         @cd compstui && $(MAKE) `basename $@`
486
487 credui/libcredui.def credui/libcredui.a: credui/credui.spec $(WINEBUILD)
488         @cd credui && $(MAKE) `basename $@`
489
490 crtdll/libcrtdll.def crtdll/libcrtdll.a: crtdll/crtdll.spec $(WINEBUILD)
491         @cd crtdll && $(MAKE) `basename $@`
492
493 crypt32/libcrypt32.def crypt32/libcrypt32.a: crypt32/crypt32.spec $(WINEBUILD)
494         @cd crypt32 && $(MAKE) `basename $@`
495
496 cryptdll/libcryptdll.def cryptdll/libcryptdll.a: cryptdll/cryptdll.spec $(WINEBUILD)
497         @cd cryptdll && $(MAKE) `basename $@`
498
499 cryptnet/libcryptnet.def cryptnet/libcryptnet.a: cryptnet/cryptnet.spec $(WINEBUILD)
500         @cd cryptnet && $(MAKE) `basename $@`
501
502 cryptui/libcryptui.def cryptui/libcryptui.a: cryptui/cryptui.spec $(WINEBUILD)
503         @cd cryptui && $(MAKE) `basename $@`
504
505 ctl3d32/libctl3d32.def ctl3d32/libctl3d32.a: ctl3d32/ctl3d32.spec $(WINEBUILD)
506         @cd ctl3d32 && $(MAKE) `basename $@`
507
508 d3d10/libd3d10.def d3d10/libd3d10.a: d3d10/d3d10.spec $(WINEBUILD)
509         @cd d3d10 && $(MAKE) `basename $@`
510
511 d3d10core/libd3d10core.def d3d10core/libd3d10core.a: d3d10core/d3d10core.spec $(WINEBUILD)
512         @cd d3d10core && $(MAKE) `basename $@`
513
514 d3d8/libd3d8.def d3d8/libd3d8.a: d3d8/d3d8.spec $(WINEBUILD)
515         @cd d3d8 && $(MAKE) `basename $@`
516
517 d3d9/libd3d9.def d3d9/libd3d9.a: d3d9/d3d9.spec $(WINEBUILD)
518         @cd d3d9 && $(MAKE) `basename $@`
519
520 d3dim/libd3dim.def d3dim/libd3dim.a: d3dim/d3dim.spec $(WINEBUILD)
521         @cd d3dim && $(MAKE) `basename $@`
522
523 d3drm/libd3drm.def d3drm/libd3drm.a: d3drm/d3drm.spec $(WINEBUILD)
524         @cd d3drm && $(MAKE) `basename $@`
525
526 d3dx8/libd3dx8.def d3dx8/libd3dx8.a: d3dx8/d3dx8.spec $(WINEBUILD)
527         @cd d3dx8 && $(MAKE) `basename $@`
528
529 d3dx9_36/libd3dx9.def d3dx9_36/libd3dx9.a: d3dx9_36/d3dx9_36.spec $(WINEBUILD)
530         @cd d3dx9_36 && $(MAKE) `basename $@`
531
532 d3dxof/libd3dxof.def d3dxof/libd3dxof.a: d3dxof/d3dxof.spec $(WINEBUILD)
533         @cd d3dxof && $(MAKE) `basename $@`
534
535 dbghelp/libdbghelp.def dbghelp/libdbghelp.a: dbghelp/dbghelp.spec $(WINEBUILD)
536         @cd dbghelp && $(MAKE) `basename $@`
537
538 dciman32/libdciman32.def dciman32/libdciman32.a: dciman32/dciman32.spec $(WINEBUILD)
539         @cd dciman32 && $(MAKE) `basename $@`
540
541 ddraw/libddraw.def ddraw/libddraw.a: ddraw/ddraw.spec $(WINEBUILD)
542         @cd ddraw && $(MAKE) `basename $@`
543
544 dinput/libdinput.def: dinput/dinput.spec $(WINEBUILD)
545         @cd dinput && $(MAKE) libdinput.def
546
547 dinput/libdinput.$(STATIC_IMPLIBEXT): dummy
548         @cd dinput && $(MAKE) libdinput.$(STATIC_IMPLIBEXT)
549
550 dinput8/libdinput8.def dinput8/libdinput8.a: dinput8/dinput8.spec $(WINEBUILD)
551         @cd dinput8 && $(MAKE) `basename $@`
552
553 dmusic32/libdmusic32.def dmusic32/libdmusic32.a: dmusic32/dmusic32.spec $(WINEBUILD)
554         @cd dmusic32 && $(MAKE) `basename $@`
555
556 dnsapi/libdnsapi.def dnsapi/libdnsapi.a: dnsapi/dnsapi.spec $(WINEBUILD)
557         @cd dnsapi && $(MAKE) `basename $@`
558
559 dplay/libdplay.def dplay/libdplay.a: dplay/dplay.spec $(WINEBUILD)
560         @cd dplay && $(MAKE) `basename $@`
561
562 dplayx/libdplayx.def dplayx/libdplayx.a: dplayx/dplayx.spec $(WINEBUILD)
563         @cd dplayx && $(MAKE) `basename $@`
564
565 dpnet/libdpnet.def dpnet/libdpnet.a: dpnet/dpnet.spec $(WINEBUILD)
566         @cd dpnet && $(MAKE) `basename $@`
567
568 dsound/libdsound.def dsound/libdsound.a: dsound/dsound.spec $(WINEBUILD)
569         @cd dsound && $(MAKE) `basename $@`
570
571 dwmapi/libdwmapi.def dwmapi/libdwmapi.a: dwmapi/dwmapi.spec $(WINEBUILD)
572         @cd dwmapi && $(MAKE) `basename $@`
573
574 dxgi/libdxgi.def dxgi/libdxgi.a: dxgi/dxgi.spec $(WINEBUILD)
575         @cd dxgi && $(MAKE) `basename $@`
576
577 gdi32/libgdi32.def gdi32/libgdi32.a: gdi32/gdi32.spec $(WINEBUILD)
578         @cd gdi32 && $(MAKE) `basename $@`
579
580 gdiplus/libgdiplus.def gdiplus/libgdiplus.a: gdiplus/gdiplus.spec $(WINEBUILD)
581         @cd gdiplus && $(MAKE) `basename $@`
582
583 glu32/libglu32.def glu32/libglu32.a: glu32/glu32.spec $(WINEBUILD)
584         @cd glu32 && $(MAKE) `basename $@`
585
586 hid/libhid.def hid/libhid.a: hid/hid.spec $(WINEBUILD)
587         @cd hid && $(MAKE) `basename $@`
588
589 hlink/libhlink.def hlink/libhlink.a: hlink/hlink.spec $(WINEBUILD)
590         @cd hlink && $(MAKE) `basename $@`
591
592 imagehlp/libimagehlp.def imagehlp/libimagehlp.a: imagehlp/imagehlp.spec $(WINEBUILD)
593         @cd imagehlp && $(MAKE) `basename $@`
594
595 imm32/libimm32.def imm32/libimm32.a: imm32/imm32.spec $(WINEBUILD)
596         @cd imm32 && $(MAKE) `basename $@`
597
598 inetcomm/libinetcomm.def inetcomm/libinetcomm.a: inetcomm/inetcomm.spec $(WINEBUILD)
599         @cd inetcomm && $(MAKE) `basename $@`
600
601 iphlpapi/libiphlpapi.def iphlpapi/libiphlpapi.a: iphlpapi/iphlpapi.spec $(WINEBUILD)
602         @cd iphlpapi && $(MAKE) `basename $@`
603
604 kernel32/libkernel32.def kernel32/libkernel32.a: kernel32/kernel32.spec $(WINEBUILD)
605         @cd kernel32 && $(MAKE) `basename $@`
606
607 loadperf/libloadperf.def loadperf/libloadperf.a: loadperf/loadperf.spec $(WINEBUILD)
608         @cd loadperf && $(MAKE) `basename $@`
609
610 lz32/liblz32.def lz32/liblz32.a: lz32/lz32.spec $(WINEBUILD)
611         @cd lz32 && $(MAKE) `basename $@`
612
613 mapi32/libmapi32.def mapi32/libmapi32.a: mapi32/mapi32.spec $(WINEBUILD)
614         @cd mapi32 && $(MAKE) `basename $@`
615
616 mlang/libmlang.def mlang/libmlang.a: mlang/mlang.spec $(WINEBUILD)
617         @cd mlang && $(MAKE) `basename $@`
618
619 mpr/libmpr.def mpr/libmpr.a: mpr/mpr.spec $(WINEBUILD)
620         @cd mpr && $(MAKE) `basename $@`
621
622 mprapi/libmprapi.def mprapi/libmprapi.a: mprapi/mprapi.spec $(WINEBUILD)
623         @cd mprapi && $(MAKE) `basename $@`
624
625 msacm32/libmsacm32.def msacm32/libmsacm32.a: msacm32/msacm32.spec $(WINEBUILD)
626         @cd msacm32 && $(MAKE) `basename $@`
627
628 mscms/libmscms.def mscms/libmscms.a: mscms/mscms.spec $(WINEBUILD)
629         @cd mscms && $(MAKE) `basename $@`
630
631 msdmo/libmsdmo.def msdmo/libmsdmo.a: msdmo/msdmo.spec $(WINEBUILD)
632         @cd msdmo && $(MAKE) `basename $@`
633
634 mshtml/libmshtml.def mshtml/libmshtml.a: mshtml/mshtml.spec $(WINEBUILD)
635         @cd mshtml && $(MAKE) `basename $@`
636
637 msi/libmsi.def msi/libmsi.a: msi/msi.spec $(WINEBUILD)
638         @cd msi && $(MAKE) `basename $@`
639
640 msimg32/libmsimg32.def msimg32/libmsimg32.a: msimg32/msimg32.spec $(WINEBUILD)
641         @cd msimg32 && $(MAKE) `basename $@`
642
643 msvcr71/libmsvcr71.def msvcr71/libmsvcr71.a: msvcr71/msvcr71.spec $(WINEBUILD)
644         @cd msvcr71 && $(MAKE) `basename $@`
645
646 msvcrt/libmsvcrt.def msvcrt/libmsvcrt.a: msvcrt/msvcrt.spec $(WINEBUILD)
647         @cd msvcrt && $(MAKE) `basename $@`
648
649 msvcrt20/libmsvcrt20.def msvcrt20/libmsvcrt20.a: msvcrt20/msvcrt20.spec $(WINEBUILD)
650         @cd msvcrt20 && $(MAKE) `basename $@`
651
652 msvcrt40/libmsvcrt40.def msvcrt40/libmsvcrt40.a: msvcrt40/msvcrt40.spec $(WINEBUILD)
653         @cd msvcrt40 && $(MAKE) `basename $@`
654
655 msvcrtd/libmsvcrtd.def msvcrtd/libmsvcrtd.a: msvcrtd/msvcrtd.spec $(WINEBUILD)
656         @cd msvcrtd && $(MAKE) `basename $@`
657
658 msvfw32/libmsvfw32.def msvfw32/libmsvfw32.a: msvfw32/msvfw32.spec $(WINEBUILD)
659         @cd msvfw32 && $(MAKE) `basename $@`
660
661 mswsock/libmswsock.def mswsock/libmswsock.a: mswsock/mswsock.spec $(WINEBUILD)
662         @cd mswsock && $(MAKE) `basename $@`
663
664 nddeapi/libnddeapi.def nddeapi/libnddeapi.a: nddeapi/nddeapi.spec $(WINEBUILD)
665         @cd nddeapi && $(MAKE) `basename $@`
666
667 netapi32/libnetapi32.def netapi32/libnetapi32.a: netapi32/netapi32.spec $(WINEBUILD)
668         @cd netapi32 && $(MAKE) `basename $@`
669
670 newdev/libnewdev.def newdev/libnewdev.a: newdev/newdev.spec $(WINEBUILD)
671         @cd newdev && $(MAKE) `basename $@`
672
673 ntdll/libntdll.def ntdll/libntdll.a: ntdll/ntdll.spec $(WINEBUILD)
674         @cd ntdll && $(MAKE) `basename $@`
675
676 ntdsapi/libntdsapi.def ntdsapi/libntdsapi.a: ntdsapi/ntdsapi.spec $(WINEBUILD)
677         @cd ntdsapi && $(MAKE) `basename $@`
678
679 ntoskrnl.exe/libntoskrnl.exe.def ntoskrnl.exe/libntoskrnl.exe.a: ntoskrnl.exe/ntoskrnl.exe.spec $(WINEBUILD)
680         @cd ntoskrnl.exe && $(MAKE) `basename $@`
681
682 odbc32/libodbc32.def odbc32/libodbc32.a: odbc32/odbc32.spec $(WINEBUILD)
683         @cd odbc32 && $(MAKE) `basename $@`
684
685 odbccp32/libodbccp32.def odbccp32/libodbccp32.a: odbccp32/odbccp32.spec $(WINEBUILD)
686         @cd odbccp32 && $(MAKE) `basename $@`
687
688 ole32/libole32.def ole32/libole32.a: ole32/ole32.spec $(WINEBUILD)
689         @cd ole32 && $(MAKE) `basename $@`
690
691 oleacc/liboleacc.def oleacc/liboleacc.a: oleacc/oleacc.spec $(WINEBUILD)
692         @cd oleacc && $(MAKE) `basename $@`
693
694 oleaut32/liboleaut32.def oleaut32/liboleaut32.a: oleaut32/oleaut32.spec $(WINEBUILD)
695         @cd oleaut32 && $(MAKE) `basename $@`
696
697 olecli32/libolecli32.def olecli32/libolecli32.a: olecli32/olecli32.spec $(WINEBUILD)
698         @cd olecli32 && $(MAKE) `basename $@`
699
700 oledlg/liboledlg.def oledlg/liboledlg.a: oledlg/oledlg.spec $(WINEBUILD)
701         @cd oledlg && $(MAKE) `basename $@`
702
703 olepro32/libolepro32.def olepro32/libolepro32.a: olepro32/olepro32.spec $(WINEBUILD)
704         @cd olepro32 && $(MAKE) `basename $@`
705
706 olesvr32/libolesvr32.def olesvr32/libolesvr32.a: olesvr32/olesvr32.spec $(WINEBUILD)
707         @cd olesvr32 && $(MAKE) `basename $@`
708
709 opengl32/libopengl32.def opengl32/libopengl32.a: opengl32/opengl32.spec $(WINEBUILD)
710         @cd opengl32 && $(MAKE) `basename $@`
711
712 pdh/libpdh.def pdh/libpdh.a: pdh/pdh.spec $(WINEBUILD)
713         @cd pdh && $(MAKE) `basename $@`
714
715 powrprof/libpowrprof.def powrprof/libpowrprof.a: powrprof/powrprof.spec $(WINEBUILD)
716         @cd powrprof && $(MAKE) `basename $@`
717
718 psapi/libpsapi.def psapi/libpsapi.a: psapi/psapi.spec $(WINEBUILD)
719         @cd psapi && $(MAKE) `basename $@`
720
721 quartz/libquartz.def quartz/libquartz.a: quartz/quartz.spec $(WINEBUILD)
722         @cd quartz && $(MAKE) `basename $@`
723
724 rasapi32/librasapi32.def rasapi32/librasapi32.a: rasapi32/rasapi32.spec $(WINEBUILD)
725         @cd rasapi32 && $(MAKE) `basename $@`
726
727 rasdlg/librasdlg.def rasdlg/librasdlg.a: rasdlg/rasdlg.spec $(WINEBUILD)
728         @cd rasdlg && $(MAKE) `basename $@`
729
730 resutils/libresutils.def resutils/libresutils.a: resutils/resutils.spec $(WINEBUILD)
731         @cd resutils && $(MAKE) `basename $@`
732
733 riched20/libriched20.def riched20/libriched20.a: riched20/riched20.spec $(WINEBUILD)
734         @cd riched20 && $(MAKE) `basename $@`
735
736 rpcrt4/librpcrt4.def rpcrt4/librpcrt4.a: rpcrt4/rpcrt4.spec $(WINEBUILD)
737         @cd rpcrt4 && $(MAKE) `basename $@`
738
739 rsaenh/librsaenh.def rsaenh/librsaenh.a: rsaenh/rsaenh.spec $(WINEBUILD)
740         @cd rsaenh && $(MAKE) `basename $@`
741
742 secur32/libsecur32.def secur32/libsecur32.a: secur32/secur32.spec $(WINEBUILD)
743         @cd secur32 && $(MAKE) `basename $@`
744
745 sensapi/libsensapi.def sensapi/libsensapi.a: sensapi/sensapi.spec $(WINEBUILD)
746         @cd sensapi && $(MAKE) `basename $@`
747
748 serialui/libserialui.def serialui/libserialui.a: serialui/serialui.spec $(WINEBUILD)
749         @cd serialui && $(MAKE) `basename $@`
750
751 setupapi/libsetupapi.def setupapi/libsetupapi.a: setupapi/setupapi.spec $(WINEBUILD)
752         @cd setupapi && $(MAKE) `basename $@`
753
754 sfc/libsfc.def sfc/libsfc.a: sfc/sfc.spec $(WINEBUILD)
755         @cd sfc && $(MAKE) `basename $@`
756
757 sfc_os/libsfc_os.def sfc_os/libsfc_os.a: sfc_os/sfc_os.spec $(WINEBUILD)
758         @cd sfc_os && $(MAKE) `basename $@`
759
760 shdocvw/libshdocvw.def shdocvw/libshdocvw.a: shdocvw/shdocvw.spec $(WINEBUILD)
761         @cd shdocvw && $(MAKE) `basename $@`
762
763 shell32/libshell32.def shell32/libshell32.a: shell32/shell32.spec $(WINEBUILD)
764         @cd shell32 && $(MAKE) `basename $@`
765
766 shfolder/libshfolder.def shfolder/libshfolder.a: shfolder/shfolder.spec $(WINEBUILD)
767         @cd shfolder && $(MAKE) `basename $@`
768
769 shlwapi/libshlwapi.def shlwapi/libshlwapi.a: shlwapi/shlwapi.spec $(WINEBUILD)
770         @cd shlwapi && $(MAKE) `basename $@`
771
772 slc/libslc.def slc/libslc.a: slc/slc.spec $(WINEBUILD)
773         @cd slc && $(MAKE) `basename $@`
774
775 snmpapi/libsnmpapi.def snmpapi/libsnmpapi.a: snmpapi/snmpapi.spec $(WINEBUILD)
776         @cd snmpapi && $(MAKE) `basename $@`
777
778 spoolss/libspoolss.def spoolss/libspoolss.a: spoolss/spoolss.spec $(WINEBUILD)
779         @cd spoolss && $(MAKE) `basename $@`
780
781 sti/libsti.def sti/libsti.a: sti/sti.spec $(WINEBUILD)
782         @cd sti && $(MAKE) `basename $@`
783
784 tapi32/libtapi32.def tapi32/libtapi32.a: tapi32/tapi32.spec $(WINEBUILD)
785         @cd tapi32 && $(MAKE) `basename $@`
786
787 unicows/libunicows.def unicows/libunicows.a: unicows/unicows.spec $(WINEBUILD)
788         @cd unicows && $(MAKE) `basename $@`
789
790 url/liburl.def url/liburl.a: url/url.spec $(WINEBUILD)
791         @cd url && $(MAKE) `basename $@`
792
793 urlmon/liburlmon.def urlmon/liburlmon.a: urlmon/urlmon.spec $(WINEBUILD)
794         @cd urlmon && $(MAKE) `basename $@`
795
796 user32/libuser32.def user32/libuser32.a: user32/user32.spec $(WINEBUILD)
797         @cd user32 && $(MAKE) `basename $@`
798
799 userenv/libuserenv.def userenv/libuserenv.a: userenv/userenv.spec $(WINEBUILD)
800         @cd userenv && $(MAKE) `basename $@`
801
802 usp10/libusp10.def usp10/libusp10.a: usp10/usp10.spec $(WINEBUILD)
803         @cd usp10 && $(MAKE) `basename $@`
804
805 uxtheme/libuxtheme.def uxtheme/libuxtheme.a: uxtheme/uxtheme.spec $(WINEBUILD)
806         @cd uxtheme && $(MAKE) `basename $@`
807
808 vdmdbg/libvdmdbg.def vdmdbg/libvdmdbg.a: vdmdbg/vdmdbg.spec $(WINEBUILD)
809         @cd vdmdbg && $(MAKE) `basename $@`
810
811 version/libversion.def version/libversion.a: version/version.spec $(WINEBUILD)
812         @cd version && $(MAKE) `basename $@`
813
814 wined3d/libwined3d.def wined3d/libwined3d.a: wined3d/wined3d.spec $(WINEBUILD)
815         @cd wined3d && $(MAKE) `basename $@`
816
817 winedos/libwinedos.def winedos/libwinedos.a: winedos/winedos.spec $(WINEBUILD)
818         @cd winedos && $(MAKE) `basename $@`
819
820 winhttp/libwinhttp.def winhttp/libwinhttp.a: winhttp/winhttp.spec $(WINEBUILD)
821         @cd winhttp && $(MAKE) `basename $@`
822
823 wininet/libwininet.def wininet/libwininet.a: wininet/wininet.spec $(WINEBUILD)
824         @cd wininet && $(MAKE) `basename $@`
825
826 winmm/libwinmm.def winmm/libwinmm.a: winmm/winmm.spec $(WINEBUILD)
827         @cd winmm && $(MAKE) `basename $@`
828
829 winnls32/libwinnls32.def winnls32/libwinnls32.a: winnls32/winnls32.spec $(WINEBUILD)
830         @cd winnls32 && $(MAKE) `basename $@`
831
832 winscard/libwinscard.def winscard/libwinscard.a: winscard/winscard.spec $(WINEBUILD)
833         @cd winscard && $(MAKE) `basename $@`
834
835 winspool.drv/libwinspool.def winspool.drv/libwinspool.a: winspool.drv/winspool.drv.spec $(WINEBUILD)
836         @cd winspool.drv && $(MAKE) `basename $@`
837
838 wintab32/libwintab32.def wintab32/libwintab32.a: wintab32/wintab32.spec $(WINEBUILD)
839         @cd wintab32 && $(MAKE) `basename $@`
840
841 wintrust/libwintrust.def wintrust/libwintrust.a: wintrust/wintrust.spec $(WINEBUILD)
842         @cd wintrust && $(MAKE) `basename $@`
843
844 wldap32/libwldap32.def wldap32/libwldap32.a: wldap32/wldap32.spec $(WINEBUILD)
845         @cd wldap32 && $(MAKE) `basename $@`
846
847 wnaspi32/libwnaspi32.def wnaspi32/libwnaspi32.a: wnaspi32/wnaspi32.spec $(WINEBUILD)
848         @cd wnaspi32 && $(MAKE) `basename $@`
849
850 wow32/libwow32.def wow32/libwow32.a: wow32/wow32.spec $(WINEBUILD)
851         @cd wow32 && $(MAKE) `basename $@`
852
853 ws2_32/libws2_32.def ws2_32/libws2_32.a: ws2_32/ws2_32.spec $(WINEBUILD)
854         @cd ws2_32 && $(MAKE) `basename $@`
855
856 wsock32/libwsock32.def wsock32/libwsock32.a: wsock32/wsock32.spec $(WINEBUILD)
857         @cd wsock32 && $(MAKE) `basename $@`
858
859 wtsapi32/libwtsapi32.def wtsapi32/libwtsapi32.a: wtsapi32/wtsapi32.spec $(WINEBUILD)
860         @cd wtsapi32 && $(MAKE) `basename $@`
861
862 xinput1_3/libxinput.def xinput1_3/libxinput.a: xinput1_3/xinput1_3.spec $(WINEBUILD)
863         @cd xinput1_3 && $(MAKE) `basename $@`
864
865 libd3dx9.a: d3dx9_36/libd3dx9.a
866         $(RM) $@ && $(LN_S) d3dx9_36/libd3dx9.a $@
867
868 libd3dx9.def: d3dx9_36/libd3dx9.def
869         $(RM) $@ && $(LN_S) d3dx9_36/libd3dx9.def $@
870
871 libwinspool.a: winspool.drv/libwinspool.a
872         $(RM) $@ && $(LN_S) winspool.drv/libwinspool.a $@
873
874 libwinspool.def: winspool.drv/libwinspool.def
875         $(RM) $@ && $(LN_S) winspool.drv/libwinspool.def $@
876
877 libxinput.a: xinput1_3/libxinput.a
878         $(RM) $@ && $(LN_S) xinput1_3/libxinput.a $@
879
880 libxinput.def: xinput1_3/libxinput.def
881         $(RM) $@ && $(LN_S) xinput1_3/libxinput.def $@
882
883 $(BUILDSUBDIRS): $(IMPORT_LIBS)
884 $(INSTALLSUBDIRS:%=%/__install__) $(INSTALLSUBDIRS:%=%/__install-lib__): $(IMPORT_LIBS)
885
886 # Map library name to the corresponding directory
887
888 adsiid/libadsiid.a: adsiid
889 dxerr8/libdxerr8.a: dxerr8
890 dxerr9/libdxerr9.a: dxerr9
891 dxguid/libdxguid.a: dxguid
892 strmiids/libstrmiids.a: strmiids
893 uuid/libuuid.a: uuid
894 winecrt0/libwinecrt0.a: winecrt0
895
896 # Misc rules
897
898 .PHONY: $(WIN16_FILES:%=__install__/%)
899
900 WIN16_INSTALL = $(WIN16_FILES:%=__install__/%)
901
902 $(WIN16_FILES:%=__install__/%): $(WIN16_FILES) $(DESTDIR)$(dlldir) dummy
903         $(INSTALL_DATA) `basename $@` $(DESTDIR)$(dlldir)/`basename $@`
904
905 install install-lib:: @WIN16_INSTALL@
906
907 uninstall::
908         -cd $(DESTDIR)$(dlldir) && $(RM) $(WIN16_FILES)
909         -rmdir $(DESTDIR)$(dlldir)
910
911 clean::
912         $(RM) $(IMPORT_SYMLINKS) $(WIN16_FILES)