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