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