EXTRADEFS = -D_SHELL32_
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
MODULE    = shell32.dll
# fixme: avoid ole32.dll import
IMPORTS   = ole32 shlwapi comctl32 user32 gdi32 advapi32 kernel32
ALTNAMES  = shell.dll
EXTRALIBS = $(LIBUUID) $(LIBUNICODE)

LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o

C_SRCS = \
	brsfolder.c \
	changenotify.c \
	classes.c \
	clipboard.c \
	control.c \
	dataobject.c \
	debughlp.c \
	dialogs.c \
	dragdrophelper.c \
	enumidlist.c \
	folders.c \
	iconcache.c \
	memorystream.c \
	pidl.c \
	shell.c \
	shell32_main.c \
	shelllink.c \
	shellole.c \
	shellord.c \
	shellpath.c \
	shellreg.c \
	shellstring.c \
	shfldr_desktop.c \
	shfldr_fs.c \
	shfldr_mycomp.c \
	shlexec.c \
	shlfileop.c \
	shlfolder.c \
	shlmenu.c \
	shlview.c \
	shpolicy.c \
	shv_bg_cmenu.c \
	shv_item_cmenu.c \
	systray.c

RC_SRCS= shres.rc
RC_SRCS16 = version16.rc

SUBDIRS = tests

@MAKE_DLL_RULES@

install::
	$(MKINSTALLDIRS) $(bindir)
	$(INSTALL_SCRIPT) $(TOPSRCDIR)/tools/wineshelllink $(bindir)/wineshelllink

uninstall::
	$(RM) $(bindir)/wineshelllink

# Special rules for 16-bit resource files

version16.res: version16.rc
	$(LDPATH) $(WRC) $(DIVINCL) -o $@ -w16 -m -r $(SRCDIR)/version16.rc

shell.spec.c: version16.res

### Dependencies:
