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