# Automatically generated by make_dlls; DO NOT EDIT!!

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

# special configure-dependent targets

GLU32FILES = glu32
OPENGLFILES = d3d8 opengl32
XFILES = ddraw x11drv
EXTRADIRS = @GLU32FILES@ @OPENGLFILES@ @XFILES@

# Subdir list

BASEDIRS = \
	advapi32 \
	avicap32 \
	avifil32 \
	comcat \
	comctl32 \
	commdlg \
	crtdll \
	crypt32 \
	dciman32 \
	devenum \
	dinput \
	dinput8 \
	dplay \
	dplayx \
	dsound \
	gdi \
	icmp \
	imagehlp \
	imm32 \
	kernel \
	lzexpand \
	mapi32 \
	mpr \
	msacm \
	msacm/imaadp32 \
	msacm/msadp32 \
	msacm/msg711 \
	msacm/winemp3 \
	msdmo \
	msimg32 \
	msisys \
	msnet32 \
	msvcrt \
	msvcrt20 \
	msvideo \
	msvideo/msrle32 \
	netapi32 \
	ntdll \
	odbc32 \
	ole32 \
	oleaut32 \
	olecli \
	oledlg \
	olepro32 \
	olesvr \
	psapi \
	qcap \
	quartz \
	rasapi32 \
	richedit \
	rpcrt4 \
	serialui \
	setupapi \
	shdocvw \
	shell32 \
	shfolder \
	shlwapi \
	snmpapi \
	sti \
	tapi32 \
	ttydrv \
	twain \
	url \
	urlmon \
	user \
	version \
	win32s \
	winaspi \
	winedos \
	wineps \
	wininet \
	winmm \
	winmm/joystick \
	winmm/mcianim \
	winmm/mciavi \
	winmm/mcicda \
	winmm/mciseq \
	winmm/mciwave \
	winmm/midimap \
	winmm/wavemap \
	winmm/winealsa \
	winmm/winearts \
	winmm/wineaudioio \
	winmm/winenas \
	winmm/wineoss \
	winnls \
	winsock \
	winspool \
	wintrust \
	wow32 \
	wsock32

SUBDIRS = \
	$(BASEDIRS) \
	d3d8 \
	ddraw \
	glu32 \
	opengl32 \
	x11drv

BUILDSUBDIRS = $(BASEDIRS) $(EXTRADIRS)

INSTALLSUBDIRS = $(BUILDSUBDIRS)

# Main target

@MAKE_RULES@

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

all: \
	$(EXTRADIRS:%=%.dll$(DLLEXT)) \
	@WIN16_FILES@ \
	advapi32.dll$(DLLEXT) \
	avicap32.dll$(DLLEXT) \
	avifil32.dll$(DLLEXT) \
	comcat.dll$(DLLEXT) \
	comctl32.dll$(DLLEXT) \
	comdlg32.dll$(DLLEXT) \
	crtdll.dll$(DLLEXT) \
	crypt32.dll$(DLLEXT) \
	dciman32.dll$(DLLEXT) \
	devenum.dll$(DLLEXT) \
	dinput.dll$(DLLEXT) \
	dinput8.dll$(DLLEXT) \
	dplay.dll$(DLLEXT) \
	dplayx.dll$(DLLEXT) \
	dsound.dll$(DLLEXT) \
	gdi32.dll$(DLLEXT) \
	icmp.dll$(DLLEXT) \
	imaadp32.acm$(DLLEXT) \
	imagehlp.dll$(DLLEXT) \
	imm32.dll$(DLLEXT) \
	joystick.drv$(DLLEXT) \
	kernel32.dll$(DLLEXT) \
	lz32.dll$(DLLEXT) \
	mapi32.dll$(DLLEXT) \
	mcianim.drv$(DLLEXT) \
	mciavi.drv$(DLLEXT) \
	mcicda.drv$(DLLEXT) \
	mciseq.drv$(DLLEXT) \
	mciwave.drv$(DLLEXT) \
	midimap.drv$(DLLEXT) \
	mpr.dll$(DLLEXT) \
	msacm.drv$(DLLEXT) \
	msacm32.dll$(DLLEXT) \
	msadp32.acm$(DLLEXT) \
	msdmo.dll$(DLLEXT) \
	msg711.acm$(DLLEXT) \
	msimg32.dll$(DLLEXT) \
	msisys.ocx$(DLLEXT) \
	msnet32.dll$(DLLEXT) \
	msrle32.dll$(DLLEXT) \
	msvcrt.dll$(DLLEXT) \
	msvcrt20.dll$(DLLEXT) \
	msvfw32.dll$(DLLEXT) \
	netapi32.dll$(DLLEXT) \
	ntdll.dll$(DLLEXT) \
	odbc32.dll$(DLLEXT) \
	ole32.dll$(DLLEXT) \
	oleaut32.dll$(DLLEXT) \
	olecli32.dll$(DLLEXT) \
	oledlg.dll$(DLLEXT) \
	olepro32.dll$(DLLEXT) \
	olesvr32.dll$(DLLEXT) \
	psapi.dll$(DLLEXT) \
	qcap.dll$(DLLEXT) \
	quartz.dll$(DLLEXT) \
	rasapi32.dll$(DLLEXT) \
	riched32.dll$(DLLEXT) \
	rpcrt4.dll$(DLLEXT) \
	serialui.dll$(DLLEXT) \
	setupapi.dll$(DLLEXT) \
	shdocvw.dll$(DLLEXT) \
	shell32.dll$(DLLEXT) \
	shfolder.dll$(DLLEXT) \
	shlwapi.dll$(DLLEXT) \
	snmpapi.dll$(DLLEXT) \
	sti.dll$(DLLEXT) \
	tapi32.dll$(DLLEXT) \
	ttydrv.dll$(DLLEXT) \
	twain_32.dll$(DLLEXT) \
	url.dll$(DLLEXT) \
	urlmon.dll$(DLLEXT) \
	user32.dll$(DLLEXT) \
	version.dll$(DLLEXT) \
	w32skrnl.dll$(DLLEXT) \
	winealsa.drv$(DLLEXT) \
	winearts.drv$(DLLEXT) \
	wineaudioio.drv$(DLLEXT) \
	winedos.dll$(DLLEXT) \
	winemp3.acm$(DLLEXT) \
	winenas.drv$(DLLEXT) \
	wineoss.drv$(DLLEXT) \
	wineps.dll$(DLLEXT) \
	wininet.dll$(DLLEXT) \
	winmm.dll$(DLLEXT) \
	winnls32.dll$(DLLEXT) \
	winspool.drv$(DLLEXT) \
	wintrust.dll$(DLLEXT) \
	wnaspi32.dll$(DLLEXT) \
	wow32.dll$(DLLEXT) \
	ws2_32.dll$(DLLEXT) \
	wsock32.dll$(DLLEXT)

# Map symlink name to the corresponding library

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

gdi32.dll$(DLLEXT) dispdib.dll$(DLLEXT) gdi.exe$(DLLEXT) \
  wing.dll$(DLLEXT): gdi/gdi32.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) gdi/gdi32.dll$(DLLEXT) $@

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

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

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

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

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

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

kernel32.dll$(DLLEXT) comm.dll$(DLLEXT) krnl386.exe$(DLLEXT) \
  stress.dll$(DLLEXT) system.dll$(DLLEXT) toolhelp.dll$(DLLEXT) \
  win87em.dll$(DLLEXT) windebug.dll$(DLLEXT) wprocs.dll$(DLLEXT): kernel/kernel32.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) kernel/kernel32.dll$(DLLEXT) $@

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

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

mcianim.drv$(DLLEXT): winmm/mcianim/mcianim.drv$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/mcianim/mcianim.drv$(DLLEXT) $@

mciavi.drv$(DLLEXT): winmm/mciavi/mciavi.drv$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/mciavi/mciavi.drv$(DLLEXT) $@

mcicda.drv$(DLLEXT): winmm/mcicda/mcicda.drv$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/mcicda/mcicda.drv$(DLLEXT) $@

mciseq.drv$(DLLEXT): winmm/mciseq/mciseq.drv$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/mciseq/mciseq.drv$(DLLEXT) $@

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

midimap.drv$(DLLEXT): winmm/midimap/midimap.drv$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/midimap/midimap.drv$(DLLEXT) $@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ttydrv.dll$(DLLEXT): ttydrv/ttydrv.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) ttydrv/ttydrv.dll$(DLLEXT) $@

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

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

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

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

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

w32skrnl.dll$(DLLEXT) w32sys.dll$(DLLEXT) win32s16.dll$(DLLEXT): win32s/w32skrnl.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) win32s/w32skrnl.dll$(DLLEXT) $@

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

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

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

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

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

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

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

wineps.dll$(DLLEXT) wineps16.dll$(DLLEXT): wineps/wineps.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) wineps/wineps.dll$(DLLEXT) $@

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

winmm.dll$(DLLEXT) mmsystem.dll$(DLLEXT) sound.dll$(DLLEXT): winmm/winmm.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) winmm/winmm.dll$(DLLEXT) $@

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

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

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

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

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

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

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

x11drv.dll$(DLLEXT): x11drv/x11drv.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) x11drv/x11drv.dll$(DLLEXT) $@

# Map library name to the corresponding directory

advapi32/advapi32.dll$(DLLEXT): advapi32
avicap32/avicap32.dll$(DLLEXT): avicap32
avifil32/avifil32.dll$(DLLEXT): avifil32
comcat/comcat.dll$(DLLEXT): comcat
comctl32/comctl32.dll$(DLLEXT): comctl32
commdlg/comdlg32.dll$(DLLEXT): commdlg
crtdll/crtdll.dll$(DLLEXT): crtdll
crypt32/crypt32.dll$(DLLEXT): crypt32
d3d8/d3d8.dll$(DLLEXT): d3d8
dciman32/dciman32.dll$(DLLEXT): dciman32
ddraw/ddraw.dll$(DLLEXT): ddraw
devenum/devenum.dll$(DLLEXT): devenum
dinput/dinput.dll$(DLLEXT): dinput
dinput8/dinput8.dll$(DLLEXT): dinput8
dplay/dplay.dll$(DLLEXT): dplay
dplayx/dplayx.dll$(DLLEXT): dplayx
dsound/dsound.dll$(DLLEXT): dsound
gdi/gdi32.dll$(DLLEXT): gdi
glu32/glu32.dll$(DLLEXT): glu32
icmp/icmp.dll$(DLLEXT): icmp
msacm/imaadp32/imaadp32.acm$(DLLEXT): msacm/imaadp32
imagehlp/imagehlp.dll$(DLLEXT): imagehlp
imm32/imm32.dll$(DLLEXT): imm32
winmm/joystick/joystick.drv$(DLLEXT): winmm/joystick
kernel/kernel32.dll$(DLLEXT): kernel
lzexpand/lz32.dll$(DLLEXT): lzexpand
mapi32/mapi32.dll$(DLLEXT): mapi32
winmm/mcianim/mcianim.drv$(DLLEXT): winmm/mcianim
winmm/mciavi/mciavi.drv$(DLLEXT): winmm/mciavi
winmm/mcicda/mcicda.drv$(DLLEXT): winmm/mcicda
winmm/mciseq/mciseq.drv$(DLLEXT): winmm/mciseq
winmm/mciwave/mciwave.drv$(DLLEXT): winmm/mciwave
winmm/midimap/midimap.drv$(DLLEXT): winmm/midimap
mpr/mpr.dll$(DLLEXT): mpr
winmm/wavemap/msacm.drv$(DLLEXT): winmm/wavemap
msacm/msacm32.dll$(DLLEXT): msacm
msacm/msadp32/msadp32.acm$(DLLEXT): msacm/msadp32
msdmo/msdmo.dll$(DLLEXT): msdmo
msacm/msg711/msg711.acm$(DLLEXT): msacm/msg711
msimg32/msimg32.dll$(DLLEXT): msimg32
msisys/msisys.ocx$(DLLEXT): msisys
msnet32/msnet32.dll$(DLLEXT): msnet32
msvideo/msrle32/msrle32.dll$(DLLEXT): msvideo/msrle32
msvcrt/msvcrt.dll$(DLLEXT): msvcrt
msvcrt20/msvcrt20.dll$(DLLEXT): msvcrt20
msvideo/msvfw32.dll$(DLLEXT): msvideo
netapi32/netapi32.dll$(DLLEXT): netapi32
ntdll/ntdll.dll$(DLLEXT): ntdll
odbc32/odbc32.dll$(DLLEXT): odbc32
ole32/ole32.dll$(DLLEXT): ole32
oleaut32/oleaut32.dll$(DLLEXT): oleaut32
olecli/olecli32.dll$(DLLEXT): olecli
oledlg/oledlg.dll$(DLLEXT): oledlg
olepro32/olepro32.dll$(DLLEXT): olepro32
olesvr/olesvr32.dll$(DLLEXT): olesvr
opengl32/opengl32.dll$(DLLEXT): opengl32
psapi/psapi.dll$(DLLEXT): psapi
qcap/qcap.dll$(DLLEXT): qcap
quartz/quartz.dll$(DLLEXT): quartz
rasapi32/rasapi32.dll$(DLLEXT): rasapi32
richedit/riched32.dll$(DLLEXT): richedit
rpcrt4/rpcrt4.dll$(DLLEXT): rpcrt4
serialui/serialui.dll$(DLLEXT): serialui
setupapi/setupapi.dll$(DLLEXT): setupapi
shdocvw/shdocvw.dll$(DLLEXT): shdocvw
shell32/shell32.dll$(DLLEXT): shell32
shfolder/shfolder.dll$(DLLEXT): shfolder
shlwapi/shlwapi.dll$(DLLEXT): shlwapi
snmpapi/snmpapi.dll$(DLLEXT): snmpapi
sti/sti.dll$(DLLEXT): sti
tapi32/tapi32.dll$(DLLEXT): tapi32
ttydrv/ttydrv.dll$(DLLEXT): ttydrv
twain/twain_32.dll$(DLLEXT): twain
url/url.dll$(DLLEXT): url
urlmon/urlmon.dll$(DLLEXT): urlmon
user/user32.dll$(DLLEXT): user
version/version.dll$(DLLEXT): version
win32s/w32skrnl.dll$(DLLEXT): win32s
winmm/winealsa/winealsa.drv$(DLLEXT): winmm/winealsa
winmm/winearts/winearts.drv$(DLLEXT): winmm/winearts
winmm/wineaudioio/wineaudioio.drv$(DLLEXT): winmm/wineaudioio
winedos/winedos.dll$(DLLEXT): winedos
msacm/winemp3/winemp3.acm$(DLLEXT): msacm/winemp3
winmm/winenas/winenas.drv$(DLLEXT): winmm/winenas
winmm/wineoss/wineoss.drv$(DLLEXT): winmm/wineoss
wineps/wineps.dll$(DLLEXT): wineps
wininet/wininet.dll$(DLLEXT): wininet
winmm/winmm.dll$(DLLEXT): winmm
winnls/winnls32.dll$(DLLEXT): winnls
winspool/winspool.drv$(DLLEXT): winspool
wintrust/wintrust.dll$(DLLEXT): wintrust
winaspi/wnaspi32.dll$(DLLEXT): winaspi
wow32/wow32.dll$(DLLEXT): wow32
winsock/ws2_32.dll$(DLLEXT): winsock
wsock32/wsock32.dll$(DLLEXT): wsock32
x11drv/x11drv.dll$(DLLEXT): x11drv

# Install dependencies

advapi32/__install__: advapi32.dll$(DLLEXT)
avicap32/__install__: avicap32.dll$(DLLEXT)
avifil32/__install__: avifil32.dll$(DLLEXT)
comcat/__install__: comcat.dll$(DLLEXT)
comctl32/__install__: comctl32.dll$(DLLEXT)
commdlg/__install__: comdlg32.dll$(DLLEXT)
crtdll/__install__: crtdll.dll$(DLLEXT)
crypt32/__install__: crypt32.dll$(DLLEXT)
d3d8/__install__: d3d8.dll$(DLLEXT)
dciman32/__install__: dciman32.dll$(DLLEXT)
ddraw/__install__: ddraw.dll$(DLLEXT)
devenum/__install__: devenum.dll$(DLLEXT)
dinput/__install__: dinput.dll$(DLLEXT)
dinput8/__install__: dinput8.dll$(DLLEXT)
dplay/__install__: dplay.dll$(DLLEXT)
dplayx/__install__: dplayx.dll$(DLLEXT)
dsound/__install__: dsound.dll$(DLLEXT)
gdi/__install__: gdi32.dll$(DLLEXT)
glu32/__install__: glu32.dll$(DLLEXT)
icmp/__install__: icmp.dll$(DLLEXT)
msacm/imaadp32/__install__: imaadp32.acm$(DLLEXT)
imagehlp/__install__: imagehlp.dll$(DLLEXT)
imm32/__install__: imm32.dll$(DLLEXT)
winmm/joystick/__install__: joystick.drv$(DLLEXT)
kernel/__install__: kernel32.dll$(DLLEXT)
lzexpand/__install__: lz32.dll$(DLLEXT)
mapi32/__install__: mapi32.dll$(DLLEXT)
winmm/mcianim/__install__: mcianim.drv$(DLLEXT)
winmm/mciavi/__install__: mciavi.drv$(DLLEXT)
winmm/mcicda/__install__: mcicda.drv$(DLLEXT)
winmm/mciseq/__install__: mciseq.drv$(DLLEXT)
winmm/mciwave/__install__: mciwave.drv$(DLLEXT)
winmm/midimap/__install__: midimap.drv$(DLLEXT)
mpr/__install__: mpr.dll$(DLLEXT)
winmm/wavemap/__install__: msacm.drv$(DLLEXT)
msacm/__install__: msacm32.dll$(DLLEXT)
msacm/msadp32/__install__: msadp32.acm$(DLLEXT)
msdmo/__install__: msdmo.dll$(DLLEXT)
msacm/msg711/__install__: msg711.acm$(DLLEXT)
msimg32/__install__: msimg32.dll$(DLLEXT)
msisys/__install__: msisys.ocx$(DLLEXT)
msnet32/__install__: msnet32.dll$(DLLEXT)
msvideo/msrle32/__install__: msrle32.dll$(DLLEXT)
msvcrt/__install__: msvcrt.dll$(DLLEXT)
msvcrt20/__install__: msvcrt20.dll$(DLLEXT)
msvideo/__install__: msvfw32.dll$(DLLEXT)
netapi32/__install__: netapi32.dll$(DLLEXT)
ntdll/__install__: ntdll.dll$(DLLEXT)
odbc32/__install__: odbc32.dll$(DLLEXT)
ole32/__install__: ole32.dll$(DLLEXT)
oleaut32/__install__: oleaut32.dll$(DLLEXT)
olecli/__install__: olecli32.dll$(DLLEXT)
oledlg/__install__: oledlg.dll$(DLLEXT)
olepro32/__install__: olepro32.dll$(DLLEXT)
olesvr/__install__: olesvr32.dll$(DLLEXT)
opengl32/__install__: opengl32.dll$(DLLEXT)
psapi/__install__: psapi.dll$(DLLEXT)
qcap/__install__: qcap.dll$(DLLEXT)
quartz/__install__: quartz.dll$(DLLEXT)
rasapi32/__install__: rasapi32.dll$(DLLEXT)
richedit/__install__: riched32.dll$(DLLEXT)
rpcrt4/__install__: rpcrt4.dll$(DLLEXT)
serialui/__install__: serialui.dll$(DLLEXT)
setupapi/__install__: setupapi.dll$(DLLEXT)
shdocvw/__install__: shdocvw.dll$(DLLEXT)
shell32/__install__: shell32.dll$(DLLEXT)
shfolder/__install__: shfolder.dll$(DLLEXT)
shlwapi/__install__: shlwapi.dll$(DLLEXT)
snmpapi/__install__: snmpapi.dll$(DLLEXT)
sti/__install__: sti.dll$(DLLEXT)
tapi32/__install__: tapi32.dll$(DLLEXT)
ttydrv/__install__: ttydrv.dll$(DLLEXT)
twain/__install__: twain_32.dll$(DLLEXT)
url/__install__: url.dll$(DLLEXT)
urlmon/__install__: urlmon.dll$(DLLEXT)
user/__install__: user32.dll$(DLLEXT)
version/__install__: version.dll$(DLLEXT)
win32s/__install__: w32skrnl.dll$(DLLEXT)
winmm/winealsa/__install__: winealsa.drv$(DLLEXT)
winmm/winearts/__install__: winearts.drv$(DLLEXT)
winmm/wineaudioio/__install__: wineaudioio.drv$(DLLEXT)
winedos/__install__: winedos.dll$(DLLEXT)
msacm/winemp3/__install__: winemp3.acm$(DLLEXT)
winmm/winenas/__install__: winenas.drv$(DLLEXT)
winmm/wineoss/__install__: wineoss.drv$(DLLEXT)
wineps/__install__: wineps.dll$(DLLEXT)
wininet/__install__: wininet.dll$(DLLEXT)
winmm/__install__: winmm.dll$(DLLEXT)
winnls/__install__: winnls32.dll$(DLLEXT)
winspool/__install__: winspool.drv$(DLLEXT)
wintrust/__install__: wintrust.dll$(DLLEXT)
winaspi/__install__: wnaspi32.dll$(DLLEXT)
wow32/__install__: wow32.dll$(DLLEXT)
winsock/__install__: ws2_32.dll$(DLLEXT)
wsock32/__install__: wsock32.dll$(DLLEXT)
x11drv/__install__: x11drv.dll$(DLLEXT)

# Inter-dll dependencies

advapi32: kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
avicap32: ntdll.dll$(DLLEXT)
avifil32: msvfw32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
comcat:   ole32.dll$(DLLEXT) user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
comctl32: user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT) \
          winmm.dll$(DLLEXT)
commdlg:  shell32.dll$(DLLEXT) shlwapi.dll$(DLLEXT) comctl32.dll$(DLLEXT) winspool.drv$(DLLEXT) \
          user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
crtdll:   msvcrt.dll$(DLLEXT) kernel32.dll$(DLLEXT)
crypt32:  advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
d3d8:     user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
dciman32: kernel32.dll$(DLLEXT)
ddraw:    user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
devenum:  kernel32.dll$(DLLEXT)
dinput8:  dinput.dll$(DLLEXT)
dinput:   user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
dplay:    dplayx.dll$(DLLEXT)
dplayx:   winmm.dll$(DLLEXT) ole32.dll$(DLLEXT) user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT)
dsound:   winmm.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
gdi:      advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
glu32:    kernel32.dll$(DLLEXT)
icmp:     kernel32.dll$(DLLEXT)
imagehlp: kernel32.dll$(DLLEXT)
imm32:    kernel32.dll$(DLLEXT)
kernel:   ntdll.dll$(DLLEXT) libntdll.dll.$(LIBEXT)
lzexpand: kernel32.dll$(DLLEXT)
mapi32:   kernel32.dll$(DLLEXT)
mpr:      advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msacm/imaadp32: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msacm/msadp32: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msacm/msg711: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msacm/winemp3: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msacm:    winmm.dll$(DLLEXT) user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msdmo:    kernel32.dll$(DLLEXT)
msimg32:  kernel32.dll$(DLLEXT)
msisys:   kernel32.dll$(DLLEXT)
msnet32:  kernel32.dll$(DLLEXT)
msvcrt20: msvcrt.dll$(DLLEXT)
msvcrt:   kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
msvideo/msrle32: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
msvideo:  winmm.dll$(DLLEXT) comctl32.dll$(DLLEXT) version.dll$(DLLEXT) user32.dll$(DLLEXT) \
          gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
netapi32: advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
odbc32:   kernel32.dll$(DLLEXT)
ole32:    advapi32.dll$(DLLEXT) user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) rpcrt4.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
oleaut32: ole32.dll$(DLLEXT) user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT) comctl32.dll$(DLLEXT)
olecli:   ole32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
oledlg:   kernel32.dll$(DLLEXT)
olepro32: oleaut32.dll$(DLLEXT)
olesvr:   kernel32.dll$(DLLEXT)
opengl32: user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
psapi:    kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
qcap:     kernel32.dll$(DLLEXT)
quartz:   kernel32.dll$(DLLEXT)
rasapi32: kernel32.dll$(DLLEXT)
richedit: user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
rpcrt4:   kernel32.dll$(DLLEXT)
serialui: user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
setupapi: user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
shdocvw:  ole32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
shell32:  ole32.dll$(DLLEXT) shlwapi.dll$(DLLEXT) comctl32.dll$(DLLEXT) user32.dll$(DLLEXT) \
          gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
shfolder: shell32.dll$(DLLEXT)
shlwapi:  ole32.dll$(DLLEXT) user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT)
snmpapi:  kernel32.dll$(DLLEXT)
sti:      kernel32.dll$(DLLEXT)
tapi32:   kernel32.dll$(DLLEXT)
ttydrv:   user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
twain:    user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
url:      kernel32.dll$(DLLEXT)
urlmon:   ole32.dll$(DLLEXT) wininet.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
user:     gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
version:  lz32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
win32s:   kernel32.dll$(DLLEXT)
winaspi:  advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winedos:  user32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
wineps:   user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) winspool.drv$(DLLEXT) advapi32.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT)
wininet:  shlwapi.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/joystick: winmm.dll$(DLLEXT) user32.dll$(DLLEXT)
winmm/mcianim: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/mciavi: msvfw32.dll$(DLLEXT) winmm.dll$(DLLEXT) user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) \
          kernel32.dll$(DLLEXT)
winmm/mcicda: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/mciseq: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/mciwave: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/midimap: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/wavemap: msacm32.dll$(DLLEXT) winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/winealsa: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
winmm/winearts: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/wineaudioio: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
winmm/winenas: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm/wineoss: winmm.dll$(DLLEXT) user32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winmm:    user32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
winnls:   kernel32.dll$(DLLEXT)
winsock:  user32.dll$(DLLEXT) kernel32.dll$(DLLEXT) ntdll.dll$(DLLEXT)
winspool: advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
wintrust: kernel32.dll$(DLLEXT)
wow32:    kernel32.dll$(DLLEXT)
wsock32:  ws2_32.dll$(DLLEXT) kernel32.dll$(DLLEXT)
x11drv:   user32.dll$(DLLEXT) gdi32.dll$(DLLEXT) advapi32.dll$(DLLEXT) kernel32.dll$(DLLEXT) \
          ntdll.dll$(DLLEXT)

# Special targets for dlls that we need to link to

LINKABLE_DLLS = ntdll.dll

libntdll.dll.$(LIBEXT): ntdll/ntdll.dll$(DLLEXT)
	$(RM) $@ && $(LN_S) ntdll/ntdll.dll$(DLLEXT) $@

uninstall::
	$(RM) $(LINKABLE_DLLS:%=$(libdir)/lib%.$(LIBEXT))

install::
	$(RM) $(LINKABLE_DLLS:%=$(libdir)/lib%.$(LIBEXT))
	cd $(libdir) && if [ "$(dlldir)" = "$(libdir)/wine" ]; \
	then \
	  $(LN_S) wine/ntdll.dll$(DLLEXT) libntdll.dll.$(LIBEXT); \
	else \
	  $(LN_S) $(dlldir)/ntdll.dll$(DLLEXT) libntdll.dll.$(LIBEXT); \
	fi

# Misc rules

uninstall::
	-rmdir $(dlldir)

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

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

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

### Dependencies:
