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