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