shell32: Fix folder icon index when read from registry.
[wine] / dlls / shell32 / Makefile.in
1 EXTRADEFS = -D_SHELL32_ -DCOM_NO_WINDOWS_H
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = shell32.dll
7 IMPORTLIB = libshell32.$(IMPLIBEXT)
8 IMPORTS   = shlwapi comctl32 user32 gdi32 advapi32 kernel32 ntdll
9 DELAYIMPORTS = ole32 oleaut32
10 EXTRALIBS = -luuid $(LIBUNICODE)
11
12 C_SRCS = \
13         authors.c \
14         autocomplete.c \
15         brsfolder.c \
16         changenotify.c \
17         classes.c \
18         clipboard.c \
19         control.c \
20         cpanelfolder.c \
21         dde.c \
22         dataobject.c \
23         debughlp.c \
24         dialogs.c \
25         dragdrophelper.c \
26         enumidlist.c \
27         folders.c \
28         iconcache.c \
29         pidl.c \
30         regsvr.c \
31         shell32_main.c \
32         shelllink.c \
33         shellole.c \
34         shellord.c \
35         shellpath.c \
36         shellreg.c \
37         shellstring.c \
38         shfldr_desktop.c \
39         shfldr_fs.c \
40         shfldr_mycomp.c \
41         shfldr_unixfs.c \
42         shlexec.c \
43         shlfileop.c \
44         shlfolder.c \
45         shlfsbind.c \
46         shlmenu.c \
47         shlview.c \
48         shpolicy.c \
49         shv_bg_cmenu.c \
50         shv_item_cmenu.c \
51         systray.c
52
53 RC_SRCS = shres.rc
54 RC_BINSRC = shres.rc
55 RC_BINARIES = \
56         cdrom.ico \
57         desktop.ico \
58         document.ico \
59         drive.ico \
60         floppy.ico \
61         folder.ico \
62         folder_open.ico \
63         mycomputer.ico \
64         mydocs.ico \
65         netdrive.ico \
66         netdrive2.ico \
67         printer.ico \
68         ramdisk.ico \
69         shortcut.ico
70
71 C_SRCS16  = shell.c
72 RC_SRCS16 = version16.rc
73 SPEC_SRCS16 = shell.spec
74
75 SUBDIRS = tests
76
77 @MAKE_DLL_RULES@
78
79 # Special rules for 16-bit resource files
80
81 version16.res: version16.rc
82         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/version16.rc
83
84 shell.spec.o: shell.spec version16.res
85         $(WINEBUILD) $(WINEBUILDFLAGS) --dll -o $@ --main-module $(MODULE) --res version16.res --export $(SRCDIR)/shell.spec
86
87 authors.c: $(TOPSRCDIR)/AUTHORS
88         (LC_ALL=C; export LC_ALL; echo 'const char * const SHELL_Authors[] = {' && \
89          sed -e '1,2d' -e 's/\(.*\)/  \"\1\",/' $(TOPSRCDIR)/AUTHORS && \
90          echo '  0 };') >$@ || ($(RM) $@ && false)
91
92 depend: authors.c
93
94 clean::
95         $(RM) authors.c
96
97 ### Dependencies: