# Automatically generated by make_dlls; DO NOT EDIT!!

TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR    = @srcdir@
VPATH     = @srcdir@

# special configure-dependent targets

GLU32FILES = glu32
GLUT32FILES = glut32
OPENGLFILES = d3d8 d3d9 d3dx8 opengl32 wined3d
XFILES = ddraw x11drv
EXTRADIRS = @GLU32FILES@ @GLUT32FILES@ @OPENGLFILES@ @XFILES@

# Subdir list

BASEDIRS = \
	activeds \
	advapi32 \
	advpack \
	amstream \
	atl \
	avicap32 \
	avifil32 \
	cabinet \
	capi2032 \
	cards \
	cfgmgr32 \
	comcat \
	comctl32 \
	commdlg \
	crtdll \
	crypt32 \
	cryptdll \
	ctl3d \
	d3dim \
	d3drm \
	d3dxof \
	dbghelp \
	dciman32 \
	devenum \
	dinput \
	dinput8 \
	dmband \
	dmcompos \
	dmime \
	dmloader \
	dmscript \
	dmstyle \
	dmsynth \
	dmusic \
	dmusic32 \
	dplay \
	dplayx \
	dpnet \
	dpnhpast \
	dsound \
	dswave \
	dxdiagn \
	gdi \
	hhctrl.ocx \
	iccvid \
	icmp \
	ifsmgr.vxd \
	imagehlp \
	imm32 \
	iphlpapi \
	itss \
	kernel \
	lzexpand \
	mapi32 \
	mciavi32 \
	mcicda \
	mciseq \
	midimap \
	mlang \
	mmdevldr.vxd \
	monodebg.vxd \
	mpr \
	msacm \
	msacm/imaadp32 \
	msacm/msadp32 \
	msacm/msg711 \
	msacm/winemp3 \
	mscms \
	msdmo \
	mshtml \
	msi \
	msimg32 \
	msisys \
	msnet32 \
	msrle32 \
	msvcrt \
	msvcrt20 \
	msvcrt40 \
	msvcrtd \
	msvidc32 \
	msvideo \
	mswsock \
	msxml3 \
	netapi32 \
	newdev \
	ntdll \
	objsel \
	odbc32 \
	odbccp32 \
	ole32 \
	oleacc \
	oleaut32 \
	olecli \
	oledlg \
	olepro32 \
	olesvr \
	powrprof \
	psapi \
	qcap \
	quartz \
	rasapi32 \
	riched20 \
	richedit \
	rpcrt4 \
	rsabase \
	rsaenh \
	secur32 \
	security \
	sensapi \
	serialui \
	setupapi \
	shdocvw \
	shell32 \
	shfolder \
	shlwapi \
	snmpapi \
	stdole2.tlb \
	stdole32.tlb \
	sti \
	tapi32 \
	twain \
	unicows \
	url \
	urlmon \
	user \
	usp10 \
	uxtheme \
	vdhcp.vxd \
	vdmdbg \
	version \
	vmm.vxd \
	vnbt.vxd \
	vnetbios.vxd \
	vtdapi.vxd \
	vwin32.vxd \
	win32s \
	winaspi \
	winedos \
	wineps \
	wininet \
	winmm \
	winmm/joystick \
	winmm/mciwave \
	winmm/wavemap \
	winmm/winealsa \
	winmm/winearts \
	winmm/wineaudioio \
	winmm/wineesd \
	winmm/winejack \
	winmm/winenas \
	winmm/wineoss \
	winnls \
	winsock \
	winspool \
	wintab32 \
	wintrust \
	wldap32 \
	wow32 \
	wsock32 \
	wtsapi32

IMPLIBSUBDIRS = \
	dxerr8 \
	dxerr9 \
	dxguid \
	strmiids \
	uuid \
	winecrt0

SUBDIRS = \
	$(BASEDIRS) \
	$(IMPLIBSUBDIRS) \
	d3d8 \
	d3d9 \
	d3dx8 \
	ddraw \
	glu32 \
	glut32 \
	opengl32 \
	wined3d \
	x11drv

BUILDSUBDIRS = $(BASEDIRS) $(EXTRADIRS)

INSTALLSUBDIRS = $(BUILDSUBDIRS) $(IMPLIBSUBDIRS)

@MAKE_RULES@

# Symbolic links

WIN16_FILES = \
	avifile.dll.so \
	comm.drv.so \
	commdlg.dll.so \
	compobj.dll.so \
	ctl3d.dll.so \
	ctl3dv2.dll.so \
	ddeml.dll.so \
	dispdib.dll.so \
	display.drv.so \
	gdi.exe.so \
	imm.dll.so \
	keyboard.drv.so \
	krnl386.exe.so \
	lzexpand.dll.so \
	mmsystem.dll.so \
	mouse.drv.so \
	msacm.dll.so \
	msvideo.dll.so \
	ole2.dll.so \
	ole2conv.dll.so \
	ole2disp.dll.so \
	ole2nls.dll.so \
	ole2prox.dll.so \
	ole2thk.dll.so \
	olecli.dll.so \
	olesvr.dll.so \
	rasapi16.dll.so \
	setupx.dll.so \
	shell.dll.so \
	sound.drv.so \
	storage.dll.so \
	stress.dll.so \
	system.drv.so \
	toolhelp.dll.so \
	twain.dll.so \
	typelib.dll.so \
	user.exe.so \
	ver.dll.so \
	w32sys.dll.so \
	win32s16.dll.so \
	win87em.dll.so \
	winaspi.dll.so \
	windebug.dll.so \
	wineps16.drv.so \
	wing.dll.so \
	winnls.dll.so \
	winsock.dll.so \
	wintab.dll.so \
	wprocs.dll.so

SYMLINKS_SO = \
	$(EXTRADIRS:%=%.dll.so) \
	@WIN16_FILES@ \
	activeds.dll.so \
	advapi32.dll.so \
	advpack.dll.so \
	amstream.dll.so \
	atl.dll.so \
	avicap32.dll.so \
	avifil32.dll.so \
	cabinet.dll.so \
	capi2032.dll.so \
	cards.dll.so \
	cfgmgr32.dll.so \
	comcat.dll.so \
	comctl32.dll.so \
	comdlg32.dll.so \
	crtdll.dll.so \
	crypt32.dll.so \
	cryptdll.dll.so \
	ctl3d32.dll.so \
	d3dim.dll.so \
	d3drm.dll.so \
	d3dxof.dll.so \
	dbghelp.dll.so \
	dciman32.dll.so \
	devenum.dll.so \
	dinput.dll.so \
	dinput8.dll.so \
	dmband.dll.so \
	dmcompos.dll.so \
	dmime.dll.so \
	dmloader.dll.so \
	dmscript.dll.so \
	dmstyle.dll.so \
	dmsynth.dll.so \
	dmusic.dll.so \
	dmusic32.dll.so \
	dplay.dll.so \
	dplayx.dll.so \
	dpnet.dll.so \
	dpnhpast.dll.so \
	dsound.dll.so \
	dswave.dll.so \
	dxdiagn.dll.so \
	gdi32.dll.so \
	hhctrl.ocx.so \
	iccvid.dll.so \
	icmp.dll.so \
	ifsmgr.vxd.so \
	imaadp32.acm.so \
	imagehlp.dll.so \
	imm32.dll.so \
	iphlpapi.dll.so \
	itss.dll.so \
	joystick.drv.so \
	kernel32.dll.so \
	libdxerr8.a \
	libdxerr9.a \
	libdxguid.a \
	libstrmiids.a \
	libuuid.a \
	libwinecrt0.a \
	lz32.dll.so \
	mapi32.dll.so \
	mciavi32.dll.so \
	mcicda.dll.so \
	mciseq.dll.so \
	mciwave.drv.so \
	midimap.dll.so \
	mlang.dll.so \
	mmdevldr.vxd.so \
	monodebg.vxd.so \
	mpr.dll.so \
	msacm.drv.so \
	msacm32.dll.so \
	msadp32.acm.so \
	mscms.dll.so \
	msdmo.dll.so \
	msg711.acm.so \
	mshtml.dll.so \
	msi.dll.so \
	msimg32.dll.so \
	msisys.ocx.so \
	msnet32.dll.so \
	msrle32.dll.so \
	msvcrt.dll.so \
	msvcrt20.dll.so \
	msvcrt40.dll.so \
	msvcrtd.dll.so \
	msvfw32.dll.so \
	msvidc32.dll.so \
	mswsock.dll.so \
	msxml3.dll.so \
	netapi32.dll.so \
	newdev.dll.so \
	ntdll.dll.so \
	objsel.dll.so \
	odbc32.dll.so \
	odbccp32.dll.so \
	ole32.dll.so \
	oleacc.dll.so \
	oleaut32.dll.so \
	olecli32.dll.so \
	oledlg.dll.so \
	olepro32.dll.so \
	olesvr32.dll.so \
	powrprof.dll.so \
	psapi.dll.so \
	qcap.dll.so \
	quartz.dll.so \
	rasapi32.dll.so \
	riched20.dll.so \
	riched32.dll.so \
	rpcrt4.dll.so \
	rsabase.dll.so \
	rsaenh.dll.so \
	secur32.dll.so \
	security.dll.so \
	sensapi.dll.so \
	serialui.dll.so \
	setupapi.dll.so \
	shdocvw.dll.so \
	shell32.dll.so \
	shfolder.dll.so \
	shlwapi.dll.so \
	snmpapi.dll.so \
	stdole2.tlb.so \
	stdole32.tlb.so \
	sti.dll.so \
	tapi32.dll.so \
	twain_32.dll.so \
	unicows.dll.so \
	url.dll.so \
	urlmon.dll.so \
	user32.dll.so \
	usp10.dll.so \
	uxtheme.dll.so \
	vdhcp.vxd.so \
	vdmdbg.dll.so \
	version.dll.so \
	vmm.vxd.so \
	vnbt.vxd.so \
	vnetbios.vxd.so \
	vtdapi.vxd.so \
	vwin32.vxd.so \
	w32skrnl.dll.so \
	winealsa.drv.so \
	winearts.drv.so \
	wineaudioio.drv.so \
	winedos.dll.so \
	wineesd.drv.so \
	winejack.drv.so \
	winemp3.acm.so \
	winenas.drv.so \
	wineoss.drv.so \
	wineps.drv.so \
	wininet.dll.so \
	winmm.dll.so \
	winnls32.dll.so \
	winspool.drv.so \
	wintab32.dll.so \
	wintrust.dll.so \
	wldap32.dll.so \
	wnaspi32.dll.so \
	wow32.dll.so \
	ws2_32.dll.so \
	wsock32.dll.so \
	wtsapi32.dll.so

# Main target

all: symlinks$(DLLEXT)

.PHONY: symlinks symlinks.so implib

symlinks.so: $(SYMLINKS_SO)

symlinks: $(BUILDSUBDIRS)

x11drv.dll.so: winex11.drv.so
	$(RM) $@ && $(LN_S) winex11.drv.so $@


# Map symlink name to the corresponding library

activeds.dll.so: activeds/activeds.dll.so
	$(RM) $@ && $(LN_S) activeds/activeds.dll.so $@

advapi32.dll.so: advapi32/advapi32.dll.so
	$(RM) $@ && $(LN_S) advapi32/advapi32.dll.so $@

advpack.dll.so: advpack/advpack.dll.so
	$(RM) $@ && $(LN_S) advpack/advpack.dll.so $@

amstream.dll.so: amstream/amstream.dll.so
	$(RM) $@ && $(LN_S) amstream/amstream.dll.so $@

atl.dll.so: atl/atl.dll.so
	$(RM) $@ && $(LN_S) atl/atl.dll.so $@

avicap32.dll.so: avicap32/avicap32.dll.so
	$(RM) $@ && $(LN_S) avicap32/avicap32.dll.so $@

avifil32.dll.so: avifil32/avifil32.dll.so
	$(RM) $@ && $(LN_S) avifil32/avifil32.dll.so $@

avifile.dll.so : avifil32.dll.so
	$(RM) $@ && $(LN_S) avifil32.dll.so $@

cabinet.dll.so: cabinet/cabinet.dll.so
	$(RM) $@ && $(LN_S) cabinet/cabinet.dll.so $@

capi2032.dll.so: capi2032/capi2032.dll.so
	$(RM) $@ && $(LN_S) capi2032/capi2032.dll.so $@

cards.dll.so: cards/cards.dll.so
	$(RM) $@ && $(LN_S) cards/cards.dll.so $@

cfgmgr32.dll.so: cfgmgr32/cfgmgr32.dll.so
	$(RM) $@ && $(LN_S) cfgmgr32/cfgmgr32.dll.so $@

comcat.dll.so: comcat/comcat.dll.so
	$(RM) $@ && $(LN_S) comcat/comcat.dll.so $@

comctl32.dll.so: comctl32/comctl32.dll.so
	$(RM) $@ && $(LN_S) comctl32/comctl32.dll.so $@

comdlg32.dll.so: commdlg/comdlg32.dll.so
	$(RM) $@ && $(LN_S) commdlg/comdlg32.dll.so $@

commdlg.dll.so : comdlg32.dll.so
	$(RM) $@ && $(LN_S) comdlg32.dll.so $@

crtdll.dll.so: crtdll/crtdll.dll.so
	$(RM) $@ && $(LN_S) crtdll/crtdll.dll.so $@

crypt32.dll.so: crypt32/crypt32.dll.so
	$(RM) $@ && $(LN_S) crypt32/crypt32.dll.so $@

cryptdll.dll.so: cryptdll/cryptdll.dll.so
	$(RM) $@ && $(LN_S) cryptdll/cryptdll.dll.so $@

ctl3d32.dll.so: ctl3d/ctl3d32.dll.so
	$(RM) $@ && $(LN_S) ctl3d/ctl3d32.dll.so $@

ctl3d.dll.so ctl3dv2.dll.so : ctl3d32.dll.so
	$(RM) $@ && $(LN_S) ctl3d32.dll.so $@

d3d8.dll.so: d3d8/d3d8.dll.so
	$(RM) $@ && $(LN_S) d3d8/d3d8.dll.so $@

d3d9.dll.so: d3d9/d3d9.dll.so
	$(RM) $@ && $(LN_S) d3d9/d3d9.dll.so $@

d3dim.dll.so: d3dim/d3dim.dll.so
	$(RM) $@ && $(LN_S) d3dim/d3dim.dll.so $@

d3drm.dll.so: d3drm/d3drm.dll.so
	$(RM) $@ && $(LN_S) d3drm/d3drm.dll.so $@

d3dx8.dll.so: d3dx8/d3dx8.dll.so
	$(RM) $@ && $(LN_S) d3dx8/d3dx8.dll.so $@

d3dxof.dll.so: d3dxof/d3dxof.dll.so
	$(RM) $@ && $(LN_S) d3dxof/d3dxof.dll.so $@

dbghelp.dll.so: dbghelp/dbghelp.dll.so
	$(RM) $@ && $(LN_S) dbghelp/dbghelp.dll.so $@

dciman32.dll.so: dciman32/dciman32.dll.so
	$(RM) $@ && $(LN_S) dciman32/dciman32.dll.so $@

ddraw.dll.so: ddraw/ddraw.dll.so
	$(RM) $@ && $(LN_S) ddraw/ddraw.dll.so $@

devenum.dll.so: devenum/devenum.dll.so
	$(RM) $@ && $(LN_S) devenum/devenum.dll.so $@

dinput.dll.so: dinput/dinput.dll.so
	$(RM) $@ && $(LN_S) dinput/dinput.dll.so $@

dinput8.dll.so: dinput8/dinput8.dll.so
	$(RM) $@ && $(LN_S) dinput8/dinput8.dll.so $@

dmband.dll.so: dmband/dmband.dll.so
	$(RM) $@ && $(LN_S) dmband/dmband.dll.so $@

dmcompos.dll.so: dmcompos/dmcompos.dll.so
	$(RM) $@ && $(LN_S) dmcompos/dmcompos.dll.so $@

dmime.dll.so: dmime/dmime.dll.so
	$(RM) $@ && $(LN_S) dmime/dmime.dll.so $@

dmloader.dll.so: dmloader/dmloader.dll.so
	$(RM) $@ && $(LN_S) dmloader/dmloader.dll.so $@

dmscript.dll.so: dmscript/dmscript.dll.so
	$(RM) $@ && $(LN_S) dmscript/dmscript.dll.so $@

dmstyle.dll.so: dmstyle/dmstyle.dll.so
	$(RM) $@ && $(LN_S) dmstyle/dmstyle.dll.so $@

dmsynth.dll.so: dmsynth/dmsynth.dll.so
	$(RM) $@ && $(LN_S) dmsynth/dmsynth.dll.so $@

dmusic.dll.so: dmusic/dmusic.dll.so
	$(RM) $@ && $(LN_S) dmusic/dmusic.dll.so $@

dmusic32.dll.so: dmusic32/dmusic32.dll.so
	$(RM) $@ && $(LN_S) dmusic32/dmusic32.dll.so $@

dplay.dll.so: dplay/dplay.dll.so
	$(RM) $@ && $(LN_S) dplay/dplay.dll.so $@

dplayx.dll.so: dplayx/dplayx.dll.so
	$(RM) $@ && $(LN_S) dplayx/dplayx.dll.so $@

dpnet.dll.so: dpnet/dpnet.dll.so
	$(RM) $@ && $(LN_S) dpnet/dpnet.dll.so $@

dpnhpast.dll.so: dpnhpast/dpnhpast.dll.so
	$(RM) $@ && $(LN_S) dpnhpast/dpnhpast.dll.so $@

dsound.dll.so: dsound/dsound.dll.so
	$(RM) $@ && $(LN_S) dsound/dsound.dll.so $@

dswave.dll.so: dswave/dswave.dll.so
	$(RM) $@ && $(LN_S) dswave/dswave.dll.so $@

dxdiagn.dll.so: dxdiagn/dxdiagn.dll.so
	$(RM) $@ && $(LN_S) dxdiagn/dxdiagn.dll.so $@

gdi32.dll.so: gdi/gdi32.dll.so
	$(RM) $@ && $(LN_S) gdi/gdi32.dll.so $@

dispdib.dll.so gdi.exe.so wing.dll.so : gdi32.dll.so
	$(RM) $@ && $(LN_S) gdi32.dll.so $@

glu32.dll.so: glu32/glu32.dll.so
	$(RM) $@ && $(LN_S) glu32/glu32.dll.so $@

glut32.dll.so: glut32/glut32.dll.so
	$(RM) $@ && $(LN_S) glut32/glut32.dll.so $@

hhctrl.ocx.so: hhctrl.ocx/hhctrl.ocx.so
	$(RM) $@ && $(LN_S) hhctrl.ocx/hhctrl.ocx.so $@

iccvid.dll.so: iccvid/iccvid.dll.so
	$(RM) $@ && $(LN_S) iccvid/iccvid.dll.so $@

icmp.dll.so: icmp/icmp.dll.so
	$(RM) $@ && $(LN_S) icmp/icmp.dll.so $@

ifsmgr.vxd.so: ifsmgr.vxd/ifsmgr.vxd.so
	$(RM) $@ && $(LN_S) ifsmgr.vxd/ifsmgr.vxd.so $@

imaadp32.acm.so: msacm/imaadp32/imaadp32.acm.so
	$(RM) $@ && $(LN_S) msacm/imaadp32/imaadp32.acm.so $@

imagehlp.dll.so: imagehlp/imagehlp.dll.so
	$(RM) $@ && $(LN_S) imagehlp/imagehlp.dll.so $@

imm32.dll.so: imm32/imm32.dll.so
	$(RM) $@ && $(LN_S) imm32/imm32.dll.so $@

imm.dll.so : imm32.dll.so
	$(RM) $@ && $(LN_S) imm32.dll.so $@

iphlpapi.dll.so: iphlpapi/iphlpapi.dll.so
	$(RM) $@ && $(LN_S) iphlpapi/iphlpapi.dll.so $@

itss.dll.so: itss/itss.dll.so
	$(RM) $@ && $(LN_S) itss/itss.dll.so $@

joystick.drv.so: winmm/joystick/joystick.drv.so
	$(RM) $@ && $(LN_S) winmm/joystick/joystick.drv.so $@

kernel32.dll.so: kernel/kernel32.dll.so
	$(RM) $@ && $(LN_S) kernel/kernel32.dll.so $@

comm.drv.so krnl386.exe.so stress.dll.so \
  system.drv.so toolhelp.dll.so win87em.dll.so \
  windebug.dll.so : kernel32.dll.so
	$(RM) $@ && $(LN_S) kernel32.dll.so $@

lz32.dll.so: lzexpand/lz32.dll.so
	$(RM) $@ && $(LN_S) lzexpand/lz32.dll.so $@

lzexpand.dll.so : lz32.dll.so
	$(RM) $@ && $(LN_S) lz32.dll.so $@

mapi32.dll.so: mapi32/mapi32.dll.so
	$(RM) $@ && $(LN_S) mapi32/mapi32.dll.so $@

mciavi32.dll.so: mciavi32/mciavi32.dll.so
	$(RM) $@ && $(LN_S) mciavi32/mciavi32.dll.so $@

mcicda.dll.so: mcicda/mcicda.dll.so
	$(RM) $@ && $(LN_S) mcicda/mcicda.dll.so $@

mciseq.dll.so: mciseq/mciseq.dll.so
	$(RM) $@ && $(LN_S) mciseq/mciseq.dll.so $@

mciwave.drv.so: winmm/mciwave/mciwave.drv.so
	$(RM) $@ && $(LN_S) winmm/mciwave/mciwave.drv.so $@

midimap.dll.so: midimap/midimap.dll.so
	$(RM) $@ && $(LN_S) midimap/midimap.dll.so $@

mlang.dll.so: mlang/mlang.dll.so
	$(RM) $@ && $(LN_S) mlang/mlang.dll.so $@

mmdevldr.vxd.so: mmdevldr.vxd/mmdevldr.vxd.so
	$(RM) $@ && $(LN_S) mmdevldr.vxd/mmdevldr.vxd.so $@

monodebg.vxd.so: monodebg.vxd/monodebg.vxd.so
	$(RM) $@ && $(LN_S) monodebg.vxd/monodebg.vxd.so $@

mpr.dll.so: mpr/mpr.dll.so
	$(RM) $@ && $(LN_S) mpr/mpr.dll.so $@

msacm.drv.so: winmm/wavemap/msacm.drv.so
	$(RM) $@ && $(LN_S) winmm/wavemap/msacm.drv.so $@

msacm32.dll.so: msacm/msacm32.dll.so
	$(RM) $@ && $(LN_S) msacm/msacm32.dll.so $@

msacm.dll.so : msacm32.dll.so
	$(RM) $@ && $(LN_S) msacm32.dll.so $@

msadp32.acm.so: msacm/msadp32/msadp32.acm.so
	$(RM) $@ && $(LN_S) msacm/msadp32/msadp32.acm.so $@

mscms.dll.so: mscms/mscms.dll.so
	$(RM) $@ && $(LN_S) mscms/mscms.dll.so $@

msdmo.dll.so: msdmo/msdmo.dll.so
	$(RM) $@ && $(LN_S) msdmo/msdmo.dll.so $@

msg711.acm.so: msacm/msg711/msg711.acm.so
	$(RM) $@ && $(LN_S) msacm/msg711/msg711.acm.so $@

mshtml.dll.so: mshtml/mshtml.dll.so
	$(RM) $@ && $(LN_S) mshtml/mshtml.dll.so $@

msi.dll.so: msi/msi.dll.so
	$(RM) $@ && $(LN_S) msi/msi.dll.so $@

msimg32.dll.so: msimg32/msimg32.dll.so
	$(RM) $@ && $(LN_S) msimg32/msimg32.dll.so $@

msisys.ocx.so: msisys/msisys.ocx.so
	$(RM) $@ && $(LN_S) msisys/msisys.ocx.so $@

msnet32.dll.so: msnet32/msnet32.dll.so
	$(RM) $@ && $(LN_S) msnet32/msnet32.dll.so $@

msrle32.dll.so: msrle32/msrle32.dll.so
	$(RM) $@ && $(LN_S) msrle32/msrle32.dll.so $@

msvcrt.dll.so: msvcrt/msvcrt.dll.so
	$(RM) $@ && $(LN_S) msvcrt/msvcrt.dll.so $@

msvcrt20.dll.so: msvcrt20/msvcrt20.dll.so
	$(RM) $@ && $(LN_S) msvcrt20/msvcrt20.dll.so $@

msvcrt40.dll.so: msvcrt40/msvcrt40.dll.so
	$(RM) $@ && $(LN_S) msvcrt40/msvcrt40.dll.so $@

msvcrtd.dll.so: msvcrtd/msvcrtd.dll.so
	$(RM) $@ && $(LN_S) msvcrtd/msvcrtd.dll.so $@

msvfw32.dll.so: msvideo/msvfw32.dll.so
	$(RM) $@ && $(LN_S) msvideo/msvfw32.dll.so $@

msvideo.dll.so : msvfw32.dll.so
	$(RM) $@ && $(LN_S) msvfw32.dll.so $@

msvidc32.dll.so: msvidc32/msvidc32.dll.so
	$(RM) $@ && $(LN_S) msvidc32/msvidc32.dll.so $@

mswsock.dll.so: mswsock/mswsock.dll.so
	$(RM) $@ && $(LN_S) mswsock/mswsock.dll.so $@

msxml3.dll.so: msxml3/msxml3.dll.so
	$(RM) $@ && $(LN_S) msxml3/msxml3.dll.so $@

netapi32.dll.so: netapi32/netapi32.dll.so
	$(RM) $@ && $(LN_S) netapi32/netapi32.dll.so $@

newdev.dll.so: newdev/newdev.dll.so
	$(RM) $@ && $(LN_S) newdev/newdev.dll.so $@

ntdll.dll.so: ntdll/ntdll.dll.so
	$(RM) $@ && $(LN_S) ntdll/ntdll.dll.so $@

objsel.dll.so: objsel/objsel.dll.so
	$(RM) $@ && $(LN_S) objsel/objsel.dll.so $@

odbc32.dll.so: odbc32/odbc32.dll.so
	$(RM) $@ && $(LN_S) odbc32/odbc32.dll.so $@

odbccp32.dll.so: odbccp32/odbccp32.dll.so
	$(RM) $@ && $(LN_S) odbccp32/odbccp32.dll.so $@

ole32.dll.so: ole32/ole32.dll.so
	$(RM) $@ && $(LN_S) ole32/ole32.dll.so $@

compobj.dll.so ole2.dll.so ole2conv.dll.so \
  ole2nls.dll.so ole2prox.dll.so ole2thk.dll.so \
  storage.dll.so : ole32.dll.so
	$(RM) $@ && $(LN_S) ole32.dll.so $@

oleacc.dll.so: oleacc/oleacc.dll.so
	$(RM) $@ && $(LN_S) oleacc/oleacc.dll.so $@

oleaut32.dll.so: oleaut32/oleaut32.dll.so
	$(RM) $@ && $(LN_S) oleaut32/oleaut32.dll.so $@

ole2disp.dll.so typelib.dll.so : oleaut32.dll.so
	$(RM) $@ && $(LN_S) oleaut32.dll.so $@

olecli32.dll.so: olecli/olecli32.dll.so
	$(RM) $@ && $(LN_S) olecli/olecli32.dll.so $@

olecli.dll.so : olecli32.dll.so
	$(RM) $@ && $(LN_S) olecli32.dll.so $@

oledlg.dll.so: oledlg/oledlg.dll.so
	$(RM) $@ && $(LN_S) oledlg/oledlg.dll.so $@

olepro32.dll.so: olepro32/olepro32.dll.so
	$(RM) $@ && $(LN_S) olepro32/olepro32.dll.so $@

olesvr32.dll.so: olesvr/olesvr32.dll.so
	$(RM) $@ && $(LN_S) olesvr/olesvr32.dll.so $@

olesvr.dll.so : olesvr32.dll.so
	$(RM) $@ && $(LN_S) olesvr32.dll.so $@

opengl32.dll.so: opengl32/opengl32.dll.so
	$(RM) $@ && $(LN_S) opengl32/opengl32.dll.so $@

powrprof.dll.so: powrprof/powrprof.dll.so
	$(RM) $@ && $(LN_S) powrprof/powrprof.dll.so $@

psapi.dll.so: psapi/psapi.dll.so
	$(RM) $@ && $(LN_S) psapi/psapi.dll.so $@

qcap.dll.so: qcap/qcap.dll.so
	$(RM) $@ && $(LN_S) qcap/qcap.dll.so $@

quartz.dll.so: quartz/quartz.dll.so
	$(RM) $@ && $(LN_S) quartz/quartz.dll.so $@

rasapi32.dll.so: rasapi32/rasapi32.dll.so
	$(RM) $@ && $(LN_S) rasapi32/rasapi32.dll.so $@

rasapi16.dll.so : rasapi32.dll.so
	$(RM) $@ && $(LN_S) rasapi32.dll.so $@

riched20.dll.so: riched20/riched20.dll.so
	$(RM) $@ && $(LN_S) riched20/riched20.dll.so $@

riched32.dll.so: richedit/riched32.dll.so
	$(RM) $@ && $(LN_S) richedit/riched32.dll.so $@

rpcrt4.dll.so: rpcrt4/rpcrt4.dll.so
	$(RM) $@ && $(LN_S) rpcrt4/rpcrt4.dll.so $@

rsabase.dll.so: rsabase/rsabase.dll.so
	$(RM) $@ && $(LN_S) rsabase/rsabase.dll.so $@

rsaenh.dll.so: rsaenh/rsaenh.dll.so
	$(RM) $@ && $(LN_S) rsaenh/rsaenh.dll.so $@

secur32.dll.so: secur32/secur32.dll.so
	$(RM) $@ && $(LN_S) secur32/secur32.dll.so $@

security.dll.so: security/security.dll.so
	$(RM) $@ && $(LN_S) security/security.dll.so $@

sensapi.dll.so: sensapi/sensapi.dll.so
	$(RM) $@ && $(LN_S) sensapi/sensapi.dll.so $@

serialui.dll.so: serialui/serialui.dll.so
	$(RM) $@ && $(LN_S) serialui/serialui.dll.so $@

setupapi.dll.so: setupapi/setupapi.dll.so
	$(RM) $@ && $(LN_S) setupapi/setupapi.dll.so $@

setupx.dll.so : setupapi.dll.so
	$(RM) $@ && $(LN_S) setupapi.dll.so $@

shdocvw.dll.so: shdocvw/shdocvw.dll.so
	$(RM) $@ && $(LN_S) shdocvw/shdocvw.dll.so $@

shell32.dll.so: shell32/shell32.dll.so
	$(RM) $@ && $(LN_S) shell32/shell32.dll.so $@

shell.dll.so : shell32.dll.so
	$(RM) $@ && $(LN_S) shell32.dll.so $@

shfolder.dll.so: shfolder/shfolder.dll.so
	$(RM) $@ && $(LN_S) shfolder/shfolder.dll.so $@

shlwapi.dll.so: shlwapi/shlwapi.dll.so
	$(RM) $@ && $(LN_S) shlwapi/shlwapi.dll.so $@

snmpapi.dll.so: snmpapi/snmpapi.dll.so
	$(RM) $@ && $(LN_S) snmpapi/snmpapi.dll.so $@

stdole2.tlb.so: stdole2.tlb/stdole2.tlb.so
	$(RM) $@ && $(LN_S) stdole2.tlb/stdole2.tlb.so $@

stdole32.tlb.so: stdole32.tlb/stdole32.tlb.so
	$(RM) $@ && $(LN_S) stdole32.tlb/stdole32.tlb.so $@

sti.dll.so: sti/sti.dll.so
	$(RM) $@ && $(LN_S) sti/sti.dll.so $@

tapi32.dll.so: tapi32/tapi32.dll.so
	$(RM) $@ && $(LN_S) tapi32/tapi32.dll.so $@

twain_32.dll.so: twain/twain_32.dll.so
	$(RM) $@ && $(LN_S) twain/twain_32.dll.so $@

twain.dll.so : twain_32.dll.so
	$(RM) $@ && $(LN_S) twain_32.dll.so $@

unicows.dll.so: unicows/unicows.dll.so
	$(RM) $@ && $(LN_S) unicows/unicows.dll.so $@

url.dll.so: url/url.dll.so
	$(RM) $@ && $(LN_S) url/url.dll.so $@

urlmon.dll.so: urlmon/urlmon.dll.so
	$(RM) $@ && $(LN_S) urlmon/urlmon.dll.so $@

user32.dll.so: user/user32.dll.so
	$(RM) $@ && $(LN_S) user/user32.dll.so $@

ddeml.dll.so display.drv.so keyboard.drv.so \
  mouse.drv.so user.exe.so : user32.dll.so
	$(RM) $@ && $(LN_S) user32.dll.so $@

usp10.dll.so: usp10/usp10.dll.so
	$(RM) $@ && $(LN_S) usp10/usp10.dll.so $@

uxtheme.dll.so: uxtheme/uxtheme.dll.so
	$(RM) $@ && $(LN_S) uxtheme/uxtheme.dll.so $@

vdhcp.vxd.so: vdhcp.vxd/vdhcp.vxd.so
	$(RM) $@ && $(LN_S) vdhcp.vxd/vdhcp.vxd.so $@

vdmdbg.dll.so: vdmdbg/vdmdbg.dll.so
	$(RM) $@ && $(LN_S) vdmdbg/vdmdbg.dll.so $@

version.dll.so: version/version.dll.so
	$(RM) $@ && $(LN_S) version/version.dll.so $@

ver.dll.so : version.dll.so
	$(RM) $@ && $(LN_S) version.dll.so $@

vmm.vxd.so: vmm.vxd/vmm.vxd.so
	$(RM) $@ && $(LN_S) vmm.vxd/vmm.vxd.so $@

vnbt.vxd.so: vnbt.vxd/vnbt.vxd.so
	$(RM) $@ && $(LN_S) vnbt.vxd/vnbt.vxd.so $@

vnetbios.vxd.so: vnetbios.vxd/vnetbios.vxd.so
	$(RM) $@ && $(LN_S) vnetbios.vxd/vnetbios.vxd.so $@

vtdapi.vxd.so: vtdapi.vxd/vtdapi.vxd.so
	$(RM) $@ && $(LN_S) vtdapi.vxd/vtdapi.vxd.so $@

vwin32.vxd.so: vwin32.vxd/vwin32.vxd.so
	$(RM) $@ && $(LN_S) vwin32.vxd/vwin32.vxd.so $@

w32skrnl.dll.so: win32s/w32skrnl.dll.so
	$(RM) $@ && $(LN_S) win32s/w32skrnl.dll.so $@

w32sys.dll.so win32s16.dll.so : w32skrnl.dll.so
	$(RM) $@ && $(LN_S) w32skrnl.dll.so $@

winealsa.drv.so: winmm/winealsa/winealsa.drv.so
	$(RM) $@ && $(LN_S) winmm/winealsa/winealsa.drv.so $@

winearts.drv.so: winmm/winearts/winearts.drv.so
	$(RM) $@ && $(LN_S) winmm/winearts/winearts.drv.so $@

wineaudioio.drv.so: winmm/wineaudioio/wineaudioio.drv.so
	$(RM) $@ && $(LN_S) winmm/wineaudioio/wineaudioio.drv.so $@

wined3d.dll.so: wined3d/wined3d.dll.so
	$(RM) $@ && $(LN_S) wined3d/wined3d.dll.so $@

winedos.dll.so: winedos/winedos.dll.so
	$(RM) $@ && $(LN_S) winedos/winedos.dll.so $@

wprocs.dll.so : winedos.dll.so
	$(RM) $@ && $(LN_S) winedos.dll.so $@

wineesd.drv.so: winmm/wineesd/wineesd.drv.so
	$(RM) $@ && $(LN_S) winmm/wineesd/wineesd.drv.so $@

winejack.drv.so: winmm/winejack/winejack.drv.so
	$(RM) $@ && $(LN_S) winmm/winejack/winejack.drv.so $@

winemp3.acm.so: msacm/winemp3/winemp3.acm.so
	$(RM) $@ && $(LN_S) msacm/winemp3/winemp3.acm.so $@

winenas.drv.so: winmm/winenas/winenas.drv.so
	$(RM) $@ && $(LN_S) winmm/winenas/winenas.drv.so $@

wineoss.drv.so: winmm/wineoss/wineoss.drv.so
	$(RM) $@ && $(LN_S) winmm/wineoss/wineoss.drv.so $@

wineps.drv.so: wineps/wineps.drv.so
	$(RM) $@ && $(LN_S) wineps/wineps.drv.so $@

wineps16.drv.so : wineps.drv.so
	$(RM) $@ && $(LN_S) wineps.drv.so $@

winex11.drv.so: x11drv/winex11.drv.so
	$(RM) $@ && $(LN_S) x11drv/winex11.drv.so $@

wininet.dll.so: wininet/wininet.dll.so
	$(RM) $@ && $(LN_S) wininet/wininet.dll.so $@

winmm.dll.so: winmm/winmm.dll.so
	$(RM) $@ && $(LN_S) winmm/winmm.dll.so $@

mmsystem.dll.so sound.drv.so : winmm.dll.so
	$(RM) $@ && $(LN_S) winmm.dll.so $@

winnls32.dll.so: winnls/winnls32.dll.so
	$(RM) $@ && $(LN_S) winnls/winnls32.dll.so $@

winnls.dll.so : winnls32.dll.so
	$(RM) $@ && $(LN_S) winnls32.dll.so $@

winspool.drv.so: winspool/winspool.drv.so
	$(RM) $@ && $(LN_S) winspool/winspool.drv.so $@

wintab32.dll.so: wintab32/wintab32.dll.so
	$(RM) $@ && $(LN_S) wintab32/wintab32.dll.so $@

wintab.dll.so : wintab32.dll.so
	$(RM) $@ && $(LN_S) wintab32.dll.so $@

wintrust.dll.so: wintrust/wintrust.dll.so
	$(RM) $@ && $(LN_S) wintrust/wintrust.dll.so $@

wldap32.dll.so: wldap32/wldap32.dll.so
	$(RM) $@ && $(LN_S) wldap32/wldap32.dll.so $@

wnaspi32.dll.so: winaspi/wnaspi32.dll.so
	$(RM) $@ && $(LN_S) winaspi/wnaspi32.dll.so $@

winaspi.dll.so : wnaspi32.dll.so
	$(RM) $@ && $(LN_S) wnaspi32.dll.so $@

wow32.dll.so: wow32/wow32.dll.so
	$(RM) $@ && $(LN_S) wow32/wow32.dll.so $@

ws2_32.dll.so: winsock/ws2_32.dll.so
	$(RM) $@ && $(LN_S) winsock/ws2_32.dll.so $@

winsock.dll.so : ws2_32.dll.so
	$(RM) $@ && $(LN_S) ws2_32.dll.so $@

wsock32.dll.so: wsock32/wsock32.dll.so
	$(RM) $@ && $(LN_S) wsock32/wsock32.dll.so $@

wtsapi32.dll.so: wtsapi32/wtsapi32.dll.so
	$(RM) $@ && $(LN_S) wtsapi32/wtsapi32.dll.so $@

libdxerr8.a: dxerr8/libdxerr8.a
	$(RM) $@ && $(LN_S) dxerr8/libdxerr8.a $@

libdxerr9.a: dxerr9/libdxerr9.a
	$(RM) $@ && $(LN_S) dxerr9/libdxerr9.a $@

libdxguid.a: dxguid/libdxguid.a
	$(RM) $@ && $(LN_S) dxguid/libdxguid.a $@

libstrmiids.a: strmiids/libstrmiids.a
	$(RM) $@ && $(LN_S) strmiids/libstrmiids.a $@

libuuid.a: uuid/libuuid.a
	$(RM) $@ && $(LN_S) uuid/libuuid.a $@

libwinecrt0.a: winecrt0/libwinecrt0.a
	$(RM) $@ && $(LN_S) winecrt0/libwinecrt0.a $@


# Import libraries

STATIC_IMPLIBEXT = $(IMPLIBEXT:def=def.a)

IMPORT_SYMLINKS = \
	libcomdlg32.$(IMPLIBEXT) \
	libctl3d32.$(IMPLIBEXT) \
	libgdi32.$(IMPLIBEXT) \
	libkernel32.$(IMPLIBEXT) \
	liblz32.$(IMPLIBEXT) \
	libmsacm32.$(IMPLIBEXT) \
	libmsvfw32.$(IMPLIBEXT) \
	libolecli32.$(IMPLIBEXT) \
	libolesvr32.$(IMPLIBEXT) \
	libuser32.$(IMPLIBEXT) \
	libwinnls32.$(IMPLIBEXT) \
	libwnaspi32.$(IMPLIBEXT) \
	libws2_32.$(IMPLIBEXT) \
	libdxerr8.a \
	libdxerr9.a \
	libdxguid.a \
	libstrmiids.a \
	libuuid.a \
	libwinecrt0.a

IMPORT_LIBS = \
	$(IMPORT_SYMLINKS) \
	activeds/libactiveds.$(IMPLIBEXT) \
	advapi32/libadvapi32.$(IMPLIBEXT) \
	advpack/libadvpack.$(IMPLIBEXT) \
	atl/libatl.$(IMPLIBEXT) \
	avicap32/libavicap32.$(IMPLIBEXT) \
	avifil32/libavifil32.$(IMPLIBEXT) \
	cabinet/libcabinet.$(IMPLIBEXT) \
	capi2032/libcapi2032.$(IMPLIBEXT) \
	cards/libcards.$(IMPLIBEXT) \
	cfgmgr32/libcfgmgr32.$(IMPLIBEXT) \
	comctl32/libcomctl32.$(IMPLIBEXT) \
	commdlg/libcomdlg32.$(IMPLIBEXT) \
	crtdll/libcrtdll.$(IMPLIBEXT) \
	crypt32/libcrypt32.$(IMPLIBEXT) \
	cryptdll/libcryptdll.$(IMPLIBEXT) \
	ctl3d/libctl3d32.$(IMPLIBEXT) \
	d3d8/libd3d8.$(IMPLIBEXT) \
	d3d9/libd3d9.$(IMPLIBEXT) \
	d3dim/libd3dim.$(IMPLIBEXT) \
	d3drm/libd3drm.$(IMPLIBEXT) \
	d3dx8/libd3dx8.$(IMPLIBEXT) \
	d3dxof/libd3dxof.$(IMPLIBEXT) \
	dbghelp/libdbghelp.$(IMPLIBEXT) \
	dciman32/libdciman32.$(IMPLIBEXT) \
	ddraw/libddraw.$(IMPLIBEXT) \
	dinput/libdinput.$(IMPLIBEXT) \
	dinput/libdinput.$(STATIC_IMPLIBEXT) \
	dinput8/libdinput8.$(IMPLIBEXT) \
	dmusic32/libdmusic32.$(IMPLIBEXT) \
	dplay/libdplay.$(IMPLIBEXT) \
	dplayx/libdplayx.$(IMPLIBEXT) \
	dpnet/libdpnet.$(IMPLIBEXT) \
	dsound/libdsound.$(IMPLIBEXT) \
	gdi/libgdi32.$(IMPLIBEXT) \
	glu32/libglu32.$(IMPLIBEXT) \
	glut32/libglut32.$(IMPLIBEXT) \
	icmp/libicmp.$(IMPLIBEXT) \
	imagehlp/libimagehlp.$(IMPLIBEXT) \
	imm32/libimm32.$(IMPLIBEXT) \
	iphlpapi/libiphlpapi.$(IMPLIBEXT) \
	kernel/libkernel32.$(IMPLIBEXT) \
	lzexpand/liblz32.$(IMPLIBEXT) \
	mapi32/libmapi32.$(IMPLIBEXT) \
	mlang/libmlang.$(IMPLIBEXT) \
	mpr/libmpr.$(IMPLIBEXT) \
	msacm/libmsacm32.$(IMPLIBEXT) \
	mscms/libmscms.$(IMPLIBEXT) \
	msdmo/libmsdmo.$(IMPLIBEXT) \
	mshtml/libmshtml.$(IMPLIBEXT) \
	msi/libmsi.$(IMPLIBEXT) \
	msimg32/libmsimg32.$(IMPLIBEXT) \
	msvcrt/libmsvcrt.$(IMPLIBEXT) \
	msvcrt20/libmsvcrt20.$(IMPLIBEXT) \
	msvcrt40/libmsvcrt40.$(IMPLIBEXT) \
	msvcrtd/libmsvcrtd.$(IMPLIBEXT) \
	msvideo/libmsvfw32.$(IMPLIBEXT) \
	mswsock/libmswsock.$(IMPLIBEXT) \
	netapi32/libnetapi32.$(IMPLIBEXT) \
	newdev/libnewdev.$(IMPLIBEXT) \
	ntdll/libntdll.$(IMPLIBEXT) \
	odbc32/libodbc32.$(IMPLIBEXT) \
	odbccp32/libodbccp32.$(IMPLIBEXT) \
	ole32/libole32.$(IMPLIBEXT) \
	oleacc/liboleacc.$(IMPLIBEXT) \
	oleaut32/liboleaut32.$(IMPLIBEXT) \
	olecli/libolecli32.$(IMPLIBEXT) \
	oledlg/liboledlg.$(IMPLIBEXT) \
	olepro32/libolepro32.$(IMPLIBEXT) \
	olesvr/libolesvr32.$(IMPLIBEXT) \
	opengl32/libopengl32.$(IMPLIBEXT) \
	powrprof/libpowrprof.$(IMPLIBEXT) \
	psapi/libpsapi.$(IMPLIBEXT) \
	quartz/libquartz.$(IMPLIBEXT) \
	rasapi32/librasapi32.$(IMPLIBEXT) \
	riched20/libriched20.$(IMPLIBEXT) \
	rpcrt4/librpcrt4.$(IMPLIBEXT) \
	rsaenh/librsaenh.$(IMPLIBEXT) \
	secur32/libsecur32.$(IMPLIBEXT) \
	sensapi/libsensapi.$(IMPLIBEXT) \
	serialui/libserialui.$(IMPLIBEXT) \
	setupapi/libsetupapi.$(IMPLIBEXT) \
	shdocvw/libshdocvw.$(IMPLIBEXT) \
	shell32/libshell32.$(IMPLIBEXT) \
	shfolder/libshfolder.$(IMPLIBEXT) \
	shlwapi/libshlwapi.$(IMPLIBEXT) \
	snmpapi/libsnmpapi.$(IMPLIBEXT) \
	sti/libsti.$(IMPLIBEXT) \
	tapi32/libtapi32.$(IMPLIBEXT) \
	unicows/libunicows.$(IMPLIBEXT) \
	url/liburl.$(IMPLIBEXT) \
	urlmon/liburlmon.$(IMPLIBEXT) \
	user/libuser32.$(IMPLIBEXT) \
	usp10/libusp10.$(IMPLIBEXT) \
	uxtheme/libuxtheme.$(IMPLIBEXT) \
	vdmdbg/libvdmdbg.$(IMPLIBEXT) \
	version/libversion.$(IMPLIBEXT) \
	wined3d/libwined3d.$(IMPLIBEXT) \
	winedos/libwinedos.$(IMPLIBEXT) \
	wininet/libwininet.$(IMPLIBEXT) \
	winmm/libwinmm.$(IMPLIBEXT) \
	winnls/libwinnls32.$(IMPLIBEXT) \
	winspool/libwinspool.$(IMPLIBEXT) \
	wintab32/libwintab32.$(IMPLIBEXT) \
	wintrust/libwintrust.$(IMPLIBEXT) \
	wldap32/libwldap32.$(IMPLIBEXT) \
	winaspi/libwnaspi32.$(IMPLIBEXT) \
	wow32/libwow32.$(IMPLIBEXT) \
	winsock/libws2_32.$(IMPLIBEXT) \
	wsock32/libwsock32.$(IMPLIBEXT) \
	wtsapi32/libwtsapi32.$(IMPLIBEXT)

implib: $(IMPORT_LIBS)

activeds/libactiveds.$(IMPLIBEXT): activeds/activeds.spec $(WINEBUILD)
	@cd activeds && $(MAKE) libactiveds.$(IMPLIBEXT)

advapi32/libadvapi32.$(IMPLIBEXT): advapi32/advapi32.spec $(WINEBUILD)
	@cd advapi32 && $(MAKE) libadvapi32.$(IMPLIBEXT)

advpack/libadvpack.$(IMPLIBEXT): advpack/advpack.spec $(WINEBUILD)
	@cd advpack && $(MAKE) libadvpack.$(IMPLIBEXT)

atl/libatl.$(IMPLIBEXT): atl/atl.spec $(WINEBUILD)
	@cd atl && $(MAKE) libatl.$(IMPLIBEXT)

avicap32/libavicap32.$(IMPLIBEXT): avicap32/avicap32.spec $(WINEBUILD)
	@cd avicap32 && $(MAKE) libavicap32.$(IMPLIBEXT)

avifil32/libavifil32.$(IMPLIBEXT): avifil32/avifil32.spec $(WINEBUILD)
	@cd avifil32 && $(MAKE) libavifil32.$(IMPLIBEXT)

cabinet/libcabinet.$(IMPLIBEXT): cabinet/cabinet.spec $(WINEBUILD)
	@cd cabinet && $(MAKE) libcabinet.$(IMPLIBEXT)

capi2032/libcapi2032.$(IMPLIBEXT): capi2032/capi2032.spec $(WINEBUILD)
	@cd capi2032 && $(MAKE) libcapi2032.$(IMPLIBEXT)

cards/libcards.$(IMPLIBEXT): cards/cards.spec $(WINEBUILD)
	@cd cards && $(MAKE) libcards.$(IMPLIBEXT)

cfgmgr32/libcfgmgr32.$(IMPLIBEXT): cfgmgr32/cfgmgr32.spec $(WINEBUILD)
	@cd cfgmgr32 && $(MAKE) libcfgmgr32.$(IMPLIBEXT)

comctl32/libcomctl32.$(IMPLIBEXT): comctl32/comctl32.spec $(WINEBUILD)
	@cd comctl32 && $(MAKE) libcomctl32.$(IMPLIBEXT)

commdlg/libcomdlg32.$(IMPLIBEXT): commdlg/comdlg32.spec $(WINEBUILD)
	@cd commdlg && $(MAKE) libcomdlg32.$(IMPLIBEXT)

crtdll/libcrtdll.$(IMPLIBEXT): crtdll/crtdll.spec $(WINEBUILD)
	@cd crtdll && $(MAKE) libcrtdll.$(IMPLIBEXT)

crypt32/libcrypt32.$(IMPLIBEXT): crypt32/crypt32.spec $(WINEBUILD)
	@cd crypt32 && $(MAKE) libcrypt32.$(IMPLIBEXT)

cryptdll/libcryptdll.$(IMPLIBEXT): cryptdll/cryptdll.spec $(WINEBUILD)
	@cd cryptdll && $(MAKE) libcryptdll.$(IMPLIBEXT)

ctl3d/libctl3d32.$(IMPLIBEXT): ctl3d/ctl3d32.spec $(WINEBUILD)
	@cd ctl3d && $(MAKE) libctl3d32.$(IMPLIBEXT)

d3d8/libd3d8.$(IMPLIBEXT): d3d8/d3d8.spec $(WINEBUILD)
	@cd d3d8 && $(MAKE) libd3d8.$(IMPLIBEXT)

d3d9/libd3d9.$(IMPLIBEXT): d3d9/d3d9.spec $(WINEBUILD)
	@cd d3d9 && $(MAKE) libd3d9.$(IMPLIBEXT)

d3dim/libd3dim.$(IMPLIBEXT): d3dim/d3dim.spec $(WINEBUILD)
	@cd d3dim && $(MAKE) libd3dim.$(IMPLIBEXT)

d3drm/libd3drm.$(IMPLIBEXT): d3drm/d3drm.spec $(WINEBUILD)
	@cd d3drm && $(MAKE) libd3drm.$(IMPLIBEXT)

d3dx8/libd3dx8.$(IMPLIBEXT): d3dx8/d3dx8.spec $(WINEBUILD)
	@cd d3dx8 && $(MAKE) libd3dx8.$(IMPLIBEXT)

d3dxof/libd3dxof.$(IMPLIBEXT): d3dxof/d3dxof.spec $(WINEBUILD)
	@cd d3dxof && $(MAKE) libd3dxof.$(IMPLIBEXT)

dbghelp/libdbghelp.$(IMPLIBEXT): dbghelp/dbghelp.spec $(WINEBUILD)
	@cd dbghelp && $(MAKE) libdbghelp.$(IMPLIBEXT)

dciman32/libdciman32.$(IMPLIBEXT): dciman32/dciman32.spec $(WINEBUILD)
	@cd dciman32 && $(MAKE) libdciman32.$(IMPLIBEXT)

ddraw/libddraw.$(IMPLIBEXT): ddraw/ddraw.spec $(WINEBUILD)
	@cd ddraw && $(MAKE) libddraw.$(IMPLIBEXT)

dinput/libdinput.$(IMPLIBEXT): dinput/dinput.spec $(WINEBUILD)
	@cd dinput && $(MAKE) libdinput.$(IMPLIBEXT)

dinput/libdinput.$(STATIC_IMPLIBEXT): dummy
	@cd dinput && $(MAKE) libdinput.$(STATIC_IMPLIBEXT)

dinput8/libdinput8.$(IMPLIBEXT): dinput8/dinput8.spec $(WINEBUILD)
	@cd dinput8 && $(MAKE) libdinput8.$(IMPLIBEXT)

dmusic32/libdmusic32.$(IMPLIBEXT): dmusic32/dmusic32.spec $(WINEBUILD)
	@cd dmusic32 && $(MAKE) libdmusic32.$(IMPLIBEXT)

dplay/libdplay.$(IMPLIBEXT): dplay/dplay.spec $(WINEBUILD)
	@cd dplay && $(MAKE) libdplay.$(IMPLIBEXT)

dplayx/libdplayx.$(IMPLIBEXT): dplayx/dplayx.spec $(WINEBUILD)
	@cd dplayx && $(MAKE) libdplayx.$(IMPLIBEXT)

dpnet/libdpnet.$(IMPLIBEXT): dpnet/dpnet.spec $(WINEBUILD)
	@cd dpnet && $(MAKE) libdpnet.$(IMPLIBEXT)

dsound/libdsound.$(IMPLIBEXT): dsound/dsound.spec $(WINEBUILD)
	@cd dsound && $(MAKE) libdsound.$(IMPLIBEXT)

gdi/libgdi32.$(IMPLIBEXT): gdi/gdi32.spec $(WINEBUILD)
	@cd gdi && $(MAKE) libgdi32.$(IMPLIBEXT)

glu32/libglu32.$(IMPLIBEXT): glu32/glu32.spec $(WINEBUILD)
	@cd glu32 && $(MAKE) libglu32.$(IMPLIBEXT)

glut32/libglut32.$(IMPLIBEXT): glut32/glut32.spec $(WINEBUILD)
	@cd glut32 && $(MAKE) libglut32.$(IMPLIBEXT)

icmp/libicmp.$(IMPLIBEXT): icmp/icmp.spec $(WINEBUILD)
	@cd icmp && $(MAKE) libicmp.$(IMPLIBEXT)

imagehlp/libimagehlp.$(IMPLIBEXT): imagehlp/imagehlp.spec $(WINEBUILD)
	@cd imagehlp && $(MAKE) libimagehlp.$(IMPLIBEXT)

imm32/libimm32.$(IMPLIBEXT): imm32/imm32.spec $(WINEBUILD)
	@cd imm32 && $(MAKE) libimm32.$(IMPLIBEXT)

iphlpapi/libiphlpapi.$(IMPLIBEXT): iphlpapi/iphlpapi.spec $(WINEBUILD)
	@cd iphlpapi && $(MAKE) libiphlpapi.$(IMPLIBEXT)

kernel/libkernel32.$(IMPLIBEXT): kernel/kernel32.spec $(WINEBUILD)
	@cd kernel && $(MAKE) libkernel32.$(IMPLIBEXT)

lzexpand/liblz32.$(IMPLIBEXT): lzexpand/lz32.spec $(WINEBUILD)
	@cd lzexpand && $(MAKE) liblz32.$(IMPLIBEXT)

mapi32/libmapi32.$(IMPLIBEXT): mapi32/mapi32.spec $(WINEBUILD)
	@cd mapi32 && $(MAKE) libmapi32.$(IMPLIBEXT)

mlang/libmlang.$(IMPLIBEXT): mlang/mlang.spec $(WINEBUILD)
	@cd mlang && $(MAKE) libmlang.$(IMPLIBEXT)

mpr/libmpr.$(IMPLIBEXT): mpr/mpr.spec $(WINEBUILD)
	@cd mpr && $(MAKE) libmpr.$(IMPLIBEXT)

msacm/libmsacm32.$(IMPLIBEXT): msacm/msacm32.spec $(WINEBUILD)
	@cd msacm && $(MAKE) libmsacm32.$(IMPLIBEXT)

mscms/libmscms.$(IMPLIBEXT): mscms/mscms.spec $(WINEBUILD)
	@cd mscms && $(MAKE) libmscms.$(IMPLIBEXT)

msdmo/libmsdmo.$(IMPLIBEXT): msdmo/msdmo.spec $(WINEBUILD)
	@cd msdmo && $(MAKE) libmsdmo.$(IMPLIBEXT)

mshtml/libmshtml.$(IMPLIBEXT): mshtml/mshtml.spec $(WINEBUILD)
	@cd mshtml && $(MAKE) libmshtml.$(IMPLIBEXT)

msi/libmsi.$(IMPLIBEXT): msi/msi.spec $(WINEBUILD)
	@cd msi && $(MAKE) libmsi.$(IMPLIBEXT)

msimg32/libmsimg32.$(IMPLIBEXT): msimg32/msimg32.spec $(WINEBUILD)
	@cd msimg32 && $(MAKE) libmsimg32.$(IMPLIBEXT)

msvcrt/libmsvcrt.$(IMPLIBEXT): msvcrt/msvcrt.spec $(WINEBUILD)
	@cd msvcrt && $(MAKE) libmsvcrt.$(IMPLIBEXT)

msvcrt20/libmsvcrt20.$(IMPLIBEXT): msvcrt20/msvcrt20.spec $(WINEBUILD)
	@cd msvcrt20 && $(MAKE) libmsvcrt20.$(IMPLIBEXT)

msvcrt40/libmsvcrt40.$(IMPLIBEXT): msvcrt40/msvcrt40.spec $(WINEBUILD)
	@cd msvcrt40 && $(MAKE) libmsvcrt40.$(IMPLIBEXT)

msvcrtd/libmsvcrtd.$(IMPLIBEXT): msvcrtd/msvcrtd.spec $(WINEBUILD)
	@cd msvcrtd && $(MAKE) libmsvcrtd.$(IMPLIBEXT)

msvideo/libmsvfw32.$(IMPLIBEXT): msvideo/msvfw32.spec $(WINEBUILD)
	@cd msvideo && $(MAKE) libmsvfw32.$(IMPLIBEXT)

mswsock/libmswsock.$(IMPLIBEXT): mswsock/mswsock.spec $(WINEBUILD)
	@cd mswsock && $(MAKE) libmswsock.$(IMPLIBEXT)

netapi32/libnetapi32.$(IMPLIBEXT): netapi32/netapi32.spec $(WINEBUILD)
	@cd netapi32 && $(MAKE) libnetapi32.$(IMPLIBEXT)

newdev/libnewdev.$(IMPLIBEXT): newdev/newdev.spec $(WINEBUILD)
	@cd newdev && $(MAKE) libnewdev.$(IMPLIBEXT)

ntdll/libntdll.$(IMPLIBEXT): ntdll/ntdll.spec $(WINEBUILD)
	@cd ntdll && $(MAKE) libntdll.$(IMPLIBEXT)

odbc32/libodbc32.$(IMPLIBEXT): odbc32/odbc32.spec $(WINEBUILD)
	@cd odbc32 && $(MAKE) libodbc32.$(IMPLIBEXT)

odbccp32/libodbccp32.$(IMPLIBEXT): odbccp32/odbccp32.spec $(WINEBUILD)
	@cd odbccp32 && $(MAKE) libodbccp32.$(IMPLIBEXT)

ole32/libole32.$(IMPLIBEXT): ole32/ole32.spec $(WINEBUILD)
	@cd ole32 && $(MAKE) libole32.$(IMPLIBEXT)

oleacc/liboleacc.$(IMPLIBEXT): oleacc/oleacc.spec $(WINEBUILD)
	@cd oleacc && $(MAKE) liboleacc.$(IMPLIBEXT)

oleaut32/liboleaut32.$(IMPLIBEXT): oleaut32/oleaut32.spec $(WINEBUILD)
	@cd oleaut32 && $(MAKE) liboleaut32.$(IMPLIBEXT)

olecli/libolecli32.$(IMPLIBEXT): olecli/olecli32.spec $(WINEBUILD)
	@cd olecli && $(MAKE) libolecli32.$(IMPLIBEXT)

oledlg/liboledlg.$(IMPLIBEXT): oledlg/oledlg.spec $(WINEBUILD)
	@cd oledlg && $(MAKE) liboledlg.$(IMPLIBEXT)

olepro32/libolepro32.$(IMPLIBEXT): olepro32/olepro32.spec $(WINEBUILD)
	@cd olepro32 && $(MAKE) libolepro32.$(IMPLIBEXT)

olesvr/libolesvr32.$(IMPLIBEXT): olesvr/olesvr32.spec $(WINEBUILD)
	@cd olesvr && $(MAKE) libolesvr32.$(IMPLIBEXT)

opengl32/libopengl32.$(IMPLIBEXT): opengl32/opengl32.spec $(WINEBUILD)
	@cd opengl32 && $(MAKE) libopengl32.$(IMPLIBEXT)

powrprof/libpowrprof.$(IMPLIBEXT): powrprof/powrprof.spec $(WINEBUILD)
	@cd powrprof && $(MAKE) libpowrprof.$(IMPLIBEXT)

psapi/libpsapi.$(IMPLIBEXT): psapi/psapi.spec $(WINEBUILD)
	@cd psapi && $(MAKE) libpsapi.$(IMPLIBEXT)

quartz/libquartz.$(IMPLIBEXT): quartz/quartz.spec $(WINEBUILD)
	@cd quartz && $(MAKE) libquartz.$(IMPLIBEXT)

rasapi32/librasapi32.$(IMPLIBEXT): rasapi32/rasapi32.spec $(WINEBUILD)
	@cd rasapi32 && $(MAKE) librasapi32.$(IMPLIBEXT)

riched20/libriched20.$(IMPLIBEXT): riched20/riched20.spec $(WINEBUILD)
	@cd riched20 && $(MAKE) libriched20.$(IMPLIBEXT)

rpcrt4/librpcrt4.$(IMPLIBEXT): rpcrt4/rpcrt4.spec $(WINEBUILD)
	@cd rpcrt4 && $(MAKE) librpcrt4.$(IMPLIBEXT)

rsaenh/librsaenh.$(IMPLIBEXT): rsaenh/rsaenh.spec $(WINEBUILD)
	@cd rsaenh && $(MAKE) librsaenh.$(IMPLIBEXT)

secur32/libsecur32.$(IMPLIBEXT): secur32/secur32.spec $(WINEBUILD)
	@cd secur32 && $(MAKE) libsecur32.$(IMPLIBEXT)

sensapi/libsensapi.$(IMPLIBEXT): sensapi/sensapi.spec $(WINEBUILD)
	@cd sensapi && $(MAKE) libsensapi.$(IMPLIBEXT)

serialui/libserialui.$(IMPLIBEXT): serialui/serialui.spec $(WINEBUILD)
	@cd serialui && $(MAKE) libserialui.$(IMPLIBEXT)

setupapi/libsetupapi.$(IMPLIBEXT): setupapi/setupapi.spec $(WINEBUILD)
	@cd setupapi && $(MAKE) libsetupapi.$(IMPLIBEXT)

shdocvw/libshdocvw.$(IMPLIBEXT): shdocvw/shdocvw.spec $(WINEBUILD)
	@cd shdocvw && $(MAKE) libshdocvw.$(IMPLIBEXT)

shell32/libshell32.$(IMPLIBEXT): shell32/shell32.spec $(WINEBUILD)
	@cd shell32 && $(MAKE) libshell32.$(IMPLIBEXT)

shfolder/libshfolder.$(IMPLIBEXT): shfolder/shfolder.spec $(WINEBUILD)
	@cd shfolder && $(MAKE) libshfolder.$(IMPLIBEXT)

shlwapi/libshlwapi.$(IMPLIBEXT): shlwapi/shlwapi.spec $(WINEBUILD)
	@cd shlwapi && $(MAKE) libshlwapi.$(IMPLIBEXT)

snmpapi/libsnmpapi.$(IMPLIBEXT): snmpapi/snmpapi.spec $(WINEBUILD)
	@cd snmpapi && $(MAKE) libsnmpapi.$(IMPLIBEXT)

sti/libsti.$(IMPLIBEXT): sti/sti.spec $(WINEBUILD)
	@cd sti && $(MAKE) libsti.$(IMPLIBEXT)

tapi32/libtapi32.$(IMPLIBEXT): tapi32/tapi32.spec $(WINEBUILD)
	@cd tapi32 && $(MAKE) libtapi32.$(IMPLIBEXT)

unicows/libunicows.$(IMPLIBEXT): unicows/unicows.spec $(WINEBUILD)
	@cd unicows && $(MAKE) libunicows.$(IMPLIBEXT)

url/liburl.$(IMPLIBEXT): url/url.spec $(WINEBUILD)
	@cd url && $(MAKE) liburl.$(IMPLIBEXT)

urlmon/liburlmon.$(IMPLIBEXT): urlmon/urlmon.spec $(WINEBUILD)
	@cd urlmon && $(MAKE) liburlmon.$(IMPLIBEXT)

user/libuser32.$(IMPLIBEXT): user/user32.spec $(WINEBUILD)
	@cd user && $(MAKE) libuser32.$(IMPLIBEXT)

usp10/libusp10.$(IMPLIBEXT): usp10/usp10.spec $(WINEBUILD)
	@cd usp10 && $(MAKE) libusp10.$(IMPLIBEXT)

uxtheme/libuxtheme.$(IMPLIBEXT): uxtheme/uxtheme.spec $(WINEBUILD)
	@cd uxtheme && $(MAKE) libuxtheme.$(IMPLIBEXT)

vdmdbg/libvdmdbg.$(IMPLIBEXT): vdmdbg/vdmdbg.spec $(WINEBUILD)
	@cd vdmdbg && $(MAKE) libvdmdbg.$(IMPLIBEXT)

version/libversion.$(IMPLIBEXT): version/version.spec $(WINEBUILD)
	@cd version && $(MAKE) libversion.$(IMPLIBEXT)

wined3d/libwined3d.$(IMPLIBEXT): wined3d/wined3d.spec $(WINEBUILD)
	@cd wined3d && $(MAKE) libwined3d.$(IMPLIBEXT)

winedos/libwinedos.$(IMPLIBEXT): winedos/winedos.spec $(WINEBUILD)
	@cd winedos && $(MAKE) libwinedos.$(IMPLIBEXT)

wininet/libwininet.$(IMPLIBEXT): wininet/wininet.spec $(WINEBUILD)
	@cd wininet && $(MAKE) libwininet.$(IMPLIBEXT)

winmm/libwinmm.$(IMPLIBEXT): winmm/winmm.spec $(WINEBUILD)
	@cd winmm && $(MAKE) libwinmm.$(IMPLIBEXT)

winnls/libwinnls32.$(IMPLIBEXT): winnls/winnls32.spec $(WINEBUILD)
	@cd winnls && $(MAKE) libwinnls32.$(IMPLIBEXT)

winspool/libwinspool.$(IMPLIBEXT): winspool/winspool.drv.spec $(WINEBUILD)
	@cd winspool && $(MAKE) libwinspool.$(IMPLIBEXT)

wintab32/libwintab32.$(IMPLIBEXT): wintab32/wintab32.spec $(WINEBUILD)
	@cd wintab32 && $(MAKE) libwintab32.$(IMPLIBEXT)

wintrust/libwintrust.$(IMPLIBEXT): wintrust/wintrust.spec $(WINEBUILD)
	@cd wintrust && $(MAKE) libwintrust.$(IMPLIBEXT)

wldap32/libwldap32.$(IMPLIBEXT): wldap32/wldap32.spec $(WINEBUILD)
	@cd wldap32 && $(MAKE) libwldap32.$(IMPLIBEXT)

winaspi/libwnaspi32.$(IMPLIBEXT): winaspi/wnaspi32.spec $(WINEBUILD)
	@cd winaspi && $(MAKE) libwnaspi32.$(IMPLIBEXT)

wow32/libwow32.$(IMPLIBEXT): wow32/wow32.spec $(WINEBUILD)
	@cd wow32 && $(MAKE) libwow32.$(IMPLIBEXT)

winsock/libws2_32.$(IMPLIBEXT): winsock/ws2_32.spec $(WINEBUILD)
	@cd winsock && $(MAKE) libws2_32.$(IMPLIBEXT)

wsock32/libwsock32.$(IMPLIBEXT): wsock32/wsock32.spec $(WINEBUILD)
	@cd wsock32 && $(MAKE) libwsock32.$(IMPLIBEXT)

wtsapi32/libwtsapi32.$(IMPLIBEXT): wtsapi32/wtsapi32.spec $(WINEBUILD)
	@cd wtsapi32 && $(MAKE) libwtsapi32.$(IMPLIBEXT)

libcomdlg32.$(IMPLIBEXT): commdlg/libcomdlg32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) commdlg/libcomdlg32.$(IMPLIBEXT) $@

libctl3d32.$(IMPLIBEXT): ctl3d/libctl3d32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) ctl3d/libctl3d32.$(IMPLIBEXT) $@

libgdi32.$(IMPLIBEXT): gdi/libgdi32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) gdi/libgdi32.$(IMPLIBEXT) $@

libkernel32.$(IMPLIBEXT): kernel/libkernel32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) kernel/libkernel32.$(IMPLIBEXT) $@

liblz32.$(IMPLIBEXT): lzexpand/liblz32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) lzexpand/liblz32.$(IMPLIBEXT) $@

libmsacm32.$(IMPLIBEXT): msacm/libmsacm32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) msacm/libmsacm32.$(IMPLIBEXT) $@

libmsvfw32.$(IMPLIBEXT): msvideo/libmsvfw32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) msvideo/libmsvfw32.$(IMPLIBEXT) $@

libolecli32.$(IMPLIBEXT): olecli/libolecli32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) olecli/libolecli32.$(IMPLIBEXT) $@

libolesvr32.$(IMPLIBEXT): olesvr/libolesvr32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) olesvr/libolesvr32.$(IMPLIBEXT) $@

libuser32.$(IMPLIBEXT): user/libuser32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) user/libuser32.$(IMPLIBEXT) $@

libwinnls32.$(IMPLIBEXT): winnls/libwinnls32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) winnls/libwinnls32.$(IMPLIBEXT) $@

libwnaspi32.$(IMPLIBEXT): winaspi/libwnaspi32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) winaspi/libwnaspi32.$(IMPLIBEXT) $@

libws2_32.$(IMPLIBEXT): winsock/libws2_32.$(IMPLIBEXT)
	$(RM) $@ && $(LN_S) winsock/libws2_32.$(IMPLIBEXT) $@

$(BUILDSUBDIRS): $(IMPORT_LIBS)
$(INSTALLSUBDIRS:%=%/__install__) $(INSTALLSUBDIRS:%=%/__install-lib__): $(IMPORT_LIBS)

# Map library name to the corresponding directory

activeds/activeds.dll.so: activeds
advapi32/advapi32.dll.so: advapi32
advpack/advpack.dll.so: advpack
amstream/amstream.dll.so: amstream
atl/atl.dll.so: atl
avicap32/avicap32.dll.so: avicap32
avifil32/avifil32.dll.so: avifil32
cabinet/cabinet.dll.so: cabinet
capi2032/capi2032.dll.so: capi2032
cards/cards.dll.so: cards
cfgmgr32/cfgmgr32.dll.so: cfgmgr32
comcat/comcat.dll.so: comcat
comctl32/comctl32.dll.so: comctl32
commdlg/comdlg32.dll.so: commdlg
crtdll/crtdll.dll.so: crtdll
crypt32/crypt32.dll.so: crypt32
cryptdll/cryptdll.dll.so: cryptdll
ctl3d/ctl3d32.dll.so: ctl3d
d3d8/d3d8.dll.so: d3d8
d3d9/d3d9.dll.so: d3d9
d3dim/d3dim.dll.so: d3dim
d3drm/d3drm.dll.so: d3drm
d3dx8/d3dx8.dll.so: d3dx8
d3dxof/d3dxof.dll.so: d3dxof
dbghelp/dbghelp.dll.so: dbghelp
dciman32/dciman32.dll.so: dciman32
ddraw/ddraw.dll.so: ddraw
devenum/devenum.dll.so: devenum
dinput/dinput.dll.so: dinput
dinput8/dinput8.dll.so: dinput8
dmband/dmband.dll.so: dmband
dmcompos/dmcompos.dll.so: dmcompos
dmime/dmime.dll.so: dmime
dmloader/dmloader.dll.so: dmloader
dmscript/dmscript.dll.so: dmscript
dmstyle/dmstyle.dll.so: dmstyle
dmsynth/dmsynth.dll.so: dmsynth
dmusic/dmusic.dll.so: dmusic
dmusic32/dmusic32.dll.so: dmusic32
dplay/dplay.dll.so: dplay
dplayx/dplayx.dll.so: dplayx
dpnet/dpnet.dll.so: dpnet
dpnhpast/dpnhpast.dll.so: dpnhpast
dsound/dsound.dll.so: dsound
dswave/dswave.dll.so: dswave
dxdiagn/dxdiagn.dll.so: dxdiagn
gdi/gdi32.dll.so: gdi
glu32/glu32.dll.so: glu32
glut32/glut32.dll.so: glut32
hhctrl.ocx/hhctrl.ocx.so: hhctrl.ocx
iccvid/iccvid.dll.so: iccvid
icmp/icmp.dll.so: icmp
ifsmgr.vxd/ifsmgr.vxd.so: ifsmgr.vxd
msacm/imaadp32/imaadp32.acm.so: msacm/imaadp32
imagehlp/imagehlp.dll.so: imagehlp
imm32/imm32.dll.so: imm32
iphlpapi/iphlpapi.dll.so: iphlpapi
itss/itss.dll.so: itss
winmm/joystick/joystick.drv.so: winmm/joystick
kernel/kernel32.dll.so: kernel
lzexpand/lz32.dll.so: lzexpand
mapi32/mapi32.dll.so: mapi32
mciavi32/mciavi32.dll.so: mciavi32
mcicda/mcicda.dll.so: mcicda
mciseq/mciseq.dll.so: mciseq
winmm/mciwave/mciwave.drv.so: winmm/mciwave
midimap/midimap.dll.so: midimap
mlang/mlang.dll.so: mlang
mmdevldr.vxd/mmdevldr.vxd.so: mmdevldr.vxd
monodebg.vxd/monodebg.vxd.so: monodebg.vxd
mpr/mpr.dll.so: mpr
winmm/wavemap/msacm.drv.so: winmm/wavemap
msacm/msacm32.dll.so: msacm
msacm/msadp32/msadp32.acm.so: msacm/msadp32
mscms/mscms.dll.so: mscms
msdmo/msdmo.dll.so: msdmo
msacm/msg711/msg711.acm.so: msacm/msg711
mshtml/mshtml.dll.so: mshtml
msi/msi.dll.so: msi
msimg32/msimg32.dll.so: msimg32
msisys/msisys.ocx.so: msisys
msnet32/msnet32.dll.so: msnet32
msrle32/msrle32.dll.so: msrle32
msvcrt/msvcrt.dll.so: msvcrt
msvcrt20/msvcrt20.dll.so: msvcrt20
msvcrt40/msvcrt40.dll.so: msvcrt40
msvcrtd/msvcrtd.dll.so: msvcrtd
msvideo/msvfw32.dll.so: msvideo
msvidc32/msvidc32.dll.so: msvidc32
mswsock/mswsock.dll.so: mswsock
msxml3/msxml3.dll.so: msxml3
netapi32/netapi32.dll.so: netapi32
newdev/newdev.dll.so: newdev
ntdll/ntdll.dll.so: ntdll
objsel/objsel.dll.so: objsel
odbc32/odbc32.dll.so: odbc32
odbccp32/odbccp32.dll.so: odbccp32
ole32/ole32.dll.so: ole32
oleacc/oleacc.dll.so: oleacc
oleaut32/oleaut32.dll.so: oleaut32
olecli/olecli32.dll.so: olecli
oledlg/oledlg.dll.so: oledlg
olepro32/olepro32.dll.so: olepro32
olesvr/olesvr32.dll.so: olesvr
opengl32/opengl32.dll.so: opengl32
powrprof/powrprof.dll.so: powrprof
psapi/psapi.dll.so: psapi
qcap/qcap.dll.so: qcap
quartz/quartz.dll.so: quartz
rasapi32/rasapi32.dll.so: rasapi32
riched20/riched20.dll.so: riched20
richedit/riched32.dll.so: richedit
rpcrt4/rpcrt4.dll.so: rpcrt4
rsabase/rsabase.dll.so: rsabase
rsaenh/rsaenh.dll.so: rsaenh
secur32/secur32.dll.so: secur32
security/security.dll.so: security
sensapi/sensapi.dll.so: sensapi
serialui/serialui.dll.so: serialui
setupapi/setupapi.dll.so: setupapi
shdocvw/shdocvw.dll.so: shdocvw
shell32/shell32.dll.so: shell32
shfolder/shfolder.dll.so: shfolder
shlwapi/shlwapi.dll.so: shlwapi
snmpapi/snmpapi.dll.so: snmpapi
stdole2.tlb/stdole2.tlb.so: stdole2.tlb
stdole32.tlb/stdole32.tlb.so: stdole32.tlb
sti/sti.dll.so: sti
tapi32/tapi32.dll.so: tapi32
twain/twain_32.dll.so: twain
unicows/unicows.dll.so: unicows
url/url.dll.so: url
urlmon/urlmon.dll.so: urlmon
user/user32.dll.so: user
usp10/usp10.dll.so: usp10
uxtheme/uxtheme.dll.so: uxtheme
vdhcp.vxd/vdhcp.vxd.so: vdhcp.vxd
vdmdbg/vdmdbg.dll.so: vdmdbg
version/version.dll.so: version
vmm.vxd/vmm.vxd.so: vmm.vxd
vnbt.vxd/vnbt.vxd.so: vnbt.vxd
vnetbios.vxd/vnetbios.vxd.so: vnetbios.vxd
vtdapi.vxd/vtdapi.vxd.so: vtdapi.vxd
vwin32.vxd/vwin32.vxd.so: vwin32.vxd
win32s/w32skrnl.dll.so: win32s
winmm/winealsa/winealsa.drv.so: winmm/winealsa
winmm/winearts/winearts.drv.so: winmm/winearts
winmm/wineaudioio/wineaudioio.drv.so: winmm/wineaudioio
wined3d/wined3d.dll.so: wined3d
winedos/winedos.dll.so: winedos
winmm/wineesd/wineesd.drv.so: winmm/wineesd
winmm/winejack/winejack.drv.so: winmm/winejack
msacm/winemp3/winemp3.acm.so: msacm/winemp3
winmm/winenas/winenas.drv.so: winmm/winenas
winmm/wineoss/wineoss.drv.so: winmm/wineoss
wineps/wineps.drv.so: wineps
x11drv/winex11.drv.so: x11drv
wininet/wininet.dll.so: wininet
winmm/winmm.dll.so: winmm
winnls/winnls32.dll.so: winnls
winspool/winspool.drv.so: winspool
wintab32/wintab32.dll.so: wintab32
wintrust/wintrust.dll.so: wintrust
wldap32/wldap32.dll.so: wldap32
winaspi/wnaspi32.dll.so: winaspi
wow32/wow32.dll.so: wow32
winsock/ws2_32.dll.so: winsock
wsock32/wsock32.dll.so: wsock32
wtsapi32/wtsapi32.dll.so: wtsapi32
dxerr8/libdxerr8.a: dxerr8
dxerr9/libdxerr9.a: dxerr9
dxguid/libdxguid.a: dxguid
strmiids/libstrmiids.a: strmiids
uuid/libuuid.a: uuid
winecrt0/libwinecrt0.a: winecrt0

# Rules for auto documentation

$(SUBDIRS:%=%/__man__): dummy
	cd `dirname $@` && $(MAKE) man

man: $(SUBDIRS:%=%/__man__)

$(SUBDIRS:%=%/__doc_html__): dummy
	cd `dirname $@` && $(MAKE) doc-html

doc-html: $(SUBDIRS:%=%/__doc_html__)

$(SUBDIRS:%=%/__doc_sgml__): dummy
	cd `dirname $@` && $(MAKE) doc-sgml

doc-sgml: $(SUBDIRS:%=%/__doc_sgml__)

.PHONY: man doc-html doc-sgml $(SUBDIRS:%=%/__man__) $(SUBDIRS:%=%/__doc_html__) $(SUBDIRS:%=%/__doc_sgml__)

# Misc rules

install-lib:: $(INSTALLSUBDIRS:%=%/__install-lib__)

install-dev:: $(INSTALLSUBDIRS:%=%/__install-dev__)

uninstall::
	-rmdir $(dlldir)

clean::
	$(RM) $(IMPORT_SYMLINKS)

check test:: $(BUILDSUBDIRS:%=%/__test__)

crosstest:: $(BUILDSUBDIRS:%=%/__crosstest__)

checklink:: $(BUILDSUBDIRS:%=%/__checklink__)

### Dependencies: