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