Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
[gd/samba-autobuild/.git] / source3 / lib / netapi / examples / Makefile.in
1 GTK_FLAGS=`pkg-config gtk+-2.0 --cflags`
2 GTK_LIBS=`pkg-config gtk+-2.0 --libs`
3
4 KRB5LIBS=@KRB5_LIBS@
5 LDAP_LIBS=@LDAP_LIBS@
6 LIBS=@LIBS@ -lnetapi -ltdb -ltalloc
7 DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
8 CCFLAGS=-I../ -L../../../bin @CFLAGS@ $(GTK_FLAGS)
9 CC=@CC@
10 PICFLAG=@PICFLAG@
11 LDFLAGS=@PIE_LDFLAGS@ @LDFLAGS@
12 DYNEXP=@DYNEXP@
13 NETAPI_LIBS=$(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
14 CMDLINE_LIBS=$(NETAPI_LIBS) @POPTLIBS@
15
16 # Compile a source file.
17 COMPILE_CC = $(CC) -I. $(CCFLAGS) $(PICFLAG) -c $< -o $@
18 COMPILE = $(COMPILE_CC)
19
20 PROGS = bin/getdc@EXEEXT@ \
21         bin/dsgetdc@EXEEXT@ \
22         bin/netdomjoin@EXEEXT@ \
23         bin/netdomjoin-gui@EXEEXT@ \
24         bin/getjoinableous@EXEEXT@ \
25         bin/getjoininformation@EXEEXT@ \
26         bin/rename_machine@EXEEXT@ \
27         bin/user_add@EXEEXT@ \
28         bin/user_del@EXEEXT@ \
29         bin/user_enum@EXEEXT@ \
30         bin/user_dispinfo@EXEEXT@ \
31         bin/user_chgpwd@EXEEXT@ \
32         bin/user_getinfo@EXEEXT@ \
33         bin/user_setinfo@EXEEXT@ \
34         bin/user_modalsget@EXEEXT@ \
35         bin/user_modalsset@EXEEXT@ \
36         bin/user_getgroups@EXEEXT@ \
37         bin/user_setgroups@EXEEXT@ \
38         bin/user_getlocalgroups@EXEEXT@ \
39         bin/group_add@EXEEXT@ \
40         bin/group_del@EXEEXT@ \
41         bin/group_enum@EXEEXT@ \
42         bin/group_setinfo@EXEEXT@ \
43         bin/group_getinfo@EXEEXT@ \
44         bin/group_adduser@EXEEXT@ \
45         bin/group_deluser@EXEEXT@ \
46         bin/group_getusers@EXEEXT@ \
47         bin/group_setusers@EXEEXT@ \
48         bin/localgroup_add@EXEEXT@ \
49         bin/localgroup_del@EXEEXT@ \
50         bin/localgroup_getinfo@EXEEXT@ \
51         bin/localgroup_setinfo@EXEEXT@ \
52         bin/localgroup_enum@EXEEXT@ \
53         bin/localgroup_addmembers@EXEEXT@ \
54         bin/localgroup_delmembers@EXEEXT@ \
55         bin/localgroup_setmembers@EXEEXT@ \
56         bin/localgroup_getmembers@EXEEXT@ \
57         bin/remote_tod@EXEEXT@ \
58         bin/server_getinfo@EXEEXT@ \
59         bin/share_add@EXEEXT@ \
60         bin/share_del@EXEEXT@ \
61         bin/share_enum@EXEEXT@ \
62         bin/share_getinfo@EXEEXT@ \
63         bin/share_setinfo@EXEEXT@ \
64         bin/file_close@EXEEXT@ \
65         bin/file_getinfo@EXEEXT@ \
66         bin/file_enum@EXEEXT@ \
67         bin/shutdown_init@EXEEXT@ \
68         bin/shutdown_abort@EXEEXT@ \
69         bin/netlogon_control@EXEEXT@ \
70         bin/netlogon_control2@EXEEXT@ \
71         bin/nltest@EXEEXT@
72
73 all: $(PROGS)
74
75 MAKEDIR = || exec false; \
76           if test -d "$$dir"; then :; else \
77           echo mkdir "$$dir"; \
78           mkdir -p "$$dir" >/dev/null 2>&1 || \
79           test -d "$$dir" || \
80           mkdir "$$dir" || \
81           exec false; fi || exec false
82
83 BINARY_PREREQS = bin/.dummy
84
85 bin/.dummy:
86         @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
87           dir=bin $(MAKEDIR); fi
88         @: >> $@ || : > $@ # what a fancy emoticon!
89
90 .c.o:
91         @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
92          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
93         @echo Compiling $*.c
94         @$(COMPILE) && exit 0;\
95                 echo "The following command failed:" 1>&2;\
96                 echo "$(COMPILE_CC)" 1>&2;\
97                 $(COMPILE_CC) >/dev/null 2>&1
98
99 CMDLINE_OBJ = common.o
100 GETDC_OBJ = getdc/getdc.o $(CMDLINE_OBJ)
101 DSGETDC_OBJ = dsgetdc/dsgetdc.o $(CMDLINE_OBJ)
102 NETDOMJOIN_OBJ = join/netdomjoin.o $(CMDLINE_OBJ)
103 NETDOMJOIN_GUI_OBJ = netdomjoin-gui/netdomjoin-gui.o
104 GETJOINABLEOUS_OBJ = join/getjoinableous.o $(CMDLINE_OBJ)
105 GETJOININFORMATION_OBJ = join/getjoininformation.o $(CMDLINE_OBJ)
106 RENAMEMACHINE_OBJ = join/rename_machine.o $(CMDLINE_OBJ)
107 USERADD_OBJ = user/user_add.o $(CMDLINE_OBJ)
108 USERDEL_OBJ = user/user_del.o $(CMDLINE_OBJ)
109 USERENUM_OBJ = user/user_enum.o $(CMDLINE_OBJ)
110 USERDISPINFO_OBJ = user/user_dispinfo.o $(CMDLINE_OBJ)
111 USERCHGPWD_OBJ = user/user_chgpwd.o $(CMDLINE_OBJ)
112 USERGETINFO_OBJ = user/user_getinfo.o $(CMDLINE_OBJ)
113 USERSETINFO_OBJ = user/user_setinfo.o $(CMDLINE_OBJ)
114 USERMODALSGET_OBJ = user/user_modalsget.o $(CMDLINE_OBJ)
115 USERMODALSSET_OBJ = user/user_modalsset.o $(CMDLINE_OBJ)
116 USERGETGROUPS_OBJ = user/user_getgroups.o $(CMDLINE_OBJ)
117 USERSETGROUPS_OBJ = user/user_setgroups.o $(CMDLINE_OBJ)
118 USERGETLOCALGROUPS_OBJ = user/user_getlocalgroups.o $(CMDLINE_OBJ)
119 GROUPADD_OBJ = group/group_add.o $(CMDLINE_OBJ)
120 GROUPDEL_OBJ = group/group_del.o $(CMDLINE_OBJ)
121 GROUPENUM_OBJ = group/group_enum.o $(CMDLINE_OBJ)
122 GROUPSETINFO_OBJ = group/group_setinfo.o $(CMDLINE_OBJ)
123 GROUPGETINFO_OBJ = group/group_getinfo.o $(CMDLINE_OBJ)
124 GROUPADDUSER_OBJ = group/group_adduser.o $(CMDLINE_OBJ)
125 GROUPDELUSER_OBJ = group/group_deluser.o $(CMDLINE_OBJ)
126 GROUPGETUSERS_OBJ = group/group_getusers.o $(CMDLINE_OBJ)
127 GROUPSETUSERS_OBJ = group/group_setusers.o $(CMDLINE_OBJ)
128 LOCALGROUPADD_OBJ = localgroup/localgroup_add.o $(CMDLINE_OBJ)
129 LOCALGROUPDEL_OBJ = localgroup/localgroup_del.o $(CMDLINE_OBJ)
130 LOCALGROUPGETINFO_OBJ = localgroup/localgroup_getinfo.o $(CMDLINE_OBJ)
131 LOCALGROUPSETINFO_OBJ = localgroup/localgroup_setinfo.o $(CMDLINE_OBJ)
132 LOCALGROUPENUM_OBJ = localgroup/localgroup_enum.o $(CMDLINE_OBJ)
133 LOCALGROUPADDMEMBERS_OBJ = localgroup/localgroup_addmembers.o $(CMDLINE_OBJ)
134 LOCALGROUPDELMEMBERS_OBJ = localgroup/localgroup_delmembers.o $(CMDLINE_OBJ)
135 LOCALGROUPSETMEMBERS_OBJ = localgroup/localgroup_setmembers.o $(CMDLINE_OBJ)
136 LOCALGROUPGETMEMBERS_OBJ = localgroup/localgroup_getmembers.o $(CMDLINE_OBJ)
137 REMOTETOD_OBJ = server/remote_tod.o $(CMDLINE_OBJ)
138 SERVERGETINFO_OBJ = server/server_getinfo.o $(CMDLINE_OBJ)
139 SHAREADD_OBJ = share/share_add.o $(CMDLINE_OBJ)
140 SHAREDEL_OBJ = share/share_del.o $(CMDLINE_OBJ)
141 SHAREENUM_OBJ = share/share_enum.o $(CMDLINE_OBJ)
142 SHAREGETINFO_OBJ = share/share_getinfo.o $(CMDLINE_OBJ)
143 SHARESETINFO_OBJ = share/share_setinfo.o $(CMDLINE_OBJ)
144 FILECLOSE_OBJ = file/file_close.o $(CMDLINE_OBJ)
145 FILEGETINFO_OBJ = file/file_getinfo.o $(CMDLINE_OBJ)
146 FILEENUM_OBJ = file/file_enum.o $(CMDLINE_OBJ)
147 SHUTDOWNINIT_OBJ = shutdown/shutdown_init.o $(CMDLINE_OBJ)
148 SHUTDOWNABORT_OBJ = shutdown/shutdown_abort.o $(CMDLINE_OBJ)
149 NETLOGONCONTROL_OBJ = netlogon/netlogon_control.o $(CMDLINE_OBJ)
150 NETLOGONCONTROL2_OBJ = netlogon/netlogon_control2.o $(CMDLINE_OBJ)
151 NLTEST_OBJ = netlogon/nltest.o $(CMDLINE_OBJ)
152
153 bin/getdc@EXEEXT@: $(BINARY_PREREQS) $(GETDC_OBJ)
154         @echo Linking $@
155         @$(CC) $(CCFLAGS) -o $@ $(GETDC_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
156
157 bin/dsgetdc@EXEEXT@: $(BINARY_PREREQS) $(DSGETDC_OBJ)
158         @echo Linking $@
159         @$(CC) $(CCFLAGS) -o $@ $(DSGETDC_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
160
161 bin/getjoinableous@EXEEXT@: $(BINARY_PREREQS) $(GETJOINABLEOUS_OBJ)
162         @echo Linking $@
163         @$(CC) $(CCFLAGS) -o $@ $(GETJOINABLEOUS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
164
165 bin/getjoininformation@EXEEXT@: $(BINARY_PREREQS) $(GETJOININFORMATION_OBJ)
166         @echo Linking $@
167         @$(CC) $(CCFLAGS) -o $@ $(GETJOININFORMATION_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
168
169 bin/rename_machine@EXEEXT@: $(BINARY_PREREQS) $(RENAMEMACHINE_OBJ)
170         @echo Linking $@
171         @$(CC) $(CCFLAGS) -o $@ $(RENAMEMACHINE_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
172
173 bin/netdomjoin@EXEEXT@: $(BINARY_PREREQS) $(NETDOMJOIN_OBJ)
174         @echo Linking $@
175         @$(CC) $(CCFLAGS) -o $@ $(NETDOMJOIN_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
176
177 bin/netdomjoin-gui@EXEEXT@: $(BINARY_PREREQS) $(NETDOMJOIN_GUI_OBJ)
178         @echo Linking $@
179         @$(CC) $(CCFLAGS) $(GTK_FLAGS) -o $@ $(NETDOMJOIN_GUI_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(GTK_LIBS)
180
181 bin/user_add@EXEEXT@: $(BINARY_PREREQS) $(USERADD_OBJ)
182         @echo Linking $@
183         @$(CC) $(CCFLAGS) -o $@ $(USERADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
184
185 bin/user_del@EXEEXT@: $(BINARY_PREREQS) $(USERDEL_OBJ)
186         @echo Linking $@
187         @$(CC) $(CCFLAGS) -o $@ $(USERDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
188
189 bin/user_enum@EXEEXT@: $(BINARY_PREREQS) $(USERENUM_OBJ)
190         @echo Linking $@
191         @$(CC) $(CCFLAGS) -o $@ $(USERENUM_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
192
193 bin/user_dispinfo@EXEEXT@: $(BINARY_PREREQS) $(USERDISPINFO_OBJ)
194         @echo Linking $@
195         @$(CC) $(CCFLAGS) -o $@ $(USERDISPINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
196
197 bin/user_chgpwd@EXEEXT@: $(BINARY_PREREQS) $(USERCHGPWD_OBJ)
198         @echo Linking $@
199         @$(CC) $(CCFLAGS) -o $@ $(USERCHGPWD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
200
201 bin/user_getinfo@EXEEXT@: $(BINARY_PREREQS) $(USERGETINFO_OBJ)
202         @echo Linking $@
203         @$(CC) $(CCFLAGS) -o $@ $(USERGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
204
205 bin/user_setinfo@EXEEXT@: $(BINARY_PREREQS) $(USERSETINFO_OBJ)
206         @echo Linking $@
207         @$(CC) $(CCFLAGS) -o $@ $(USERSETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
208
209 bin/user_modalsget@EXEEXT@: $(BINARY_PREREQS) $(USERMODALSGET_OBJ)
210         @echo Linking $@
211         @$(CC) $(CCFLAGS) -o $@ $(USERMODALSGET_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
212
213 bin/user_modalsset@EXEEXT@: $(BINARY_PREREQS) $(USERMODALSSET_OBJ)
214         @echo Linking $@
215         @$(CC) $(CCFLAGS) -o $@ $(USERMODALSSET_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
216
217 bin/user_getgroups@EXEEXT@: $(BINARY_PREREQS) $(USERGETGROUPS_OBJ)
218         @echo Linking $@
219         @$(CC) $(CCFLAGS) -o $@ $(USERGETGROUPS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
220
221 bin/user_setgroups@EXEEXT@: $(BINARY_PREREQS) $(USERSETGROUPS_OBJ)
222         @echo Linking $@
223         @$(CC) $(CCFLAGS) -o $@ $(USERSETGROUPS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
224
225 bin/user_getlocalgroups@EXEEXT@: $(BINARY_PREREQS) $(USERGETLOCALGROUPS_OBJ)
226         @echo Linking $@
227         @$(CC) $(CCFLAGS) -o $@ $(USERGETLOCALGROUPS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
228
229 bin/group_add@EXEEXT@: $(BINARY_PREREQS) $(GROUPADD_OBJ)
230         @echo Linking $@
231         @$(CC) $(CCFLAGS) -o $@ $(GROUPADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
232
233 bin/group_del@EXEEXT@: $(BINARY_PREREQS) $(GROUPDEL_OBJ)
234         @echo Linking $@
235         @$(CC) $(CCFLAGS) -o $@ $(GROUPDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
236
237 bin/group_enum@EXEEXT@: $(BINARY_PREREQS) $(GROUPENUM_OBJ)
238         @echo Linking $@
239         @$(CC) $(CCFLAGS) -o $@ $(GROUPENUM_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
240
241 bin/group_setinfo@EXEEXT@: $(BINARY_PREREQS) $(GROUPSETINFO_OBJ)
242         @echo Linking $@
243         @$(CC) $(CCFLAGS) -o $@ $(GROUPSETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
244
245 bin/group_getinfo@EXEEXT@: $(BINARY_PREREQS) $(GROUPGETINFO_OBJ)
246         @echo Linking $@
247         @$(CC) $(CCFLAGS) -o $@ $(GROUPGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
248
249 bin/group_adduser@EXEEXT@: $(BINARY_PREREQS) $(GROUPADDUSER_OBJ)
250         @echo Linking $@
251         @$(CC) $(CCFLAGS) -o $@ $(GROUPADDUSER_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
252
253 bin/group_deluser@EXEEXT@: $(BINARY_PREREQS) $(GROUPDELUSER_OBJ)
254         @echo Linking $@
255         @$(CC) $(CCFLAGS) -o $@ $(GROUPDELUSER_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
256
257 bin/group_getusers@EXEEXT@: $(BINARY_PREREQS) $(GROUPGETUSERS_OBJ)
258         @echo Linking $@
259         @$(CC) $(CCFLAGS) -o $@ $(GROUPGETUSERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
260
261 bin/group_setusers@EXEEXT@: $(BINARY_PREREQS) $(GROUPSETUSERS_OBJ)
262         @echo Linking $@
263         @$(CC) $(CCFLAGS) -o $@ $(GROUPSETUSERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
264
265 bin/localgroup_add@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPADD_OBJ)
266         @echo Linking $@
267         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
268
269 bin/localgroup_del@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPDEL_OBJ)
270         @echo Linking $@
271         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
272
273 bin/localgroup_getinfo@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPGETINFO_OBJ)
274         @echo Linking $@
275         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
276
277 bin/localgroup_setinfo@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPSETINFO_OBJ)
278         @echo Linking $@
279         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPSETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
280
281 bin/localgroup_enum@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPENUM_OBJ)
282         @echo Linking $@
283         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPENUM_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
284
285 bin/localgroup_addmembers@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPADDMEMBERS_OBJ)
286         @echo Linking $@
287         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPADDMEMBERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
288
289 bin/localgroup_delmembers@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPDELMEMBERS_OBJ)
290         @echo Linking $@
291         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPDELMEMBERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
292
293 bin/localgroup_setmembers@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPSETMEMBERS_OBJ)
294         @echo Linking $@
295         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPSETMEMBERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
296
297 bin/localgroup_getmembers@EXEEXT@: $(BINARY_PREREQS) $(LOCALGROUPGETMEMBERS_OBJ)
298         @echo Linking $@
299         @$(CC) $(CCFLAGS) -o $@ $(LOCALGROUPGETMEMBERS_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
300
301 bin/remote_tod@EXEEXT@: $(BINARY_PREREQS) $(REMOTETOD_OBJ)
302         @echo Linking $@
303         @$(CC) $(CCFLAGS) -o $@ $(REMOTETOD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
304
305 bin/server_getinfo@EXEEXT@: $(BINARY_PREREQS) $(SERVERGETINFO_OBJ)
306         @echo Linking $@
307         @$(CC) $(CCFLAGS) -o $@ $(SERVERGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
308
309 bin/share_add@EXEEXT@: $(BINARY_PREREQS) $(SHAREADD_OBJ)
310         @echo Linking $@
311         @$(CC) $(CCFLAGS) -o $@ $(SHAREADD_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
312
313 bin/share_del@EXEEXT@: $(BINARY_PREREQS) $(SHAREDEL_OBJ)
314         @echo Linking $@
315         @$(CC) $(CCFLAGS) -o $@ $(SHAREDEL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
316
317 bin/share_enum@EXEEXT@: $(BINARY_PREREQS) $(SHAREENUM_OBJ)
318         @echo Linking $@
319         @$(CC) $(CCFLAGS) -o $@ $(SHAREENUM_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
320
321 bin/share_getinfo@EXEEXT@: $(BINARY_PREREQS) $(SHAREGETINFO_OBJ)
322         @echo Linking $@
323         @$(CC) $(CCFLAGS) -o $@ $(SHAREGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
324
325 bin/share_setinfo@EXEEXT@: $(BINARY_PREREQS) $(SHARESETINFO_OBJ)
326         @echo Linking $@
327         @$(CC) $(CCFLAGS) -o $@ $(SHARESETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
328
329 bin/file_close@EXEEXT@: $(BINARY_PREREQS) $(FILECLOSE_OBJ)
330         @echo Linking $@
331         @$(CC) $(CCFLAGS) -o $@ $(FILECLOSE_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
332
333 bin/file_getinfo@EXEEXT@: $(BINARY_PREREQS) $(FILEGETINFO_OBJ)
334         @echo Linking $@
335         @$(CC) $(CCFLAGS) -o $@ $(FILEGETINFO_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
336
337 bin/file_enum@EXEEXT@: $(BINARY_PREREQS) $(FILEENUM_OBJ)
338         @echo Linking $@
339         @$(CC) $(CCFLAGS) -o $@ $(FILEENUM_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
340
341 bin/shutdown_init@EXEEXT@: $(BINARY_PREREQS) $(SHUTDOWNINIT_OBJ)
342         @echo Linking $@
343         @$(CC) $(CCFLAGS) -o $@ $(SHUTDOWNINIT_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
344
345 bin/shutdown_abort@EXEEXT@: $(BINARY_PREREQS) $(SHUTDOWNABORT_OBJ)
346         @echo Linking $@
347         @$(CC) $(CCFLAGS) -o $@ $(SHUTDOWNABORT_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
348
349 bin/netlogon_control@EXEEXT@: $(BINARY_PREREQS) $(NETLOGONCONTROL_OBJ)
350         @echo Linking $@
351         @$(CC) $(CCFLAGS) -o $@ $(NETLOGONCONTROL_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
352
353 bin/netlogon_control2@EXEEXT@: $(BINARY_PREREQS) $(NETLOGONCONTROL2_OBJ)
354         @echo Linking $@
355         @$(CC) $(CCFLAGS) -o $@ $(NETLOGONCONTROL2_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
356
357 bin/nltest@EXEEXT@: $(BINARY_PREREQS) $(NLTEST_OBJ)
358         @echo Linking $@
359         @$(CC) $(CCFLAGS) -o $@ $(NLTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
360
361 clean:
362         -rm -f $(PROGS)
363         -rm -f core */*~ *~ \
364                 */*.o */*/*.o */*/*/*.o