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