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