902312542a34c68968e9ee4aea6019db93fceed4
[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_server_id.o
58
59 PUBLIC_HEADERS += $(addprefix $(gen_ndrsrcdir)/, security.h)
60
61
62 [SUBSYSTEM::NDR_AUDIOSRV]
63 PUBLIC_DEPENDENCIES = LIBNDR
64
65 NDR_AUDIOSRV_OBJ_FILES = $(gen_ndrsrcdir)/ndr_audiosrv.o
66
67 [SUBSYSTEM::NDR_NAMED_PIPE_AUTH]
68 PUBLIC_DEPENDENCIES = LIBNDR
69
70 NDR_NAMED_PIPE_AUTH_OBJ_FILES = $(gen_ndrsrcdir)/ndr_named_pipe_auth.o
71
72 [SUBSYSTEM::NDR_DNSSERVER]
73 PUBLIC_DEPENDENCIES = LIBNDR
74
75 NDR_DNSSERVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dnsserver.o
76
77 [SUBSYSTEM::NDR_WINSTATION]
78 PUBLIC_DEPENDENCIES = LIBNDR
79
80 NDR_WINSTATION_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winstation.o
81
82 [SUBSYSTEM::NDR_ECHO]
83 PUBLIC_DEPENDENCIES = LIBNDR
84
85 NDR_ECHO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_echo.o
86
87 [SUBSYSTEM::NDR_IRPC]
88 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY NDR_NBT
89
90 NDR_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc.o
91
92 [SUBSYSTEM::NDR_DCOM]
93 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY NDR_ORPC
94
95 NDR_DCOM_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dcom.o
96
97 [SUBSYSTEM::NDR_WMI]
98 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY NDR_DCOM
99
100 NDR_WMI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wmi.o ../librpc/ndr/ndr_wmi.o
101
102 [SUBSYSTEM::NDR_DSBACKUP]
103 PUBLIC_DEPENDENCIES = LIBNDR
104
105 NDR_DSBACKUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dsbackup.o
106
107 [SUBSYSTEM::NDR_EFS]
108 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
109
110 NDR_EFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_efs.o
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
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_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_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_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_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
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
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
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
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 ../librpc/ndr/ndr_orpc.o 
265
266 [SUBSYSTEM::NDR_OXIDRESOLVER]
267 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
268
269 NDR_OXIDRESOLVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_oxidresolver.o
270
271 [SUBSYSTEM::NDR_REMACT]
272 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
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 ../librpc/ndr/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_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 $(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) ../librpc/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_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 NDR_NAMED_PIPE_AUTH
392
393 NDR_TABLE_OBJ_FILES = ../librpc/ndr/ndr_table.o $(gen_ndrsrcdir)/tables.o
394
395 [SUBSYSTEM::RPC_NDR_ROT]
396 PUBLIC_DEPENDENCIES = NDR_ROT dcerpc
397
398 RPC_NDR_ROT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_rot_c.o
399
400 [SUBSYSTEM::RPC_NDR_AUDIOSRV]
401 PUBLIC_DEPENDENCIES = NDR_AUDIOSRV dcerpc
402
403 RPC_NDR_AUDIOSRV_OBJ_FILES = $(gen_ndrsrcdir)/ndr_audiosrv_c.o
404
405 [SUBSYSTEM::RPC_NDR_ECHO]
406 PUBLIC_DEPENDENCIES = dcerpc NDR_ECHO
407
408 RPC_NDR_ECHO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_echo_c.o
409
410 [SUBSYSTEM::RPC_NDR_DSBACKUP]
411 PUBLIC_DEPENDENCIES = dcerpc NDR_DSBACKUP
412
413 RPC_NDR_DSBACKUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dsbackup_c.o
414
415 [SUBSYSTEM::RPC_NDR_EFS]
416 PUBLIC_DEPENDENCIES = dcerpc NDR_EFS
417
418 RPC_NDR_EFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_efs_c.o
419
420 [SUBSYSTEM::RPC_NDR_LSA]
421 PUBLIC_DEPENDENCIES = dcerpc NDR_LSA
422
423 RPC_NDR_LSA_OBJ_FILES = $(gen_ndrsrcdir)/ndr_lsa_c.o
424
425 [SUBSYSTEM::RPC_NDR_DFS]
426 PUBLIC_DEPENDENCIES = dcerpc NDR_DFS
427
428 RPC_NDR_DFS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dfs_c.o
429
430 [SUBSYSTEM::RPC_NDR_FRSAPI]
431 PUBLIC_DEPENDENCIES = dcerpc NDR_FRSAPI
432
433 RPC_NDR_FRSAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_frsapi_c.o
434
435 [SUBSYSTEM::RPC_NDR_DRSUAPI]
436 PUBLIC_DEPENDENCIES = dcerpc NDR_DRSUAPI
437
438 RPC_NDR_DRSUAPI_OBJ_FILES = $(gen_ndrsrcdir)/ndr_drsuapi_c.o
439
440 [SUBSYSTEM::RPC_NDR_POLICYAGENT]
441 PUBLIC_DEPENDENCIES = dcerpc NDR_POLICYAGENT
442
443 RPC_NDR_POLICYAGENT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_policyagent_c.o
444
445 [SUBSYSTEM::RPC_NDR_UNIXINFO]
446 PUBLIC_DEPENDENCIES = dcerpc NDR_UNIXINFO
447
448 RPC_NDR_UNIXINFO_OBJ_FILES = $(gen_ndrsrcdir)/ndr_unixinfo_c.o
449
450 [SUBSYSTEM::RPC_NDR_BROWSER]
451 PUBLIC_DEPENDENCIES = dcerpc NDR_BROWSER
452
453 RPC_NDR_BROWSER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_browser_c.o
454
455 [SUBSYSTEM::RPC_NDR_IRPC]
456 PUBLIC_DEPENDENCIES = dcerpc NDR_IRPC
457
458 RPC_NDR_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc_c.o
459
460 [LIBRARY::dcerpc_samr]
461 PUBLIC_DEPENDENCIES = dcerpc NDR_SAMR 
462
463 PC_FILES += $(librpcsrcdir)/dcerpc_samr.pc
464
465 dcerpc_samr_VERSION = 0.0.1
466 dcerpc_samr_SOVERSION = 0
467 dcerpc_samr_OBJ_FILES = $(gen_ndrsrcdir)/ndr_samr_c.o
468
469 [SUBSYSTEM::RPC_NDR_SPOOLSS]
470 PUBLIC_DEPENDENCIES = dcerpc NDR_SPOOLSS
471
472 RPC_NDR_SPOOLSS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_spoolss_c.o
473
474 [SUBSYSTEM::RPC_NDR_WKSSVC]
475 PUBLIC_DEPENDENCIES = dcerpc NDR_WKSSVC
476
477 RPC_NDR_WKSSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wkssvc_c.o
478
479 [SUBSYSTEM::RPC_NDR_SRVSVC]
480 PUBLIC_DEPENDENCIES = dcerpc NDR_SRVSVC
481
482 RPC_NDR_SRVSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_srvsvc_c.o
483
484 [SUBSYSTEM::RPC_NDR_SVCCTL]
485 PUBLIC_DEPENDENCIES = dcerpc NDR_SVCCTL
486
487 RPC_NDR_SVCCTL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_svcctl_c.o
488
489 PUBLIC_HEADERS += $(gen_ndrsrcdir)/ndr_svcctl_c.h
490
491 [LIBRARY::dcerpc_atsvc]
492 PUBLIC_DEPENDENCIES = dcerpc NDR_ATSVC
493
494 dcerpc_atsvc_VERSION = 0.0.1
495 dcerpc_atsvc_SOVERSION = 0
496
497 dcerpc_atsvc_OBJ_FILES = $(gen_ndrsrcdir)/ndr_atsvc_c.o
498 PC_FILES += $(librpcsrcdir)/dcerpc_atsvc.pc
499
500 PUBLIC_HEADERS += $(gen_ndrsrcdir)/ndr_atsvc_c.h
501
502 [SUBSYSTEM::RPC_NDR_EVENTLOG]
503 PUBLIC_DEPENDENCIES = dcerpc NDR_EVENTLOG
504
505 RPC_NDR_EVENTLOG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_eventlog_c.o
506
507 [SUBSYSTEM::RPC_NDR_EPMAPPER]
508 PUBLIC_DEPENDENCIES = NDR_EPMAPPER 
509
510 RPC_NDR_EPMAPPER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_epmapper_c.o
511
512 [SUBSYSTEM::RPC_NDR_DBGIDL]
513 PUBLIC_DEPENDENCIES = dcerpc NDR_DBGIDL
514
515 RPC_NDR_DBGIDL_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dbgidl_c.o
516
517 [SUBSYSTEM::RPC_NDR_DSSETUP]
518 PUBLIC_DEPENDENCIES = dcerpc NDR_DSSETUP
519
520 RPC_NDR_DSSETUP_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dssetup_c.o
521
522 [SUBSYSTEM::RPC_NDR_MSGSVC]
523 PUBLIC_DEPENDENCIES = dcerpc NDR_MSGSVC
524
525 RPC_NDR_MSGSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_msgsvc_c.o
526
527 [SUBSYSTEM::RPC_NDR_WINS]
528 PUBLIC_DEPENDENCIES = dcerpc NDR_WINS
529
530 RPC_NDR_WINS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wins_c.o
531
532 [SUBSYSTEM::RPC_NDR_WINREG]
533 PUBLIC_DEPENDENCIES = dcerpc NDR_WINREG
534
535 RPC_NDR_WINREG_OBJ_FILES = $(gen_ndrsrcdir)/ndr_winreg_c.o
536
537 [SUBSYSTEM::RPC_NDR_INITSHUTDOWN]
538 PUBLIC_DEPENDENCIES = dcerpc NDR_INITSHUTDOWN
539
540 RPC_NDR_INITSHUTDOWN_OBJ_FILES = $(gen_ndrsrcdir)/ndr_initshutdown_c.o
541
542 [SUBSYSTEM::RPC_NDR_MGMT]
543 PRIVATE_DEPENDENCIES = NDR_MGMT
544
545 RPC_NDR_MGMT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_mgmt_c.o
546
547 [SUBSYSTEM::RPC_NDR_PROTECTED_STORAGE]
548 PUBLIC_DEPENDENCIES = dcerpc NDR_PROTECTED_STORAGE
549
550 RPC_NDR_PROTECTED_STORAGE_OBJ_FILES = $(gen_ndrsrcdir)/ndr_protected_storage_c.o
551
552 [SUBSYSTEM::RPC_NDR_OXIDRESOLVER]
553 PUBLIC_DEPENDENCIES = dcerpc NDR_OXIDRESOLVER
554
555 RPC_NDR_OXIDRESOLVER_OBJ_FILES = $(gen_ndrsrcdir)/ndr_oxidresolver_c.o
556
557 [SUBSYSTEM::RPC_NDR_REMACT]
558 PUBLIC_DEPENDENCIES = dcerpc NDR_REMACT
559
560 RPC_NDR_REMACT_OBJ_FILES = $(gen_ndrsrcdir)/ndr_remact_c.o
561
562 [SUBSYSTEM::RPC_NDR_WZCSVC]
563 PUBLIC_DEPENDENCIES = dcerpc NDR_WZCSVC
564
565 RPC_NDR_WZCSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wzcsvc_c.o
566
567 [SUBSYSTEM::RPC_NDR_W32TIME]
568 PUBLIC_DEPENDENCIES = dcerpc NDR_W32TIME
569
570 RPC_NDR_W32TIME_OBJ_FILES = $(gen_ndrsrcdir)/ndr_w32time_c.o
571
572 [SUBSYSTEM::RPC_NDR_SCERPC]
573 PUBLIC_DEPENDENCIES = dcerpc NDR_SCERPC
574
575 RPC_NDR_SCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_scerpc_c.o
576
577 [SUBSYSTEM::RPC_NDR_NTSVCS]
578 PUBLIC_DEPENDENCIES = dcerpc NDR_NTSVCS
579
580 RPC_NDR_NTSVCS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_ntsvcs_c.o
581
582 [SUBSYSTEM::RPC_NDR_NETLOGON]
583 PUBLIC_DEPENDENCIES = NDR_NETLOGON
584
585 RPC_NDR_NETLOGON_OBJ_FILES = $(gen_ndrsrcdir)/ndr_netlogon_c.o
586
587 [SUBSYSTEM::RPC_NDR_TRKWKS]
588 PUBLIC_DEPENDENCIES = dcerpc NDR_TRKWKS
589
590 RPC_NDR_TRKWKS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_trkwks_c.o
591
592 [SUBSYSTEM::RPC_NDR_KEYSVC]
593 PUBLIC_DEPENDENCIES = dcerpc NDR_KEYSVC
594
595 RPC_NDR_KEYSVC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_keysvc_c.o
596
597 [SUBSYSTEM::NDR_DCERPC]
598 PUBLIC_DEPENDENCIES = LIBNDR
599
600 NDR_DCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dcerpc.o
601
602 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/dcerpc.h gen_ndr/ndr_dcerpc.h)
603
604 ################################################
605 # Start SUBSYSTEM dcerpc
606 [LIBRARY::dcerpc]
607 PRIVATE_DEPENDENCIES = \
608                 samba-socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 \
609                 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER \
610                 NDR_SCHANNEL RPC_NDR_NETLOGON \
611                 RPC_NDR_MGMT \
612                 gensec LIBCLI_AUTH LIBCLI_RAW \
613                 LP_RESOLVE
614 PUBLIC_DEPENDENCIES = CREDENTIALS 
615 # End SUBSYSTEM dcerpc
616 ################################################
617
618 PC_FILES += $(librpcsrcdir)/dcerpc.pc
619 dcerpc_VERSION = 0.0.1
620 dcerpc_SOVERSION = 0
621
622 dcerpc_OBJ_FILES = $(addprefix $(dcerpcsrcdir)/, dcerpc.o dcerpc_auth.o dcerpc_schannel.o dcerpc_util.o \
623                                   dcerpc_smb.o dcerpc_smb2.o dcerpc_sock.o dcerpc_connect.o dcerpc_secondary.o) \
624                                         ../librpc/rpc/binding.o ../librpc/rpc/dcerpc_error.o
625
626 $(eval $(call proto_header_template,$(dcerpcsrcdir)/dcerpc_proto.h,$(dcerpc_OBJ_FILES:.o=.c)))
627
628
629 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, rpc/dcerpc.h \
630                         gen_ndr/mgmt.h gen_ndr/ndr_mgmt.h gen_ndr/ndr_mgmt_c.h \
631                         gen_ndr/epmapper.h gen_ndr/ndr_epmapper.h gen_ndr/ndr_epmapper_c.h)
632
633
634 [PYTHON::python_dcerpc]
635 LIBRARY_REALNAME = samba/dcerpc/base.$(SHLIBEXT)
636 PUBLIC_DEPENDENCIES = LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG swig_credentials param
637
638 python_dcerpc_OBJ_FILES = $(dcerpcsrcdir)/pyrpc.o
639
640 $(eval $(call python_py_module_template,samba/dcerpc/__init__.py,$(dcerpcsrcdir)/dcerpc.py))
641
642
643 [PYTHON::python_echo]
644 LIBRARY_REALNAME = samba/dcerpc/echo.$(SHLIBEXT)
645 PRIVATE_DEPENDENCIES = RPC_NDR_ECHO PYTALLOC param swig_credentials python_dcerpc
646
647 python_echo_OBJ_FILES = $(gen_ndrsrcdir)/py_echo.o
648
649 [PYTHON::python_winreg]
650 LIBRARY_REALNAME = samba/dcerpc/winreg.$(SHLIBEXT)
651 PRIVATE_DEPENDENCIES = RPC_NDR_WINREG python_misc PYTALLOC param swig_credentials python_dcerpc_misc python_lsa python_dcerpc
652
653 python_winreg_OBJ_FILES = $(gen_ndrsrcdir)/py_winreg.o
654
655 [PYTHON::python_dcerpc_misc]
656 LIBRARY_REALNAME = samba/dcerpc/misc.$(SHLIBEXT)
657 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc
658
659 python_dcerpc_misc_OBJ_FILES = $(gen_ndrsrcdir)/py_misc.o
660
661 [PYTHON::python_initshutdown]
662 LIBRARY_REALNAME = samba/dcerpc/initshutdown.$(SHLIBEXT)
663 PRIVATE_DEPENDENCIES = RPC_NDR_INITSHUTDOWN PYTALLOC param swig_credentials python_lsa python_dcerpc_security python_dcerpc
664
665 python_initshutdown_OBJ_FILES = $(gen_ndrsrcdir)/py_initshutdown.o
666
667 [PYTHON::python_epmapper]
668 LIBRARY_REALNAME = samba/dcerpc/epmapper.$(SHLIBEXT)
669 PRIVATE_DEPENDENCIES =  dcerpc PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
670
671 python_epmapper_OBJ_FILES = $(gen_ndrsrcdir)/py_epmapper.o
672
673 [PYTHON::python_mgmt]
674 LIBRARY_REALNAME = samba/dcerpc/mgmt.$(SHLIBEXT)
675 PRIVATE_DEPENDENCIES = PYTALLOC param swig_credentials dcerpc python_dcerpc_misc python_dcerpc
676
677 python_mgmt_OBJ_FILES = $(gen_ndrsrcdir)/py_mgmt.o
678
679 [PYTHON::python_atsvc]
680 LIBRARY_REALNAME = samba/dcerpc/atsvc.$(SHLIBEXT)
681 PRIVATE_DEPENDENCIES = dcerpc_atsvc PYTALLOC param swig_credentials  python_dcerpc
682
683 python_atsvc_OBJ_FILES = $(gen_ndrsrcdir)/py_atsvc.o
684
685 [PYTHON::python_dcerpc_nbt]
686 LIBRARY_REALNAME = samba/nbt.$(SHLIBEXT)
687 PRIVATE_DEPENDENCIES = NDR_NBT PYTALLOC param swig_credentials python_dcerpc python_dcerpc_misc python_dcerpc_security
688
689 python_dcerpc_nbt_OBJ_FILES = $(gen_ndrsrcdir)/py_nbt.o
690
691 [PYTHON::python_samr]
692 LIBRARY_REALNAME = samba/dcerpc/samr.$(SHLIBEXT)
693 PRIVATE_DEPENDENCIES = dcerpc_samr PYTALLOC python_dcerpc_security python_lsa python_dcerpc_misc swig_credentials param python_dcerpc
694
695 python_samr_OBJ_FILES = $(gen_ndrsrcdir)/py_samr.o
696
697 [PYTHON::python_svcctl]
698 LIBRARY_REALNAME = samba/dcerpc/svcctl.$(SHLIBEXT)
699 PRIVATE_DEPENDENCIES = RPC_NDR_SVCCTL PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
700
701 python_svcctl_OBJ_FILES = $(gen_ndrsrcdir)/py_svcctl.o
702
703 [PYTHON::python_lsa]
704 LIBRARY_REALNAME = samba/dcerpc/lsa.$(SHLIBEXT)
705 PRIVATE_DEPENDENCIES = RPC_NDR_LSA PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc
706
707 python_lsa_OBJ_FILES = $(gen_ndrsrcdir)/py_lsa.o
708
709 [PYTHON::python_wkssvc]
710 LIBRARY_REALNAME = samba/dcerpc/wkssvc.$(SHLIBEXT)
711 PRIVATE_DEPENDENCIES = RPC_NDR_WKSSVC PYTALLOC param swig_credentials python_lsa python_dcerpc_security python_dcerpc
712
713 python_wkssvc_OBJ_FILES = $(gen_ndrsrcdir)/py_wkssvc.o
714
715 [PYTHON::python_dfs]
716 LIBRARY_REALNAME = samba/dcerpc/dfs.$(SHLIBEXT)
717 PRIVATE_DEPENDENCIES = RPC_NDR_DFS PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc
718
719 python_dfs_OBJ_FILES = $(gen_ndrsrcdir)/py_dfs.o
720
721 [PYTHON::python_unixinfo]
722 LIBRARY_REALNAME = samba/dcerpc/unixinfo.$(SHLIBEXT)
723 PRIVATE_DEPENDENCIES = RPC_NDR_UNIXINFO PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc_misc python_dcerpc
724
725 python_unixinfo_OBJ_FILES = $(gen_ndrsrcdir)/py_unixinfo.o
726
727 [PYTHON::python_irpc]
728 LIBRARY_REALNAME = samba/irpc.$(SHLIBEXT)
729 PRIVATE_DEPENDENCIES = RPC_NDR_IRPC PYTALLOC param swig_credentials python_dcerpc_security python_dcerpc_misc python_dcerpc python_dcerpc_nbt
730
731 python_irpc_OBJ_FILES = $(gen_ndrsrcdir)/py_irpc.o
732
733 [PYTHON::python_drsuapi]
734 LIBRARY_REALNAME = samba/dcerpc/drsuapi.$(SHLIBEXT)
735 PRIVATE_DEPENDENCIES = RPC_NDR_DRSUAPI PYTALLOC param swig_credentials python_dcerpc_misc python_dcerpc_security python_dcerpc
736
737 python_drsuapi_OBJ_FILES = $(gen_ndrsrcdir)/py_drsuapi.o
738
739 [PYTHON::python_dcerpc_security]
740 LIBRARY_REALNAME = samba/dcerpc/security.$(SHLIBEXT)
741 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc_misc python_dcerpc
742
743 python_dcerpc_security_OBJ_FILES = $(gen_ndrsrcdir)/py_security.o
744
745 $(IDL_HEADER_FILES) $(IDL_NDR_PARSE_H_FILES) $(IDL_NDR_PARSE_C_FILES) \
746         $(IDL_NDR_CLIENT_C_FILES) $(IDL_NDR_CLIENT_H_FILES) \
747         $(IDL_NDR_SERVER_C_FILES) $(IDL_SWIG_FILES) \
748         $(IDL_NDR_PY_C_FILES) $(IDL_NDR_PY_H_FILES): idl
749
750 idl_full:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
751         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh FULL $(librpcsrcdir)/gen_ndr $(IDL_FILES) 
752
753 idl:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
754         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh PARTIAL $(librpcsrcdir)/gen_ndr $(IDL_FILES)
755
756