Build most dlls as separate shared libraries.
[wine] / dlls / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5
6 DLLFILES = \
7         avifil32/libavifil32.@LIBEXT@ \
8         comctl32/libcomctl32.@LIBEXT@ \
9         commdlg/libcomdlg32.@LIBEXT@ \
10         dciman32/libdciman32.@LIBEXT@ \
11         dplayx/libdplayx.@LIBEXT@ \
12         dsound/libdsound.@LIBEXT@ \
13         icmp/libicmp.@LIBEXT@ \
14         imagehlp/libimagehlp.@LIBEXT@ \
15         imm32/libimm32.@LIBEXT@ \
16         lzexpand/liblz32.@LIBEXT@ \
17         msacm/libmsacm.@LIBEXT@ \
18         msacm32/libmsacm32.@LIBEXT@ \
19         msnet32/libmsnet32.@LIBEXT@ \
20         msvideo/libmsvfw32.@LIBEXT@ \
21         odbc32/libodbc32.@LIBEXT@ \
22         ole32/libole32.@LIBEXT@ \
23         oleaut32/liboleaut32.@LIBEXT@ \
24         olecli/libolecli32.@LIBEXT@ \
25         oledlg/liboledlg.@LIBEXT@ \
26         olesvr/libolesvr32.@LIBEXT@ \
27         psapi/libpsapi.@LIBEXT@ \
28         rasapi32/librasapi32.@LIBEXT@ \
29         setupx/libsetupx.@LIBEXT@ \
30         shell32/libshell32.@LIBEXT@ \
31         sound/libsound.@LIBEXT@ \
32         stress/libstress.@LIBEXT@ \
33         tapi32/libtapi32.@LIBEXT@ \
34         version/libversion.@LIBEXT@ \
35         win32s/libwin32s.@LIBEXT@ \
36         win87em/libwin87em.@LIBEXT@ \
37         windebug/libwindebug.@LIBEXT@ \
38         wing/libwing.@LIBEXT@ \
39         winmm/mcianim/libmcianim.drv.@LIBEXT@ \
40         winmm/mciavi/libmciavi.drv.@LIBEXT@ \
41         winmm/mcicda/libmcicda.drv.@LIBEXT@ \
42         winmm/mciseq/libmciseq.drv.@LIBEXT@ \
43         winmm/mciwave/libmciwave.drv.@LIBEXT@ \
44         winmm/midimap/libmidimap.drv.@LIBEXT@ \
45         winmm/wavemap/libmsacm.drv.@LIBEXT@ \
46         winmm/wineoss/libwineoss.drv.@LIBEXT@ \
47         winsock/libwsock32.@LIBEXT@ \
48         winspool/libwinspool.@LIBEXT@ \
49         wnaspi32/libwnaspi32.@LIBEXT@
50
51 all: dlls
52
53 @MAKE_RULES@
54
55 dlls: $(DLLS:%=lib%.@LIBEXT@)
56
57 # Map library name to directory
58
59 libavifil32.@LIBEXT@: avifil32/libavifil32.@LIBEXT@
60         $(RM) $@
61         $(LN_S) avifil32/libavifil32.@LIBEXT@ $@
62
63 libcomctl32.@LIBEXT@: comctl32/libcomctl32.@LIBEXT@
64         $(RM) $@
65         $(LN_S) comctl32/libcomctl32.@LIBEXT@ $@
66
67 libcomdlg32.@LIBEXT@: commdlg/libcomdlg32.@LIBEXT@
68         $(RM) $@
69         $(LN_S) commdlg/libcomdlg32.@LIBEXT@ $@
70
71 libdciman32.@LIBEXT@: dciman32/libdciman32.@LIBEXT@
72         $(RM) $@
73         $(LN_S) dciman32/libdciman32.@LIBEXT@ $@
74
75 libdplayx.@LIBEXT@: dplayx/libdplayx.@LIBEXT@
76         $(RM) $@
77         $(LN_S) dplayx/libdplayx.@LIBEXT@ $@
78
79 libdsound.@LIBEXT@: dsound/libdsound.@LIBEXT@
80         $(RM) $@
81         $(LN_S) dsound/libdsound.@LIBEXT@ $@
82
83 libicmp.@LIBEXT@: icmp/libicmp.@LIBEXT@
84         $(RM) $@
85         $(LN_S) icmp/libicmp.@LIBEXT@ $@
86
87 libimagehlp.@LIBEXT@: imagehlp/libimagehlp.@LIBEXT@
88         $(RM) $@
89         $(LN_S) imagehlp/libimagehlp.@LIBEXT@ $@
90
91 libimm32.@LIBEXT@: imm32/libimm32.@LIBEXT@
92         $(RM) $@
93         $(LN_S) imm32/libimm32.@LIBEXT@ $@
94
95 liblz32.@LIBEXT@: lzexpand/liblz32.@LIBEXT@
96         $(RM) $@
97         $(LN_S) lzexpand/liblz32.@LIBEXT@ $@
98
99 libmcianim.drv.@LIBEXT@: winmm/mcianim/libmcianim.drv.@LIBEXT@
100         $(RM) $@
101         $(LN_S) winmm/mcianim/libmcianim.drv.@LIBEXT@ $@
102
103 libmciavi.drv.@LIBEXT@: winmm/mciavi/libmciavi.drv.@LIBEXT@
104         $(RM) $@
105         $(LN_S) winmm/mciavi/libmciavi.drv.@LIBEXT@ $@
106
107 libmcicda.drv.@LIBEXT@: winmm/mcicda/libmcicda.drv.@LIBEXT@
108         $(RM) $@
109         $(LN_S) winmm/mcicda/libmcicda.drv.@LIBEXT@ $@
110
111 libmciseq.drv.@LIBEXT@: winmm/mciseq/libmciseq.drv.@LIBEXT@
112         $(RM) $@
113         $(LN_S) winmm/mciseq/libmciseq.drv.@LIBEXT@ $@
114
115 libmciwave.drv.@LIBEXT@: winmm/mciwave/libmciwave.drv.@LIBEXT@
116         $(RM) $@
117         $(LN_S) winmm/mciwave/libmciwave.drv.@LIBEXT@ $@
118
119 libmidimap.drv.@LIBEXT@: winmm/midimap/libmidimap.drv.@LIBEXT@
120         $(RM) $@
121         $(LN_S) winmm/midimap/libmidimap.drv.@LIBEXT@ $@
122
123 libmsacm.@LIBEXT@: msacm/libmsacm.@LIBEXT@
124         $(RM) $@
125         $(LN_S) msacm/libmsacm.@LIBEXT@ $@
126
127 libmsacm.drv.@LIBEXT@: winmm/wavemap/libmsacm.drv.@LIBEXT@
128         $(RM) $@
129         $(LN_S) winmm/wavemap/libmsacm.drv.@LIBEXT@ $@
130
131 libmsacm32.@LIBEXT@: msacm32/libmsacm32.@LIBEXT@
132         $(RM) $@
133         $(LN_S) msacm32/libmsacm32.@LIBEXT@ $@
134
135 libmsnet32.@LIBEXT@: msnet32/libmsnet32.@LIBEXT@
136         $(RM) $@
137         $(LN_S) msnet32/libmsnet32.@LIBEXT@ $@
138
139 libmsvfw32.@LIBEXT@: msvideo/libmsvfw32.@LIBEXT@
140         $(RM) $@
141         $(LN_S) msvideo/libmsvfw32.@LIBEXT@ $@
142
143 libodbc32.@LIBEXT@: odbc32/libodbc32.@LIBEXT@
144         $(RM) $@
145         $(LN_S) odbc32/libodbc32.@LIBEXT@ $@
146
147 libole32.@LIBEXT@: ole32/libole32.@LIBEXT@
148         $(RM) $@
149         $(LN_S) ole32/libole32.@LIBEXT@ $@
150
151 liboleaut32.@LIBEXT@: oleaut32/liboleaut32.@LIBEXT@
152         $(RM) $@
153         $(LN_S) oleaut32/liboleaut32.@LIBEXT@ $@
154
155 libolecli32.@LIBEXT@: olecli/libolecli32.@LIBEXT@
156         $(RM) $@
157         $(LN_S) olecli/libolecli32.@LIBEXT@ $@
158
159 liboledlg.@LIBEXT@: oledlg/liboledlg.@LIBEXT@
160         $(RM) $@
161         $(LN_S) oledlg/liboledlg.@LIBEXT@ $@
162
163 libolesvr32.@LIBEXT@: olesvr/libolesvr32.@LIBEXT@
164         $(RM) $@
165         $(LN_S) olesvr/libolesvr32.@LIBEXT@ $@
166
167 libpsapi.@LIBEXT@: psapi/libpsapi.@LIBEXT@
168         $(RM) $@
169         $(LN_S) psapi/libpsapi.@LIBEXT@ $@
170
171 librasapi32.@LIBEXT@: rasapi32/librasapi32.@LIBEXT@
172         $(RM) $@
173         $(LN_S) rasapi32/librasapi32.@LIBEXT@ $@
174
175 libsetupx.@LIBEXT@: setupx/libsetupx.@LIBEXT@
176         $(RM) $@
177         $(LN_S) setupx/libsetupx.@LIBEXT@ $@
178
179 libshell32.@LIBEXT@: shell32/libshell32.@LIBEXT@
180         $(RM) $@
181         $(LN_S) shell32/libshell32.@LIBEXT@ $@
182
183 libsound.@LIBEXT@: sound/libsound.@LIBEXT@
184         $(RM) $@
185         $(LN_S) sound/libsound.@LIBEXT@ $@
186
187 libstress.@LIBEXT@: stress/libstress.@LIBEXT@
188         $(RM) $@
189         $(LN_S) stress/libstress.@LIBEXT@ $@
190
191 libtapi32.@LIBEXT@: tapi32/libtapi32.@LIBEXT@
192         $(RM) $@
193         $(LN_S) tapi32/libtapi32.@LIBEXT@ $@
194
195 libversion.@LIBEXT@: version/libversion.@LIBEXT@
196         $(RM) $@
197         $(LN_S) version/libversion.@LIBEXT@ $@
198
199 libwin32s.@LIBEXT@: win32s/libwin32s.@LIBEXT@
200         $(RM) $@
201         $(LN_S) win32s/libwin32s.@LIBEXT@ $@
202
203 libwin87em.@LIBEXT@: win87em/libwin87em.@LIBEXT@
204         $(RM) $@
205         $(LN_S) win87em/libwin87em.@LIBEXT@ $@
206
207 libwindebug.@LIBEXT@: windebug/libwindebug.@LIBEXT@
208         $(RM) $@
209         $(LN_S) windebug/libwindebug.@LIBEXT@ $@
210
211 libwineoss.drv.@LIBEXT@: winmm/wineoss/libwineoss.drv.@LIBEXT@
212         $(RM) $@
213         $(LN_S) winmm/wineoss/libwineoss.drv.@LIBEXT@ $@
214
215 libwing.@LIBEXT@: wing/libwing.@LIBEXT@
216         $(RM) $@
217         $(LN_S) wing/libwing.@LIBEXT@ $@
218
219 libwinspool.@LIBEXT@: winspool/libwinspool.@LIBEXT@
220         $(RM) $@
221         $(LN_S) winspool/libwinspool.@LIBEXT@ $@
222
223 libwnaspi32.@LIBEXT@: wnaspi32/libwnaspi32.@LIBEXT@
224         $(RM) $@
225         $(LN_S) wnaspi32/libwnaspi32.@LIBEXT@ $@
226
227 libwsock32.@LIBEXT@: winsock/libwsock32.@LIBEXT@
228         $(RM) $@
229         $(LN_S) winsock/libwsock32.@LIBEXT@ $@
230
231 $(DLLFILES): dummy
232         @cd `dirname $@` && $(MAKE)
233
234 $(DLLFILES:%=%_depend_): dummy
235         @cd `dirname $@` && $(MAKE) depend
236
237 $(DLLFILES:%=%_install_): dummy
238         @cd `dirname $@` && $(MAKE) install
239
240 $(DLLFILES:%=%_uninstall_): dummy
241         @cd `dirname $@` && $(MAKE) uninstall
242
243 $(DLLFILES:%=%_checklink_): dummy
244         @cd `dirname $@` && $(MAKE) checklink
245
246 $(DLLFILES:%=%_clean_): dummy
247         @cd `dirname $@` && $(MAKE) clean
248
249 depend:: $(DLLFILES:%=%_depend_)
250
251 install:: $(DLLFILES:%=%_install_)
252
253 uninstall:: $(DLLFILES:%=%_uninstall_)
254
255 checklink:: $(DLLFILES:%=%_checklink_)
256
257 clean:: $(DLLFILES:%=%_clean_)
258         $(RM) $(DLLLIBS)