Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
[kai/samba.git] / source / librpc / config.mk
1 ndrsrcdir = $(librpcsrcdir)/ndr
2 gen_ndrsrcdir = $(librpcsrcdir)/gen_ndr
3 dcerpcsrcdir = $(librpcsrcdir)/rpc
4
5 ################################################
6 # Start SUBSYSTEM LIBNDR
7 [LIBRARY::LIBNDR]
8 PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBTALLOC LIBSAMBA-UTIL CHARSET \
9                                           LIBSAMBA-HOSTCONFIG
10
11 LIBNDR_OBJ_FILES = $(addprefix $(ndrsrcdir)/, ndr.o ndr_basic.o ndr_string.o uuid.o)
12
13 $(eval $(call proto_header_template,$(ndrsrcdir)/libndr_proto.h,$(LIBNDR_OBJ_FILES:.o=.c)))
14
15 PC_FILES += $(librpcsrcdir)/ndr.pc
16 LIBNDR_VERSION = 0.0.1
17 LIBNDR_SOVERSION = 0
18
19 # End SUBSYSTEM LIBNDR
20 ################################################
21
22 PUBLIC_HEADERS += $(ndrsrcdir)/libndr.h
23
24 #################################
25 # Start BINARY ndrdump
26 [BINARY::ndrdump]
27 INSTALLDIR = BINDIR
28 PRIVATE_DEPENDENCIES = \
29                 LIBSAMBA-HOSTCONFIG \
30                 LIBSAMBA-UTIL \
31                 LIBPOPT \
32                 POPT_SAMBA \
33                 NDR_TABLE \
34                 LIBSAMBA-ERRORS
35 # FIXME: ndrdump shouldn't have to depend on RPC...
36 # End BINARY ndrdump
37 #################################
38
39 ndrdump_OBJ_FILES = $(librpcsrcdir)/tools/ndrdump.o
40
41 MANPAGES += $(librpcsrcdir)/tools/ndrdump.1
42
43 ################################################
44 # Start SUBSYSTEM NDR_COMPRESSION
45 [SUBSYSTEM::NDR_COMPRESSION]
46 PUBLIC_DEPENDENCIES = LIBCOMPRESSION LIBSAMBA-ERRORS LIBNDR
47 # End SUBSYSTEM NDR_COMPRESSION
48 ################################################
49
50 NDR_COMPRESSION_OBJ_FILES = $(ndrsrcdir)/ndr_compression.o
51
52 $(eval $(call proto_header_template,$(ndrsrcdir)/ndr_compression.h,$(NDR_COMPRESSION_OBJ_FILES:.o=.c)))
53
54 [SUBSYSTEM::NDR_SECURITY]
55 PUBLIC_DEPENDENCIES = NDR_MISC LIBSECURITY
56
57 NDR_SECURITY_OBJ_FILES = $(gen_ndrsrcdir)/ndr_security.o $(ndrsrcdir)/ndr_sec_helper.o 
58
59 PUBLIC_HEADERS += $(gen_ndrsrcdir)/security.h
60
61 [SUBSYSTEM::NDR_AUDIOSRV]
62 PUBLIC_DEPENDENCIES = LIBNDR
63
64 NDR_AUDIOSRV_OBJ_FILES = $(gen_ndrsrcdir)/ndr_audiosrv.o
65
66 [SUBSYSTEM::NDR_DNSSERVER]
67 PUBLIC_DEPENDENCIES = LIBNDR
68
69 NDR_DNSSERVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dnsserver.o
70
71 [SUBSYSTEM::NDR_WINSTATION]
72 PUBLIC_DEPENDENCIES = LIBNDR
73
74 NDR_WINSTATION_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winstation.o
75
76 [SUBSYSTEM::NDR_ECHO]
77 PUBLIC_DEPENDENCIES = LIBNDR
78
79 NDR_ECHO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_echo.o
80
81 [SUBSYSTEM::NDR_IRPC]
82 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY NDR_NBT
83
84 NDR_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc.o
85
86 [SUBSYSTEM::NDR_DSBACKUP]
87 PUBLIC_DEPENDENCIES = LIBNDR
88
89 NDR_DSBACKUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dsbackup.o
90
91 [SUBSYSTEM::NDR_EFS]
92 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
93
94 NDR_EFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_efs.o
95
96 [SUBSYSTEM::NDR_MISC]
97 PUBLIC_DEPENDENCIES = LIBNDR
98
99 NDR_MISC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_misc.o $(ndrsrcdir)/ndr_misc.o
100
101 PUBLIC_HEADERS += $(gen_ndrsrcdir)/misc.h $(gen_ndrsrcdir)/ndr_misc.h
102
103 [SUBSYSTEM::NDR_ROT]
104 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
105
106 NDR_ROT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_rot.o
107
108 [SUBSYSTEM::NDR_LSA]
109 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
110
111 NDR_LSA_OBJ_FILES = $(gen_ndrsrcdir)/ndr_lsa.o
112
113 PUBLIC_HEADERS += $(gen_ndrsrcdir)/lsa.h
114
115 [SUBSYSTEM::NDR_DFS]
116 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC
117
118 NDR_DFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dfs.o
119
120 [SUBSYSTEM::NDR_FRSRPC]
121 PUBLIC_DEPENDENCIES = LIBNDR
122
123 NDR_FRSRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_frsrpc.o
124
125 [SUBSYSTEM::NDR_FRSAPI]
126 PUBLIC_DEPENDENCIES = LIBNDR
127
128 NDR_FRSAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_frsapi.o
129
130 [SUBSYSTEM::NDR_DRSUAPI]
131 PUBLIC_DEPENDENCIES = LIBNDR NDR_COMPRESSION NDR_SECURITY NDR_SAMR ASN1_UTIL
132
133 NDR_DRSUAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_drsuapi.o $(ndrsrcdir)/ndr_drsuapi.o
134
135 [SUBSYSTEM::NDR_DRSBLOBS]
136 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC NDR_DRSUAPI
137
138 NDR_DRSBLOBS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_drsblobs.o
139
140 [SUBSYSTEM::NDR_SASL_HELPERS]
141 PUBLIC_DEPENDENCIES = LIBNDR
142
143 NDR_SASL_HELPERS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_sasl_helpers.o
144
145 [SUBSYSTEM::NDR_POLICYAGENT]
146 PUBLIC_DEPENDENCIES = LIBNDR
147
148 NDR_POLICYAGENT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_policyagent.o
149
150 [SUBSYSTEM::NDR_UNIXINFO]
151 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
152
153 NDR_UNIXINFO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_unixinfo.o
154
155 [SUBSYSTEM::NDR_SAMR]
156 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC NDR_LSA NDR_SECURITY
157
158 NDR_SAMR_OBJ_FILES = $(gen_ndrsrcdir)/ndr_samr.o
159
160 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/samr.h gen_ndr/ndr_samr.h gen_ndr/ndr_samr_c.h)
161
162 [SUBSYSTEM::NDR_NFS4ACL]
163 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC NDR_SECURITY
164
165 NDR_NFS4ACL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_nfs4acl.o
166
167 [SUBSYSTEM::NDR_SPOOLSS]
168 PUBLIC_DEPENDENCIES = LIBNDR NDR_SPOOLSS_BUF NDR_SECURITY
169
170 NDR_SPOOLSS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_spoolss.o
171
172 [SUBSYSTEM::NDR_SPOOLSS_BUF]
173
174 NDR_SPOOLSS_BUF_OBJ_FILES = $(ndrsrcdir)/ndr_spoolss_buf.o
175
176 $(eval $(call proto_header_template,$(ndrsrcdir)/ndr_spoolss_buf.h,$(NDR_SPOOLSS_BUF_OBJ_FILES:.o=.c)))
177
178 [SUBSYSTEM::NDR_WKSSVC]
179 PUBLIC_DEPENDENCIES = LIBNDR NDR_SRVSVC NDR_MISC NDR_SECURITY
180
181 NDR_WKSSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wkssvc.o
182
183 [SUBSYSTEM::NDR_SRVSVC]
184 PUBLIC_DEPENDENCIES = LIBNDR NDR_SVCCTL NDR_SECURITY
185
186 NDR_SRVSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_srvsvc.o
187
188 [SUBSYSTEM::NDR_SVCCTL]
189 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC
190
191 NDR_SVCCTL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_svcctl.o
192
193 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/ndr_svcctl.h gen_ndr/svcctl.h)
194
195 [SUBSYSTEM::NDR_ATSVC]
196 PUBLIC_DEPENDENCIES = LIBNDR
197
198 NDR_ATSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_atsvc.o
199
200 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/atsvc.h gen_ndr/ndr_atsvc.h)
201
202 [SUBSYSTEM::NDR_EVENTLOG]
203 PUBLIC_DEPENDENCIES = LIBNDR NDR_LSA
204
205 NDR_EVENTLOG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_eventlog.o
206
207 [SUBSYSTEM::NDR_EPMAPPER]
208 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC
209
210 NDR_EPMAPPER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_epmapper.o
211
212 [SUBSYSTEM::NDR_DBGIDL]
213 PUBLIC_DEPENDENCIES = LIBNDR
214
215 NDR_DBGIDL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dbgidl.o
216
217 [SUBSYSTEM::NDR_DSSETUP]
218 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC
219
220 NDR_DSSETUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dssetup.o
221
222 [SUBSYSTEM::NDR_MSGSVC]
223 PUBLIC_DEPENDENCIES = LIBNDR
224
225 NDR_MSGSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_msgsvc.o
226
227 [SUBSYSTEM::NDR_WINS]
228 PUBLIC_DEPENDENCIES = LIBNDR
229
230 NDR_WINS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wins.o
231
232 [SUBSYSTEM::NDR_WINREG]
233 PUBLIC_DEPENDENCIES = LIBNDR NDR_INITSHUTDOWN NDR_SECURITY NDR_MISC
234
235 NDR_WINREG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winreg.o
236
237 [SUBSYSTEM::NDR_INITSHUTDOWN]
238 PUBLIC_DEPENDENCIES = LIBNDR
239
240 NDR_INITSHUTDOWN_OBJ_FILES = $(gen_ndrsrcdir)/ndr_initshutdown.o
241
242 [SUBSYSTEM::NDR_MGMT]
243 PUBLIC_DEPENDENCIES = LIBNDR 
244
245 NDR_MGMT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_mgmt.o
246
247 [SUBSYSTEM::NDR_PROTECTED_STORAGE]
248 PUBLIC_DEPENDENCIES = LIBNDR
249
250 NDR_PROTECTED_STORAGE_OBJ_FILES = $(gen_ndrsrcdir)/ndr_protected_storage.o
251
252 [SUBSYSTEM::NDR_ORPC]
253 PUBLIC_DEPENDENCIES = LIBNDR 
254
255 NDR_ORPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_orpc.o $(ndrsrcdir)/ndr_orpc.o 
256
257 [SUBSYSTEM::NDR_OXIDRESOLVER]
258 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC NDR_MISC
259
260 NDR_OXIDRESOLVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_oxidresolver.o
261
262 [SUBSYSTEM::NDR_REMACT]
263 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC NDR_MISC
264
265 NDR_REMACT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_remact.o
266
267 [SUBSYSTEM::NDR_WZCSVC]
268 PUBLIC_DEPENDENCIES = LIBNDR
269
270 NDR_WZCSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wzcsvc.o
271
272 [SUBSYSTEM::NDR_BROWSER]
273 PUBLIC_DEPENDENCIES = LIBNDR
274
275 NDR_BROWSER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_browser.o
276
277 [SUBSYSTEM::NDR_W32TIME]
278 PUBLIC_DEPENDENCIES = LIBNDR
279
280 NDR_W32TIME_OBJ_FILES = $(gen_ndrsrcdir)/ndr_w32time.o
281
282 [SUBSYSTEM::NDR_SCERPC]
283 PUBLIC_DEPENDENCIES = LIBNDR
284
285 NDR_SCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_scerpc.o
286
287 [SUBSYSTEM::NDR_NTSVCS]
288 PUBLIC_DEPENDENCIES = LIBNDR
289
290 NDR_NTSVCS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_ntsvcs.o
291
292 [SUBSYSTEM::NDR_NETLOGON]
293 PUBLIC_DEPENDENCIES = LIBNDR NDR_SAMR NDR_LSA NDR_SECURITY
294
295 NDR_NETLOGON_OBJ_FILES = $(gen_ndrsrcdir)/ndr_netlogon.o
296
297 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/netlogon.h)
298
299 [SUBSYSTEM::NDR_TRKWKS]
300 PUBLIC_DEPENDENCIES = LIBNDR
301
302 NDR_TRKWKS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_trkwks.o
303
304 [SUBSYSTEM::NDR_KEYSVC]
305 PUBLIC_DEPENDENCIES = LIBNDR
306
307 NDR_KEYSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_keysvc.o
308
309 [SUBSYSTEM::NDR_KRB5PAC]
310 PUBLIC_DEPENDENCIES = LIBNDR NDR_NETLOGON NDR_SECURITY
311
312 NDR_KRB5PAC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_krb5pac.o $(ndrsrcdir)/ndr_krb5pac.o
313
314 [SUBSYSTEM::NDR_XATTR]
315 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
316
317 NDR_XATTR_OBJ_FILES = $(gen_ndrsrcdir)/ndr_xattr.o
318
319 [SUBSYSTEM::NDR_OPENDB]
320 PUBLIC_DEPENDENCIES = LIBNDR
321
322 NDR_OPENDB_OBJ_FILES = $(gen_ndrsrcdir)/ndr_opendb.o
323
324 [SUBSYSTEM::NDR_NOTIFY]
325 PUBLIC_DEPENDENCIES = LIBNDR
326
327 NDR_NOTIFY_OBJ_FILES = $(gen_ndrsrcdir)/ndr_notify.o
328
329 [SUBSYSTEM::NDR_SCHANNEL]
330 PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT
331
332 NDR_SCHANNEL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_schannel.o
333
334 [SUBSYSTEM::NDR_NBT]
335 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC NDR_NBT_BUF NDR_SVCCTL NDR_SECURITY NDR_SAMR LIBCLI_NDR_NETLOGON
336
337 NDR_NBT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_nbt.o
338
339 PUBLIC_HEADERS += $(gen_ndrsrcdir)/nbt.h
340
341 [SUBSYSTEM::NDR_NTP_SIGND]
342 PUBLIC_DEPENDENCIES = LIBNDR 
343
344 NDR_NTP_SIGND_OBJ_FILES = $(gen_ndrsrcdir)/ndr_ntp_signd.o
345
346 PUBLIC_HEADERS += $(gen_ndrsrcdir)/ndr_ntp_signd.h
347
348 [SUBSYSTEM::NDR_WINSREPL]
349 PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT
350
351 NDR_WINSREPL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winsrepl.o
352
353 [SUBSYSTEM::NDR_WINBIND]
354 PUBLIC_DEPENDENCIES = LIBNDR NDR_NETLOGON
355
356 NDR_WINBIND_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winbind.o
357 #PUBLIC_HEADERS += $(gen_ndrsrcdir)/winbind.h
358
359 $(librpcsrcdir)/idl-deps:
360         $(PERL) $(librpcsrcdir)/idl-deps.pl $(librpcsrcdir)/idl/*.idl >$@
361
362 clean:: 
363         rm -f $(librpcsrcdir)/idl-deps
364
365 include $(librpcsrcdir)/idl-deps
366
367 $(gen_ndrsrcdir)/tables.c: $(IDL_NDR_PARSE_H_FILES)
368         @echo Generating $@
369         @$(PERL) $(librpcsrcdir)/tables.pl --output=$@ $^ > $(gen_ndrsrcdir)/tables.x
370         @mv $(gen_ndrsrcdir)/tables.x $@
371
372 [SUBSYSTEM::NDR_TABLE]
373 PUBLIC_DEPENDENCIES = \
374         NDR_AUDIOSRV NDR_ECHO NDR_DCERPC \
375         NDR_DSBACKUP NDR_EFS NDR_MISC NDR_LSA NDR_DFS NDR_DRSUAPI \
376         NDR_POLICYAGENT NDR_UNIXINFO NDR_SAMR NDR_SPOOLSS NDR_WKSSVC NDR_SRVSVC NDR_ATSVC \
377         NDR_EVENTLOG NDR_EPMAPPER NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINS \
378         NDR_WINREG NDR_MGMT NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER \
379         NDR_REMACT NDR_WZCSVC NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_NTSVCS \
380         NDR_NETLOGON NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC NDR_XATTR NDR_SCHANNEL \
381         NDR_ROT NDR_DRSBLOBS NDR_SVCCTL NDR_NBT NDR_WINSREPL NDR_SECURITY \
382         NDR_INITSHUTDOWN NDR_DNSSERVER NDR_WINSTATION NDR_IRPC NDR_OPENDB \
383         NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI NDR_NFS4ACL
384
385 NDR_TABLE_OBJ_FILES = $(ndrsrcdir)/ndr_table.o $(gen_ndrsrcdir)/tables.o
386
387 $(eval $(call proto_header_template,$(ndrsrcdir)/ndr_table.h,$(NDR_TABLE_OBJ_FILES:.o=.c)))
388
389 [SUBSYSTEM::RPC_NDR_ROT]
390 PUBLIC_DEPENDENCIES = NDR_ROT dcerpc
391
392 RPC_NDR_ROT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_rot_c.o
393
394 [SUBSYSTEM::RPC_NDR_AUDIOSRV]
395 PUBLIC_DEPENDENCIES = NDR_AUDIOSRV dcerpc
396
397 RPC_NDR_AUDIOSRV_OBJ_FILES = $(gen_ndrsrcdir)/ndr_audiosrv_c.o
398
399 [SUBSYSTEM::RPC_NDR_ECHO]
400 PUBLIC_DEPENDENCIES = dcerpc NDR_ECHO
401
402 RPC_NDR_ECHO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_echo_c.o
403
404 [SUBSYSTEM::RPC_NDR_DSBACKUP]
405 PUBLIC_DEPENDENCIES = dcerpc NDR_DSBACKUP
406
407 RPC_NDR_DSBACKUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dsbackup_c.o
408
409 [SUBSYSTEM::RPC_NDR_EFS]
410 PUBLIC_DEPENDENCIES = dcerpc NDR_EFS
411
412 RPC_NDR_EFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_efs_c.o
413
414 [SUBSYSTEM::RPC_NDR_LSA]
415 PUBLIC_DEPENDENCIES = dcerpc NDR_LSA
416
417 RPC_NDR_LSA_OBJ_FILES = $(gen_ndrsrcdir)/ndr_lsa_c.o
418
419 [SUBSYSTEM::RPC_NDR_DFS]
420 PUBLIC_DEPENDENCIES = dcerpc NDR_DFS
421
422 RPC_NDR_DFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dfs_c.o
423
424 [SUBSYSTEM::RPC_NDR_FRSAPI]
425 PUBLIC_DEPENDENCIES = dcerpc NDR_FRSAPI
426
427 RPC_NDR_FRSAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_frsapi_c.o
428
429 [SUBSYSTEM::RPC_NDR_DRSUAPI]
430 PUBLIC_DEPENDENCIES = dcerpc NDR_DRSUAPI
431
432 RPC_NDR_DRSUAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_drsuapi_c.o
433
434 [SUBSYSTEM::RPC_NDR_POLICYAGENT]
435 PUBLIC_DEPENDENCIES = dcerpc NDR_POLICYAGENT
436
437 RPC_NDR_POLICYAGENT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_policyagent_c.o
438
439 [SUBSYSTEM::RPC_NDR_UNIXINFO]
440 PUBLIC_DEPENDENCIES = dcerpc NDR_UNIXINFO
441
442 RPC_NDR_UNIXINFO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_unixinfo_c.o
443
444 [SUBSYSTEM::RPC_NDR_IRPC]
445 PUBLIC_DEPENDENCIES = dcerpc NDR_IRPC
446
447 RPC_NDR_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc_c.o
448
449 [LIBRARY::dcerpc_samr]
450 PUBLIC_DEPENDENCIES = dcerpc NDR_SAMR 
451
452 PC_FILES += $(librpcsrcdir)/dcerpc_samr.pc
453
454 dcerpc_samr_VERSION = 0.0.1
455 dcerpc_samr_SOVERSION = 0
456 dcerpc_samr_OBJ_FILES = $(gen_ndrsrcdir)/ndr_samr_c.o
457
458 [SUBSYSTEM::RPC_NDR_SPOOLSS]
459 PUBLIC_DEPENDENCIES = dcerpc NDR_SPOOLSS
460
461 RPC_NDR_SPOOLSS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_spoolss_c.o
462
463 [SUBSYSTEM::RPC_NDR_WKSSVC]
464 PUBLIC_DEPENDENCIES = dcerpc NDR_WKSSVC
465
466 RPC_NDR_WKSSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wkssvc_c.o
467
468 [SUBSYSTEM::RPC_NDR_SRVSVC]
469 PUBLIC_DEPENDENCIES = dcerpc NDR_SRVSVC
470
471 RPC_NDR_SRVSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_srvsvc_c.o
472
473 [SUBSYSTEM::RPC_NDR_SVCCTL]
474 PUBLIC_DEPENDENCIES = dcerpc NDR_SVCCTL
475
476 RPC_NDR_SVCCTL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_svcctl_c.o
477
478 PUBLIC_HEADERS += $(gen_ndrsrcdir)/ndr_svcctl_c.h
479
480 [LIBRARY::dcerpc_atsvc]
481 PUBLIC_DEPENDENCIES = dcerpc NDR_ATSVC
482
483 dcerpc_atsvc_VERSION = 0.0.1
484 dcerpc_atsvc_SOVERSION = 0
485
486 dcerpc_atsvc_OBJ_FILES = $(gen_ndrsrcdir)/ndr_atsvc_c.o
487 PC_FILES += $(librpcsrcdir)/dcerpc_atsvc.pc
488
489 PUBLIC_HEADERS += $(gen_ndrsrcdir)/ndr_atsvc_c.h
490
491 [SUBSYSTEM::RPC_NDR_EVENTLOG]
492 PUBLIC_DEPENDENCIES = dcerpc NDR_EVENTLOG
493
494 RPC_NDR_EVENTLOG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_eventlog_c.o
495
496 [SUBSYSTEM::RPC_NDR_EPMAPPER]
497 PUBLIC_DEPENDENCIES = NDR_EPMAPPER 
498
499 RPC_NDR_EPMAPPER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_epmapper_c.o
500
501 [SUBSYSTEM::RPC_NDR_DBGIDL]
502 PUBLIC_DEPENDENCIES = dcerpc NDR_DBGIDL
503
504 RPC_NDR_DBGIDL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dbgidl_c.o
505
506 [SUBSYSTEM::RPC_NDR_DSSETUP]
507 PUBLIC_DEPENDENCIES = dcerpc NDR_DSSETUP
508
509 RPC_NDR_DSSETUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dssetup_c.o
510
511 [SUBSYSTEM::RPC_NDR_MSGSVC]
512 PUBLIC_DEPENDENCIES = dcerpc NDR_MSGSVC
513
514 RPC_NDR_MSGSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_msgsvc_c.o
515
516 [SUBSYSTEM::RPC_NDR_WINS]
517 PUBLIC_DEPENDENCIES = dcerpc NDR_WINS
518
519 RPC_NDR_WINS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wins_c.o
520
521 [SUBSYSTEM::RPC_NDR_WINREG]
522 PUBLIC_DEPENDENCIES = dcerpc NDR_WINREG
523
524 RPC_NDR_WINREG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winreg_c.o
525
526 [SUBSYSTEM::RPC_NDR_INITSHUTDOWN]
527 PUBLIC_DEPENDENCIES = dcerpc NDR_INITSHUTDOWN
528
529 RPC_NDR_INITSHUTDOWN_OBJ_FILES = $(gen_ndrsrcdir)/ndr_initshutdown_c.o
530
531 [SUBSYSTEM::RPC_NDR_MGMT]
532 PRIVATE_DEPENDENCIES = NDR_MGMT
533
534 RPC_NDR_MGMT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_mgmt_c.o
535
536 [SUBSYSTEM::RPC_NDR_PROTECTED_STORAGE]
537 PUBLIC_DEPENDENCIES = dcerpc NDR_PROTECTED_STORAGE
538
539 RPC_NDR_PROTECTED_STORAGE_OBJ_FILES = $(gen_ndrsrcdir)/ndr_protected_storage_c.o
540
541 [SUBSYSTEM::RPC_NDR_OXIDRESOLVER]
542 PUBLIC_DEPENDENCIES = dcerpc NDR_OXIDRESOLVER
543
544 RPC_NDR_OXIDRESOLVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_oxidresolver_c.o
545
546 [SUBSYSTEM::RPC_NDR_REMACT]
547 PUBLIC_DEPENDENCIES = dcerpc NDR_REMACT
548
549 RPC_NDR_REMACT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_remact_c.o
550
551 [SUBSYSTEM::RPC_NDR_WZCSVC]
552 PUBLIC_DEPENDENCIES = dcerpc NDR_WZCSVC
553
554 RPC_NDR_WZCSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wzcsvc_c.o
555
556 [SUBSYSTEM::RPC_NDR_W32TIME]
557 PUBLIC_DEPENDENCIES = dcerpc NDR_W32TIME
558
559 RPC_NDR_W32TIME_OBJ_FILES = $(gen_ndrsrcdir)/ndr_w32time_c.o
560
561 [SUBSYSTEM::RPC_NDR_SCERPC]
562 PUBLIC_DEPENDENCIES = dcerpc NDR_SCERPC
563
564 RPC_NDR_SCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_scerpc_c.o
565
566 [SUBSYSTEM::RPC_NDR_NTSVCS]
567 PUBLIC_DEPENDENCIES = dcerpc NDR_NTSVCS
568
569 RPC_NDR_NTSVCS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_ntsvcs_c.o
570
571 [SUBSYSTEM::RPC_NDR_NETLOGON]
572 PUBLIC_DEPENDENCIES = NDR_NETLOGON
573
574 RPC_NDR_NETLOGON_OBJ_FILES = $(gen_ndrsrcdir)/ndr_netlogon_c.o
575
576 [SUBSYSTEM::RPC_NDR_TRKWKS]
577 PUBLIC_DEPENDENCIES = dcerpc NDR_TRKWKS
578
579 RPC_NDR_TRKWKS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_trkwks_c.o
580
581 [SUBSYSTEM::RPC_NDR_KEYSVC]
582 PUBLIC_DEPENDENCIES = dcerpc NDR_KEYSVC
583
584 RPC_NDR_KEYSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_keysvc_c.o
585
586 [SUBSYSTEM::NDR_DCERPC]
587 PUBLIC_DEPENDENCIES = LIBNDR NDR_MISC
588
589 NDR_DCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dcerpc.o
590
591 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/dcerpc.h gen_ndr/ndr_dcerpc.h)
592
593 ################################################
594 # Start SUBSYSTEM dcerpc
595 [LIBRARY::dcerpc]
596 PRIVATE_DEPENDENCIES = \
597                 samba-socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 \
598                 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER \
599                 NDR_SCHANNEL RPC_NDR_NETLOGON \
600                 RPC_NDR_MGMT \
601                 gensec LIBCLI_AUTH LIBCLI_RAW \
602                 LP_RESOLVE
603 PUBLIC_DEPENDENCIES = CREDENTIALS 
604 # End SUBSYSTEM dcerpc
605 ################################################
606
607 PC_FILES += $(librpcsrcdir)/dcerpc.pc
608 dcerpc_VERSION = 0.0.1
609 dcerpc_SOVERSION = 0
610
611 dcerpc_OBJ_FILES = $(addprefix $(dcerpcsrcdir)/, dcerpc.o dcerpc_auth.o dcerpc_schannel.o dcerpc_util.o binding.o \
612                                   dcerpc_error.o dcerpc_smb.o dcerpc_smb2.o dcerpc_sock.o dcerpc_connect.o dcerpc_secondary.o)
613
614 $(eval $(call proto_header_template,$(dcerpcsrcdir)/dcerpc_proto.h,$(dcerpc_OBJ_FILES:.o=.c)))
615
616
617 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, rpc/dcerpc.h \
618                         gen_ndr/mgmt.h gen_ndr/ndr_mgmt.h gen_ndr/ndr_mgmt_c.h \
619                         gen_ndr/epmapper.h gen_ndr/ndr_epmapper.h gen_ndr/ndr_epmapper_c.h)
620
621
622 [PYTHON::python_dcerpc]
623 LIBRARY_REALNAME = samba/dcerpc/base.$(SHLIBEXT)
624 PUBLIC_DEPENDENCIES = LIBCLI_SMB NDR_MISC LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG swig_credentials param
625
626 python_dcerpc_OBJ_FILES = $(dcerpcsrcdir)/pyrpc.o
627
628 $(eval $(call python_py_module_template,samba/dcerpc/__init__.py,$(dcerpcsrcdir)/dcerpc.py))
629
630
631 [PYTHON::python_echo]
632 LIBRARY_REALNAME = samba/dcerpc/echo.$(SHLIBEXT)
633 PRIVATE_DEPENDENCIES = RPC_NDR_ECHO PYTALLOC param swig_credentials python_dcerpc
634
635 python_echo_OBJ_FILES = $(gen_ndrsrcdir)/py_echo.o
636
637 [PYTHON::python_winreg]
638 LIBRARY_REALNAME = samba/dcerpc/winreg.$(SHLIBEXT)
639 PRIVATE_DEPENDENCIES = RPC_NDR_WINREG python_misc PYTALLOC param swig_credentials python_dcerpc_misc python_lsa python_dcerpc
640
641 python_winreg_OBJ_FILES = $(gen_ndrsrcdir)/py_winreg.o
642
643 [PYTHON::python_dcerpc_misc]
644 LIBRARY_REALNAME = samba/dcerpc/misc.$(SHLIBEXT)
645 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc
646
647 python_dcerpc_misc_OBJ_FILES = $(gen_ndrsrcdir)/py_misc.o
648
649 [PYTHON::python_initshutdown]
650 LIBRARY_REALNAME = samba/dcerpc/initshutdown.$(SHLIBEXT)
651 PRIVATE_DEPENDENCIES = RPC_NDR_INITSHUTDOWN PYTALLOC param swig_credentials python_lsa python_dcerpc_security python_dcerpc
652
653 python_initshutdown_OBJ_FILES = $(gen_ndrsrcdir)/py_initshutdown.o
654
655 [PYTHON::python_epmapper]
656 LIBRARY_REALNAME = samba/dcerpc/epmapper.$(SHLIBEXT)
657 PRIVATE_DEPENDENCIES =  dcerpc PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
658
659 python_epmapper_OBJ_FILES = $(gen_ndrsrcdir)/py_epmapper.o
660
661 [PYTHON::python_mgmt]
662 LIBRARY_REALNAME = samba/dcerpc/mgmt.$(SHLIBEXT)
663 PRIVATE_DEPENDENCIES = PYTALLOC param swig_credentials dcerpc python_dcerpc_misc python_dcerpc
664
665 python_mgmt_OBJ_FILES = $(gen_ndrsrcdir)/py_mgmt.o
666
667 [PYTHON::python_atsvc]
668 LIBRARY_REALNAME = samba/dcerpc/atsvc.$(SHLIBEXT)
669 PRIVATE_DEPENDENCIES = dcerpc_atsvc PYTALLOC param swig_credentials  python_dcerpc
670
671 python_atsvc_OBJ_FILES = $(gen_ndrsrcdir)/py_atsvc.o
672
673 [PYTHON::python_nbt]
674 LIBRARY_REALNAME = samba/nbt.$(SHLIBEXT)
675 PRIVATE_DEPENDENCIES = NDR_NBT PYTALLOC param swig_credentials python_dcerpc
676
677 python_nbt_OBJ_FILES = $(gen_ndrsrcdir)/py_nbt.o
678
679 [PYTHON::python_samr]
680 LIBRARY_REALNAME = samba/dcerpc/samr.$(SHLIBEXT)
681 PRIVATE_DEPENDENCIES = dcerpc_samr PYTALLOC python_dcerpc_security python_lsa python_dcerpc_misc swig_credentials param python_dcerpc
682
683 python_samr_OBJ_FILES = $(gen_ndrsrcdir)/py_samr.o
684
685 [PYTHON::python_svcctl]
686 LIBRARY_REALNAME = samba/dcerpc/svcctl.$(SHLIBEXT)
687 PRIVATE_DEPENDENCIES = RPC_NDR_SVCCTL PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
688
689 python_svcctl_OBJ_FILES = $(gen_ndrsrcdir)/py_svcctl.o
690
691 [PYTHON::python_lsa]
692 LIBRARY_REALNAME = samba/dcerpc/lsa.$(SHLIBEXT)
693 PRIVATE_DEPENDENCIES = RPC_NDR_LSA PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc
694
695 python_lsa_OBJ_FILES = $(gen_ndrsrcdir)/py_lsa.o
696
697 [PYTHON::python_wkssvc]
698 LIBRARY_REALNAME = samba/dcerpc/wkssvc.$(SHLIBEXT)
699 PRIVATE_DEPENDENCIES = RPC_NDR_WKSSVC PYTALLOC param swig_credentials python_lsa python_dcerpc_security python_dcerpc
700
701 python_wkssvc_OBJ_FILES = $(gen_ndrsrcdir)/py_wkssvc.o
702
703 [PYTHON::python_dfs]
704 LIBRARY_REALNAME = samba/dcerpc/dfs.$(SHLIBEXT)
705 PRIVATE_DEPENDENCIES = RPC_NDR_DFS PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
706
707 python_dfs_OBJ_FILES = $(gen_ndrsrcdir)/py_dfs.o
708
709 [PYTHON::python_unixinfo]
710 LIBRARY_REALNAME = samba/dcerpc/unixinfo.$(SHLIBEXT)
711 PRIVATE_DEPENDENCIES = RPC_NDR_UNIXINFO PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc_misc python_dcerpc
712
713 python_unixinfo_OBJ_FILES = $(gen_ndrsrcdir)/py_unixinfo.o
714
715 [PYTHON::python_irpc]
716 LIBRARY_REALNAME = samba/irpc.$(SHLIBEXT)
717 PRIVATE_DEPENDENCIES = RPC_NDR_IRPC PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc_misc python_dcerpc python_nbt
718
719 python_irpc_OBJ_FILES = $(gen_ndrsrcdir)/py_irpc.o
720
721 [PYTHON::python_drsuapi]
722 LIBRARY_REALNAME = samba/dcerpc/drsuapi.$(SHLIBEXT)
723 PRIVATE_DEPENDENCIES = RPC_NDR_DRSUAPI PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc_security python_dcerpc
724
725 python_drsuapi_OBJ_FILES = $(gen_ndrsrcdir)/py_drsuapi.o
726
727 [PYTHON::python_dcerpc_security]
728 LIBRARY_REALNAME = samba/dcerpc/security.$(SHLIBEXT)
729 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc_misc python_dcerpc
730
731 python_dcerpc_security_OBJ_FILES = $(gen_ndrsrcdir)/py_security.o
732
733 $(IDL_HEADER_FILES) $(IDL_NDR_PARSE_H_FILES) $(IDL_NDR_PARSE_C_FILES) \
734         $(IDL_NDR_CLIENT_C_FILES) $(IDL_NDR_CLIENT_H_FILES) \
735         $(IDL_NDR_SERVER_C_FILES) $(IDL_SWIG_FILES) \
736         $(IDL_NDR_EJS_C_FILES) $(IDL_NDR_EJS_H_FILES) \
737         $(IDL_NDR_PY_C_FILES) $(IDL_NDR_PY_H_FILES): idl
738
739 idl_full:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
740         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh FULL $(librpcsrcdir)/idl $(librpcsrcdir)/gen_ndr
741
742 idl:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
743         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh PARTIAL $(librpcsrcdir)/idl $(librpcsrcdir)/gen_ndr
744
745