Use the standard DllMain entry point.
[wine] / dlls / user / Makefile.in
1 EXTRADEFS = -D_USER32_ -D_WINABLE_
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = user32.dll
7 IMPORTS   = gdi32 advapi32 kernel32 ntdll
8 ALTNAMES  = user.exe ddeml.dll display.drv keyboard.drv mouse.drv
9 EXTRALIBS = $(LIBUNICODE)
10
11 LDDLLFLAGS = @LDDLLFLAGS@
12 SYMBOLFILE = $(MODULE).tmp.o
13
14 SPEC_SRCS16 = \
15         ddeml.spec \
16         display.drv.spec \
17         keyboard.drv.spec \
18         mouse.drv.spec \
19         user.exe.spec
20
21 C_SRCS = \
22         $(TOPOBJDIR)/controls/button.c \
23         $(TOPOBJDIR)/controls/combo.c \
24         $(TOPOBJDIR)/controls/desktop.c \
25         $(TOPOBJDIR)/controls/edit.c \
26         $(TOPOBJDIR)/controls/icontitle.c \
27         $(TOPOBJDIR)/controls/listbox.c \
28         $(TOPOBJDIR)/controls/menu.c \
29         $(TOPOBJDIR)/controls/scroll.c \
30         $(TOPOBJDIR)/controls/static.c \
31         $(TOPOBJDIR)/controls/uitools.c \
32         $(TOPOBJDIR)/windows/class.c \
33         $(TOPOBJDIR)/windows/clipboard.c \
34         $(TOPOBJDIR)/windows/cursoricon.c \
35         $(TOPOBJDIR)/windows/dce.c \
36         $(TOPOBJDIR)/windows/defdlg.c \
37         $(TOPOBJDIR)/windows/defwnd.c \
38         $(TOPOBJDIR)/windows/dialog.c \
39         $(TOPOBJDIR)/windows/driver.c \
40         $(TOPOBJDIR)/windows/input.c \
41         $(TOPOBJDIR)/windows/keyboard.c \
42         $(TOPOBJDIR)/windows/mdi.c \
43         $(TOPOBJDIR)/windows/message.c \
44         $(TOPOBJDIR)/windows/msgbox.c \
45         $(TOPOBJDIR)/windows/multimon.c \
46         $(TOPOBJDIR)/windows/nonclient.c \
47         $(TOPOBJDIR)/windows/painting.c \
48         $(TOPOBJDIR)/windows/queue.c \
49         $(TOPOBJDIR)/windows/rect.c \
50         $(TOPOBJDIR)/windows/scroll.c \
51         $(TOPOBJDIR)/windows/spy.c \
52         $(TOPOBJDIR)/windows/struct32.c \
53         $(TOPOBJDIR)/windows/syscolor.c \
54         $(TOPOBJDIR)/windows/sysmetrics.c \
55         $(TOPOBJDIR)/windows/sysparams.c \
56         $(TOPOBJDIR)/windows/timer.c \
57         $(TOPOBJDIR)/windows/user.c \
58         $(TOPOBJDIR)/windows/win.c \
59         $(TOPOBJDIR)/windows/winhelp.c \
60         $(TOPOBJDIR)/windows/winpos.c \
61         $(TOPOBJDIR)/windows/winproc.c \
62         cache.c \
63         caret.c \
64         dde/client.c \
65         dde/ddeml16.c \
66         dde/misc.c \
67         dde/server.c \
68         dialog16.c \
69         display.c \
70         exticon.c \
71         focus.c \
72         hook.c \
73         lstr.c \
74         message.c \
75         misc.c \
76         mouse.c \
77         msg16.c \
78         painting.c \
79         property.c \
80         resource.c \
81         text.c \
82         user_main.c \
83         wsprintf.c
84
85 C_SRCS16 = \
86         bidi16.c \
87         comm16.c \
88         hook16.c \
89         network.c \
90         user16.c \
91         wnd16.c
92
93 RC_SRCS = resources/user32.rc
94
95 RC_BINSRC = resources/user32_bin.rc
96 RC_BINARIES = \
97         resources/obm_btncorners.bmp \
98         resources/obm_btsize.bmp \
99         resources/obm_check.bmp \
100         resources/obm_checkboxes.bmp \
101         resources/obm_close.bmp \
102         resources/obm_combo.bmp \
103         resources/obm_dnarrow.bmp \
104         resources/obm_dnarrowd.bmp \
105         resources/obm_dnarrowi.bmp \
106         resources/obm_lfarrow.bmp \
107         resources/obm_lfarrowd.bmp \
108         resources/obm_lfarrowi.bmp \
109         resources/obm_mnarrow.bmp \
110         resources/obm_old_close.bmp \
111         resources/obm_old_dnarrow.bmp \
112         resources/obm_old_lfarrow.bmp \
113         resources/obm_old_reduce.bmp \
114         resources/obm_old_restore.bmp \
115         resources/obm_old_rgarrow.bmp \
116         resources/obm_old_uparrow.bmp \
117         resources/obm_old_zoom.bmp \
118         resources/obm_reduce.bmp \
119         resources/obm_reduced.bmp \
120         resources/obm_restore.bmp \
121         resources/obm_restored.bmp \
122         resources/obm_rgarrow.bmp \
123         resources/obm_rgarrowd.bmp \
124         resources/obm_rgarrowi.bmp \
125         resources/obm_size.bmp \
126         resources/obm_trtype.bmp \
127         resources/obm_uparrow.bmp \
128         resources/obm_uparrowd.bmp \
129         resources/obm_uparrowi.bmp \
130         resources/obm_zoom.bmp \
131         resources/obm_zoomd.bmp \
132         resources/ocr_appstarting.cur \
133         resources/ocr_cross.cur \
134         resources/ocr_dragobject.cur \
135         resources/ocr_hand.cur \
136         resources/ocr_help.cur \
137         resources/ocr_ibeam.cur \
138         resources/ocr_icon.cur \
139         resources/ocr_no.cur \
140         resources/ocr_normal.cur \
141         resources/ocr_size.cur \
142         resources/ocr_sizeall.cur \
143         resources/ocr_sizenesw.cur \
144         resources/ocr_sizens.cur \
145         resources/ocr_sizenwse.cur \
146         resources/ocr_sizewe.cur \
147         resources/ocr_up.cur \
148         resources/ocr_wait.cur \
149         resources/oic_bang.ico \
150         resources/oic_hand.ico \
151         resources/oic_note.ico \
152         resources/oic_ques.ico \
153         resources/oic_sample.ico \
154         resources/oic_winlogo.ico
155
156 RC_SRCS16 = \
157         resources/display.rc \
158         resources/mouse.rc \
159         resources/version16.rc
160
161 SUBDIRS = tests
162
163 EXTRASUBDIRS = \
164         $(TOPOBJDIR)/controls \
165         $(TOPOBJDIR)/windows \
166         dde \
167         resources
168
169 @MAKE_DLL_RULES@
170
171 # Special rules for 16-bit resource and spec files
172
173 user.exe.spec.c: user.exe.spec resources/version16.res
174         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --heap 65520 --main-module $(MODULE) --res resources/version16.res --spec $(SRCDIR)/user.exe.spec
175
176 display.drv.spec.c: display.drv.spec resources/display.res
177         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --main-module $(MODULE) --res resources/display.res --spec $(SRCDIR)/display.drv.spec
178
179 mouse.drv.spec.c: mouse.drv.spec resources/mouse.res
180         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --main-module $(MODULE) --res resources/mouse.res --spec $(SRCDIR)/mouse.drv.spec
181
182 resources/display.res: resources/display.rc
183         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/display.rc
184
185 resources/mouse.res: resources/mouse.rc
186         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/mouse.rc
187
188 resources/version16.res: resources/version16.rc
189         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/version16.rc
190
191 ### Dependencies: