Moved DLLFLAGS to a separate variable instead of including it in
[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 keyboard.dll ddeml.dll display.dll mouse.dll
9 EXTRALIBS = $(LIBUNICODE)
10 DLLMAIN   = UserClientDllInitialize@12
11
12 LDDLLFLAGS = @LDDLLFLAGS@
13 SYMBOLFILE = $(MODULE).tmp.o
14
15 SPEC_SRCS16 = \
16         ddeml.spec \
17         display.spec \
18         keyboard.spec \
19         mouse.spec \
20         user.exe.spec
21
22 C_SRCS = \
23         $(TOPOBJDIR)/controls/button.c \
24         $(TOPOBJDIR)/controls/combo.c \
25         $(TOPOBJDIR)/controls/desktop.c \
26         $(TOPOBJDIR)/controls/edit.c \
27         $(TOPOBJDIR)/controls/icontitle.c \
28         $(TOPOBJDIR)/controls/listbox.c \
29         $(TOPOBJDIR)/controls/menu.c \
30         $(TOPOBJDIR)/controls/scroll.c \
31         $(TOPOBJDIR)/controls/static.c \
32         $(TOPOBJDIR)/controls/uitools.c \
33         $(TOPOBJDIR)/windows/class.c \
34         $(TOPOBJDIR)/windows/clipboard.c \
35         $(TOPOBJDIR)/windows/cursoricon.c \
36         $(TOPOBJDIR)/windows/dce.c \
37         $(TOPOBJDIR)/windows/defdlg.c \
38         $(TOPOBJDIR)/windows/defwnd.c \
39         $(TOPOBJDIR)/windows/dialog.c \
40         $(TOPOBJDIR)/windows/driver.c \
41         $(TOPOBJDIR)/windows/input.c \
42         $(TOPOBJDIR)/windows/keyboard.c \
43         $(TOPOBJDIR)/windows/mdi.c \
44         $(TOPOBJDIR)/windows/message.c \
45         $(TOPOBJDIR)/windows/msgbox.c \
46         $(TOPOBJDIR)/windows/multimon.c \
47         $(TOPOBJDIR)/windows/nonclient.c \
48         $(TOPOBJDIR)/windows/painting.c \
49         $(TOPOBJDIR)/windows/queue.c \
50         $(TOPOBJDIR)/windows/rect.c \
51         $(TOPOBJDIR)/windows/scroll.c \
52         $(TOPOBJDIR)/windows/spy.c \
53         $(TOPOBJDIR)/windows/struct32.c \
54         $(TOPOBJDIR)/windows/syscolor.c \
55         $(TOPOBJDIR)/windows/sysmetrics.c \
56         $(TOPOBJDIR)/windows/sysparams.c \
57         $(TOPOBJDIR)/windows/timer.c \
58         $(TOPOBJDIR)/windows/user.c \
59         $(TOPOBJDIR)/windows/win.c \
60         $(TOPOBJDIR)/windows/winhelp.c \
61         $(TOPOBJDIR)/windows/winpos.c \
62         $(TOPOBJDIR)/windows/winproc.c \
63         cache.c \
64         caret.c \
65         dde/client.c \
66         dde/ddeml16.c \
67         dde/misc.c \
68         dde/server.c \
69         dialog16.c \
70         display.c \
71         exticon.c \
72         focus.c \
73         hook.c \
74         lstr.c \
75         message.c \
76         misc.c \
77         mouse.c \
78         msg16.c \
79         painting.c \
80         property.c \
81         resource.c \
82         text.c \
83         user_main.c \
84         wsprintf.c
85
86 C_SRCS16 = \
87         bidi16.c \
88         comm16.c \
89         hook16.c \
90         network.c \
91         user16.c \
92         wnd16.c
93
94 RC_SRCS = resources/user32.rc
95
96 RC_SRCS16 = \
97         resources/display.rc \
98         resources/mouse.rc \
99         resources/version16.rc
100
101 SUBDIRS = tests
102
103 EXTRASUBDIRS = \
104         $(TOPOBJDIR)/controls \
105         $(TOPOBJDIR)/windows \
106         dde \
107         resources
108
109 @MAKE_DLL_RULES@
110
111 # Special rules for 16-bit resource and spec files
112
113 user.exe.spec.c: user.exe.spec resources/version16.res
114         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --heap 65520 --main-module $(MODULE) --res resources/version16.res --spec $(SRCDIR)/user.exe.spec
115
116 display.spec.c: display.spec resources/display.res
117         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --main-module $(MODULE) --res resources/display.res --spec $(SRCDIR)/display.spec
118
119 mouse.spec.c: mouse.spec resources/mouse.res
120         $(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --main-module $(MODULE) --res resources/mouse.res --spec $(SRCDIR)/mouse.spec
121
122 resources/display.res: resources/display.rc
123         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/display.rc
124
125 resources/mouse.res: resources/mouse.rc
126         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/mouse.rc
127
128 resources/version16.res: resources/version16.rc
129         $(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/version16.rc
130
131 ### Dependencies: