2f1b14dc3779038adf8dd1a31a54555882892160
[jra/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 ../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_ECHO]
83 PUBLIC_DEPENDENCIES = LIBNDR
84
85 NDR_ECHO_OBJ_FILES = ../librpc/gen_ndr/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 = ../librpc/gen_ndr/ndr_dcom.o
96
97 [SUBSYSTEM::NDR_WMI]
98 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY NDR_DCOM
99
100 NDR_WMI_OBJ_FILES = ../librpc/gen_ndr/ndr_wmi.o ../librpc/ndr/ndr_wmi.o
101
102 [SUBSYSTEM::NDR_DSBACKUP]
103 PUBLIC_DEPENDENCIES = LIBNDR
104
105 NDR_DSBACKUP_OBJ_FILES = ../librpc/gen_ndr/ndr_dsbackup.o
106
107 [SUBSYSTEM::NDR_EFS]
108 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
109
110 NDR_EFS_OBJ_FILES = ../librpc/gen_ndr/ndr_efs.o
111
112 [SUBSYSTEM::NDR_ROT]
113 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
114
115 NDR_ROT_OBJ_FILES = ../librpc/gen_ndr/ndr_rot.o
116
117 [SUBSYSTEM::NDR_LSA]
118 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
119
120 NDR_LSA_OBJ_FILES = ../librpc/gen_ndr/ndr_lsa.o
121
122 PUBLIC_HEADERS += ../librpc/gen_ndr/lsa.h
123
124 [SUBSYSTEM::NDR_DFS]
125 PUBLIC_DEPENDENCIES = LIBNDR
126
127 NDR_DFS_OBJ_FILES = ../librpc/gen_ndr/ndr_dfs.o
128
129 [SUBSYSTEM::NDR_FRSRPC]
130 PUBLIC_DEPENDENCIES = LIBNDR
131
132 NDR_FRSRPC_OBJ_FILES = ../librpc/gen_ndr/ndr_frsrpc.o
133
134 [SUBSYSTEM::NDR_FRSAPI]
135 PUBLIC_DEPENDENCIES = LIBNDR
136
137 NDR_FRSAPI_OBJ_FILES = ../librpc/gen_ndr/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 = ../librpc/gen_ndr/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 = ../librpc/gen_ndr/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 = ../librpc/gen_ndr/ndr_policyagent.o
158
159 [SUBSYSTEM::NDR_UNIXINFO]
160 PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
161
162 NDR_UNIXINFO_OBJ_FILES = ../librpc/gen_ndr/ndr_unixinfo.o
163
164 [SUBSYSTEM::NDR_SAMR]
165 PUBLIC_DEPENDENCIES = LIBNDR NDR_LSA NDR_SECURITY
166
167 NDR_SAMR_OBJ_FILES = ../librpc/gen_ndr/ndr_samr.o
168
169 PUBLIC_HEADERS += $(addprefix ../librpc/gen_ndr/, samr.h ndr_samr.h 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 = ../librpc/gen_ndr/ndr_spoolss.o
180
181 [SUBSYSTEM::NDR_SPOOLSS_BUF]
182
183 NDR_SPOOLSS_BUF_OBJ_FILES = ../librpc/ndr/ndr_spoolss_buf.o
184
185 [SUBSYSTEM::NDR_WKSSVC]
186 PUBLIC_DEPENDENCIES = LIBNDR NDR_SRVSVC NDR_SECURITY
187
188 NDR_WKSSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_wkssvc.o
189
190 [SUBSYSTEM::NDR_SRVSVC]
191 PUBLIC_DEPENDENCIES = LIBNDR NDR_SVCCTL NDR_SECURITY
192
193 NDR_SRVSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_srvsvc.o
194
195 [SUBSYSTEM::NDR_SVCCTL]
196 PUBLIC_DEPENDENCIES = LIBNDR
197
198 NDR_SVCCTL_OBJ_FILES = ../librpc/gen_ndr/ndr_svcctl.o ../librpc/ndr/ndr_svcctl.o
199
200 PUBLIC_HEADERS += $(addprefix ../librpc/gen_ndr/, ndr_svcctl.h svcctl.h)
201
202 [SUBSYSTEM::NDR_ATSVC]
203 PUBLIC_DEPENDENCIES = LIBNDR
204
205 NDR_ATSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_atsvc.o
206
207 PUBLIC_HEADERS += $(addprefix ../librpc/gen_ndr/, atsvc.h ndr_atsvc.h)
208
209 [SUBSYSTEM::NDR_EVENTLOG]
210 PUBLIC_DEPENDENCIES = LIBNDR NDR_LSA
211
212 NDR_EVENTLOG_OBJ_FILES = ../librpc/gen_ndr/ndr_eventlog.o
213
214 [SUBSYSTEM::NDR_EPMAPPER]
215 PUBLIC_DEPENDENCIES = LIBNDR
216
217 NDR_EPMAPPER_OBJ_FILES = ../librpc/gen_ndr/ndr_epmapper.o
218
219 [SUBSYSTEM::NDR_DBGIDL]
220 PUBLIC_DEPENDENCIES = LIBNDR
221
222 NDR_DBGIDL_OBJ_FILES = ../librpc/gen_ndr/ndr_dbgidl.o
223
224 [SUBSYSTEM::NDR_DSSETUP]
225 PUBLIC_DEPENDENCIES = LIBNDR
226
227 NDR_DSSETUP_OBJ_FILES = ../librpc/gen_ndr/ndr_dssetup.o
228
229 [SUBSYSTEM::NDR_MSGSVC]
230 PUBLIC_DEPENDENCIES = LIBNDR
231
232 NDR_MSGSVC_OBJ_FILES = ../librpc/gen_ndr/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
241
242 NDR_WINREG_OBJ_FILES = ../librpc/gen_ndr/ndr_winreg.o
243
244 [SUBSYSTEM::NDR_INITSHUTDOWN]
245 PUBLIC_DEPENDENCIES = LIBNDR
246
247 NDR_INITSHUTDOWN_OBJ_FILES = ../librpc/gen_ndr/ndr_initshutdown.o
248
249 [SUBSYSTEM::NDR_MGMT]
250 PUBLIC_DEPENDENCIES = LIBNDR 
251
252 NDR_MGMT_OBJ_FILES = ../librpc/gen_ndr/ndr_mgmt.o
253
254 [SUBSYSTEM::NDR_PROTECTED_STORAGE]
255 PUBLIC_DEPENDENCIES = LIBNDR
256
257 NDR_PROTECTED_STORAGE_OBJ_FILES = ../librpc/gen_ndr/ndr_protected_storage.o
258
259 [SUBSYSTEM::NDR_ORPC]
260 PUBLIC_DEPENDENCIES = LIBNDR 
261
262 NDR_ORPC_OBJ_FILES = ../librpc/gen_ndr/ndr_orpc.o ../librpc/ndr/ndr_orpc.o 
263
264 [SUBSYSTEM::NDR_OXIDRESOLVER]
265 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
266
267 NDR_OXIDRESOLVER_OBJ_FILES = ../librpc/gen_ndr/ndr_oxidresolver.o
268
269 [SUBSYSTEM::NDR_REMACT]
270 PUBLIC_DEPENDENCIES = LIBNDR NDR_ORPC
271
272 NDR_REMACT_OBJ_FILES = ../librpc/gen_ndr/ndr_remact.o
273
274 [SUBSYSTEM::NDR_WZCSVC]
275 PUBLIC_DEPENDENCIES = LIBNDR
276
277 NDR_WZCSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_wzcsvc.o
278
279 [SUBSYSTEM::NDR_BROWSER]
280 PUBLIC_DEPENDENCIES = LIBNDR
281
282 NDR_BROWSER_OBJ_FILES = ../librpc/gen_ndr/ndr_browser.o
283
284 [SUBSYSTEM::NDR_W32TIME]
285 PUBLIC_DEPENDENCIES = LIBNDR
286
287 NDR_W32TIME_OBJ_FILES = ../librpc/gen_ndr/ndr_w32time.o
288
289 [SUBSYSTEM::NDR_SCERPC]
290 PUBLIC_DEPENDENCIES = LIBNDR
291
292 NDR_SCERPC_OBJ_FILES = ../librpc/gen_ndr/ndr_scerpc.o
293
294 [SUBSYSTEM::NDR_NTSVCS]
295 PUBLIC_DEPENDENCIES = LIBNDR
296
297 NDR_NTSVCS_OBJ_FILES = ../librpc/gen_ndr/ndr_ntsvcs.o
298
299 [SUBSYSTEM::NDR_NETLOGON]
300 PUBLIC_DEPENDENCIES = LIBNDR NDR_SAMR NDR_LSA NDR_SECURITY
301
302 NDR_NETLOGON_OBJ_FILES = ../librpc/gen_ndr/ndr_netlogon.o ../librpc/ndr/ndr_netlogon.o
303
304 PUBLIC_HEADERS += ../librpc/gen_ndr/netlogon.h
305
306 [SUBSYSTEM::NDR_TRKWKS]
307 PUBLIC_DEPENDENCIES = LIBNDR
308
309 NDR_TRKWKS_OBJ_FILES = ../librpc/gen_ndr/ndr_trkwks.o
310
311 [SUBSYSTEM::NDR_KEYSVC]
312 PUBLIC_DEPENDENCIES = LIBNDR
313
314 NDR_KEYSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_keysvc.o
315
316 [SUBSYSTEM::NDR_KRB5PAC]
317 PUBLIC_DEPENDENCIES = LIBNDR NDR_NETLOGON NDR_SECURITY
318
319 NDR_KRB5PAC_OBJ_FILES = ../librpc/gen_ndr/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 = ../librpc/gen_ndr/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_NBT_BUF NDR_SVCCTL NDR_SECURITY NDR_SAMR LIBCLI_NDR_NETLOGON
343
344 NDR_NBT_OBJ_FILES = ../librpc/gen_ndr/ndr_nbt.o
345
346 PUBLIC_HEADERS += ../librpc/gen_ndr/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 $(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_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 NDR_NAMED_PIPE_AUTH
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 = ../librpc/gen_ndr/ndr_rot_c.o
397
398 [SUBSYSTEM::RPC_NDR_AUDIOSRV]
399 PUBLIC_DEPENDENCIES = NDR_AUDIOSRV dcerpc
400
401 RPC_NDR_AUDIOSRV_OBJ_FILES = ../librpc/gen_ndr/ndr_audiosrv_c.o
402
403 [SUBSYSTEM::RPC_NDR_ECHO]
404 PUBLIC_DEPENDENCIES = dcerpc NDR_ECHO
405
406 RPC_NDR_ECHO_OBJ_FILES = ../librpc/gen_ndr/ndr_echo_c.o
407
408 [SUBSYSTEM::RPC_NDR_DSBACKUP]
409 PUBLIC_DEPENDENCIES = dcerpc NDR_DSBACKUP
410
411 RPC_NDR_DSBACKUP_OBJ_FILES = ../librpc/gen_ndr/ndr_dsbackup_c.o
412
413 [SUBSYSTEM::RPC_NDR_EFS]
414 PUBLIC_DEPENDENCIES = dcerpc NDR_EFS
415
416 RPC_NDR_EFS_OBJ_FILES = ../librpc/gen_ndr/ndr_efs_c.o
417
418 [SUBSYSTEM::RPC_NDR_LSA]
419 PUBLIC_DEPENDENCIES = dcerpc NDR_LSA
420
421 RPC_NDR_LSA_OBJ_FILES = ../librpc/gen_ndr/ndr_lsa_c.o
422
423 [SUBSYSTEM::RPC_NDR_DFS]
424 PUBLIC_DEPENDENCIES = dcerpc NDR_DFS
425
426 RPC_NDR_DFS_OBJ_FILES = ../librpc/gen_ndr/ndr_dfs_c.o
427
428 [SUBSYSTEM::RPC_NDR_FRSAPI]
429 PUBLIC_DEPENDENCIES = dcerpc NDR_FRSAPI
430
431 RPC_NDR_FRSAPI_OBJ_FILES = ../librpc/gen_ndr/ndr_frsapi_c.o
432
433 [SUBSYSTEM::RPC_NDR_DRSUAPI]
434 PUBLIC_DEPENDENCIES = dcerpc NDR_DRSUAPI
435
436 RPC_NDR_DRSUAPI_OBJ_FILES = ../librpc/gen_ndr/ndr_drsuapi_c.o
437
438 [SUBSYSTEM::RPC_NDR_POLICYAGENT]
439 PUBLIC_DEPENDENCIES = dcerpc NDR_POLICYAGENT
440
441 RPC_NDR_POLICYAGENT_OBJ_FILES = ../librpc/gen_ndr/ndr_policyagent_c.o
442
443 [SUBSYSTEM::RPC_NDR_UNIXINFO]
444 PUBLIC_DEPENDENCIES = dcerpc NDR_UNIXINFO
445
446 RPC_NDR_UNIXINFO_OBJ_FILES = ../librpc/gen_ndr/ndr_unixinfo_c.o
447
448 [SUBSYSTEM::RPC_NDR_BROWSER]
449 PUBLIC_DEPENDENCIES = dcerpc NDR_BROWSER
450
451 RPC_NDR_BROWSER_OBJ_FILES = ../librpc/gen_ndr/ndr_browser_c.o
452
453 [SUBSYSTEM::RPC_NDR_IRPC]
454 PUBLIC_DEPENDENCIES = dcerpc NDR_IRPC
455
456 RPC_NDR_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc_c.o
457
458 [LIBRARY::dcerpc_samr]
459 PUBLIC_DEPENDENCIES = dcerpc NDR_SAMR 
460
461 PC_FILES += $(librpcsrcdir)/dcerpc_samr.pc
462
463 dcerpc_samr_VERSION = 0.0.1
464 dcerpc_samr_SOVERSION = 0
465 dcerpc_samr_OBJ_FILES = ../librpc/gen_ndr/ndr_samr_c.o
466
467 [SUBSYSTEM::RPC_NDR_SPOOLSS]
468 PUBLIC_DEPENDENCIES = dcerpc NDR_SPOOLSS
469
470 RPC_NDR_SPOOLSS_OBJ_FILES = ../librpc/gen_ndr/ndr_spoolss_c.o
471
472 [SUBSYSTEM::RPC_NDR_WKSSVC]
473 PUBLIC_DEPENDENCIES = dcerpc NDR_WKSSVC
474
475 RPC_NDR_WKSSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_wkssvc_c.o
476
477 [SUBSYSTEM::RPC_NDR_SRVSVC]
478 PUBLIC_DEPENDENCIES = dcerpc NDR_SRVSVC
479
480 RPC_NDR_SRVSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_srvsvc_c.o
481
482 [SUBSYSTEM::RPC_NDR_SVCCTL]
483 PUBLIC_DEPENDENCIES = dcerpc NDR_SVCCTL
484
485 RPC_NDR_SVCCTL_OBJ_FILES = ../librpc/gen_ndr/ndr_svcctl_c.o
486
487 PUBLIC_HEADERS += ../librpc/gen_ndr/ndr_svcctl_c.h
488
489 [LIBRARY::dcerpc_atsvc]
490 PUBLIC_DEPENDENCIES = dcerpc NDR_ATSVC
491
492 dcerpc_atsvc_VERSION = 0.0.1
493 dcerpc_atsvc_SOVERSION = 0
494
495 dcerpc_atsvc_OBJ_FILES = ../librpc/gen_ndr/ndr_atsvc_c.o
496 PC_FILES += $(librpcsrcdir)/dcerpc_atsvc.pc
497
498 PUBLIC_HEADERS += ../librpc/gen_ndr/ndr_atsvc_c.h
499
500 [SUBSYSTEM::RPC_NDR_EVENTLOG]
501 PUBLIC_DEPENDENCIES = dcerpc NDR_EVENTLOG
502
503 RPC_NDR_EVENTLOG_OBJ_FILES = ../librpc/gen_ndr/ndr_eventlog_c.o
504
505 [SUBSYSTEM::RPC_NDR_EPMAPPER]
506 PUBLIC_DEPENDENCIES = NDR_EPMAPPER 
507
508 RPC_NDR_EPMAPPER_OBJ_FILES = ../librpc/gen_ndr/ndr_epmapper_c.o
509
510 [SUBSYSTEM::RPC_NDR_DBGIDL]
511 PUBLIC_DEPENDENCIES = dcerpc NDR_DBGIDL
512
513 RPC_NDR_DBGIDL_OBJ_FILES = ../librpc/gen_ndr/ndr_dbgidl_c.o
514
515 [SUBSYSTEM::RPC_NDR_DSSETUP]
516 PUBLIC_DEPENDENCIES = dcerpc NDR_DSSETUP
517
518 RPC_NDR_DSSETUP_OBJ_FILES = ../librpc/gen_ndr/ndr_dssetup_c.o
519
520 [SUBSYSTEM::RPC_NDR_MSGSVC]
521 PUBLIC_DEPENDENCIES = dcerpc NDR_MSGSVC
522
523 RPC_NDR_MSGSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_msgsvc_c.o
524
525 [SUBSYSTEM::RPC_NDR_WINS]
526 PUBLIC_DEPENDENCIES = dcerpc NDR_WINS
527
528 RPC_NDR_WINS_OBJ_FILES = $(gen_ndrsrcdir)/ndr_wins_c.o
529
530 [SUBSYSTEM::RPC_NDR_WINREG]
531 PUBLIC_DEPENDENCIES = dcerpc NDR_WINREG
532
533 RPC_NDR_WINREG_OBJ_FILES = ../librpc/gen_ndr/ndr_winreg_c.o
534
535 [SUBSYSTEM::RPC_NDR_INITSHUTDOWN]
536 PUBLIC_DEPENDENCIES = dcerpc NDR_INITSHUTDOWN
537
538 RPC_NDR_INITSHUTDOWN_OBJ_FILES = ../librpc/gen_ndr/ndr_initshutdown_c.o
539
540 [SUBSYSTEM::RPC_NDR_MGMT]
541 PRIVATE_DEPENDENCIES = NDR_MGMT
542
543 RPC_NDR_MGMT_OBJ_FILES = ../librpc/gen_ndr/ndr_mgmt_c.o
544
545 [SUBSYSTEM::RPC_NDR_PROTECTED_STORAGE]
546 PUBLIC_DEPENDENCIES = dcerpc NDR_PROTECTED_STORAGE
547
548 RPC_NDR_PROTECTED_STORAGE_OBJ_FILES = ../librpc/gen_ndr/ndr_protected_storage_c.o
549
550 [SUBSYSTEM::RPC_NDR_OXIDRESOLVER]
551 PUBLIC_DEPENDENCIES = dcerpc NDR_OXIDRESOLVER
552
553 RPC_NDR_OXIDRESOLVER_OBJ_FILES = ../librpc/gen_ndr/ndr_oxidresolver_c.o
554
555 [SUBSYSTEM::RPC_NDR_REMACT]
556 PUBLIC_DEPENDENCIES = dcerpc NDR_REMACT
557
558 RPC_NDR_REMACT_OBJ_FILES = ../librpc/gen_ndr/ndr_remact_c.o
559
560 [SUBSYSTEM::RPC_NDR_WZCSVC]
561 PUBLIC_DEPENDENCIES = dcerpc NDR_WZCSVC
562
563 RPC_NDR_WZCSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_wzcsvc_c.o
564
565 [SUBSYSTEM::RPC_NDR_W32TIME]
566 PUBLIC_DEPENDENCIES = dcerpc NDR_W32TIME
567
568 RPC_NDR_W32TIME_OBJ_FILES = ../librpc/gen_ndr/ndr_w32time_c.o
569
570 [SUBSYSTEM::RPC_NDR_SCERPC]
571 PUBLIC_DEPENDENCIES = dcerpc NDR_SCERPC
572
573 RPC_NDR_SCERPC_OBJ_FILES = ../librpc/gen_ndr/ndr_scerpc_c.o
574
575 [SUBSYSTEM::RPC_NDR_NTSVCS]
576 PUBLIC_DEPENDENCIES = dcerpc NDR_NTSVCS
577
578 RPC_NDR_NTSVCS_OBJ_FILES = ../librpc/gen_ndr/ndr_ntsvcs_c.o
579
580 [SUBSYSTEM::RPC_NDR_NETLOGON]
581 PUBLIC_DEPENDENCIES = NDR_NETLOGON
582
583 RPC_NDR_NETLOGON_OBJ_FILES = ../librpc/gen_ndr/ndr_netlogon_c.o
584
585 [SUBSYSTEM::RPC_NDR_TRKWKS]
586 PUBLIC_DEPENDENCIES = dcerpc NDR_TRKWKS
587
588 RPC_NDR_TRKWKS_OBJ_FILES = ../librpc/gen_ndr/ndr_trkwks_c.o
589
590 [SUBSYSTEM::RPC_NDR_KEYSVC]
591 PUBLIC_DEPENDENCIES = dcerpc NDR_KEYSVC
592
593 RPC_NDR_KEYSVC_OBJ_FILES = ../librpc/gen_ndr/ndr_keysvc_c.o
594
595 [SUBSYSTEM::NDR_DCERPC]
596 PUBLIC_DEPENDENCIES = LIBNDR
597
598 NDR_DCERPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_dcerpc.o
599
600 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, gen_ndr/dcerpc.h gen_ndr/ndr_dcerpc.h)
601
602 ################################################
603 # Start SUBSYSTEM dcerpc
604 [LIBRARY::dcerpc]
605 PRIVATE_DEPENDENCIES = \
606                 samba_socket LIBCLI_RESOLVE LIBCLI_SMB LIBCLI_SMB2 \
607                 LIBNDR NDR_DCERPC RPC_NDR_EPMAPPER \
608                 NDR_SCHANNEL RPC_NDR_NETLOGON \
609                 RPC_NDR_MGMT \
610                 gensec LIBCLI_AUTH LIBCLI_RAW \
611                 LP_RESOLVE
612 PUBLIC_DEPENDENCIES = CREDENTIALS 
613 # End SUBSYSTEM dcerpc
614 ################################################
615
616 PC_FILES += $(librpcsrcdir)/dcerpc.pc
617 dcerpc_VERSION = 0.0.1
618 dcerpc_SOVERSION = 0
619
620 dcerpc_OBJ_FILES = $(addprefix $(dcerpcsrcdir)/, dcerpc.o dcerpc_auth.o dcerpc_schannel.o dcerpc_util.o \
621                                   dcerpc_smb.o dcerpc_smb2.o dcerpc_sock.o dcerpc_connect.o dcerpc_secondary.o) \
622                                         ../librpc/rpc/binding.o ../librpc/rpc/dcerpc_error.o
623
624 $(eval $(call proto_header_template,$(dcerpcsrcdir)/dcerpc_proto.h,$(dcerpc_OBJ_FILES:.o=.c)))
625
626
627 PUBLIC_HEADERS += $(addprefix $(librpcsrcdir)/, rpc/dcerpc.h) \
628                         $(addprefix ../librpc/gen_ndr/, mgmt.h ndr_mgmt.h ndr_mgmt_c.h \
629                         epmapper.h ndr_epmapper.h ndr_epmapper_c.h)
630
631
632 [PYTHON::python_dcerpc]
633 LIBRARY_REALNAME = samba/dcerpc/base.$(SHLIBEXT)
634 PUBLIC_DEPENDENCIES = LIBCLI_SMB LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG dcerpc_samr RPC_NDR_LSA DYNCONFIG pycredentials param
635
636 python_dcerpc_OBJ_FILES = $(dcerpcsrcdir)/pyrpc.o
637
638 $(eval $(call python_py_module_template,samba/dcerpc/__init__.py,$(dcerpcsrcdir)/dcerpc.py))
639
640
641 [PYTHON::python_echo]
642 LIBRARY_REALNAME = samba/dcerpc/echo.$(SHLIBEXT)
643 PRIVATE_DEPENDENCIES = RPC_NDR_ECHO PYTALLOC param pycredentials python_dcerpc
644
645 python_echo_OBJ_FILES = ../librpc/gen_ndr/py_echo.o
646
647 [PYTHON::python_winreg]
648 LIBRARY_REALNAME = samba/dcerpc/winreg.$(SHLIBEXT)
649 PRIVATE_DEPENDENCIES = RPC_NDR_WINREG PYTALLOC param pycredentials python_dcerpc
650
651 python_winreg_OBJ_FILES = ../librpc/gen_ndr/py_winreg.o
652
653 [PYTHON::python_dcerpc_misc]
654 LIBRARY_REALNAME = samba/dcerpc/misc.$(SHLIBEXT)
655 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc
656
657 python_dcerpc_misc_OBJ_FILES = ../librpc/gen_ndr/py_misc.o
658
659 [PYTHON::python_initshutdown]
660 LIBRARY_REALNAME = samba/dcerpc/initshutdown.$(SHLIBEXT)
661 PRIVATE_DEPENDENCIES = RPC_NDR_INITSHUTDOWN PYTALLOC param pycredentials python_dcerpc
662
663 python_initshutdown_OBJ_FILES = ../librpc/gen_ndr/py_initshutdown.o
664
665 [PYTHON::python_epmapper]
666 LIBRARY_REALNAME = samba/dcerpc/epmapper.$(SHLIBEXT)
667 PRIVATE_DEPENDENCIES =  dcerpc PYTALLOC param pycredentials python_dcerpc
668
669 python_epmapper_OBJ_FILES = ../librpc/gen_ndr/py_epmapper.o
670
671 [PYTHON::python_mgmt]
672 LIBRARY_REALNAME = samba/dcerpc/mgmt.$(SHLIBEXT)
673 PRIVATE_DEPENDENCIES = PYTALLOC param pycredentials dcerpc python_dcerpc
674
675 python_mgmt_OBJ_FILES = ../librpc/gen_ndr/py_mgmt.o
676
677 [PYTHON::python_atsvc]
678 LIBRARY_REALNAME = samba/dcerpc/atsvc.$(SHLIBEXT)
679 PRIVATE_DEPENDENCIES = dcerpc_atsvc PYTALLOC param pycredentials python_dcerpc
680
681 python_atsvc_OBJ_FILES = ../librpc/gen_ndr/py_atsvc.o
682
683 [PYTHON::python_dcerpc_nbt]
684 LIBRARY_REALNAME = samba/dcerpc/nbt.$(SHLIBEXT)
685 PRIVATE_DEPENDENCIES = NDR_NBT PYTALLOC param pycredentials python_dcerpc
686
687 python_dcerpc_nbt_OBJ_FILES = ../librpc/gen_ndr/py_nbt.o
688
689 [PYTHON::python_samr]
690 LIBRARY_REALNAME = samba/dcerpc/samr.$(SHLIBEXT)
691 PRIVATE_DEPENDENCIES = dcerpc_samr PYTALLOC pycredentials param python_dcerpc
692
693 python_samr_OBJ_FILES = ../librpc/gen_ndr/py_samr.o
694
695 [PYTHON::python_svcctl]
696 LIBRARY_REALNAME = samba/dcerpc/svcctl.$(SHLIBEXT)
697 PRIVATE_DEPENDENCIES = RPC_NDR_SVCCTL PYTALLOC param pycredentials python_dcerpc
698
699 python_svcctl_OBJ_FILES = ../librpc/gen_ndr/py_svcctl.o
700
701 [PYTHON::python_lsa]
702 LIBRARY_REALNAME = samba/dcerpc/lsa.$(SHLIBEXT)
703 PRIVATE_DEPENDENCIES = RPC_NDR_LSA PYTALLOC param pycredentials python_dcerpc
704
705 python_lsa_OBJ_FILES = ../librpc/gen_ndr/py_lsa.o
706
707 [PYTHON::python_wkssvc]
708 LIBRARY_REALNAME = samba/dcerpc/wkssvc.$(SHLIBEXT)
709 PRIVATE_DEPENDENCIES = RPC_NDR_WKSSVC PYTALLOC param pycredentials python_dcerpc
710
711 python_wkssvc_OBJ_FILES = ../librpc/gen_ndr/py_wkssvc.o
712
713 [PYTHON::python_dfs]
714 LIBRARY_REALNAME = samba/dcerpc/dfs.$(SHLIBEXT)
715 PRIVATE_DEPENDENCIES = RPC_NDR_DFS PYTALLOC param pycredentials python_dcerpc
716
717 python_dfs_OBJ_FILES = ../librpc/gen_ndr/py_dfs.o
718
719 [PYTHON::python_unixinfo]
720 LIBRARY_REALNAME = samba/dcerpc/unixinfo.$(SHLIBEXT)
721 PRIVATE_DEPENDENCIES = RPC_NDR_UNIXINFO PYTALLOC param pycredentials python_dcerpc
722
723 python_unixinfo_OBJ_FILES = ../librpc/gen_ndr/py_unixinfo.o
724
725 [PYTHON::python_irpc]
726 LIBRARY_REALNAME = samba/dcerpc/irpc.$(SHLIBEXT)
727 PRIVATE_DEPENDENCIES = RPC_NDR_IRPC PYTALLOC param pycredentials python_dcerpc
728
729 python_irpc_OBJ_FILES = $(gen_ndrsrcdir)/py_irpc.o
730
731 [PYTHON::python_drsuapi]
732 LIBRARY_REALNAME = samba/dcerpc/drsuapi.$(SHLIBEXT)
733 PRIVATE_DEPENDENCIES = RPC_NDR_DRSUAPI PYTALLOC param pycredentials python_dcerpc
734
735 python_drsuapi_OBJ_FILES = ../librpc/gen_ndr/py_drsuapi.o
736
737 [PYTHON::python_dcerpc_security]
738 LIBRARY_REALNAME = samba/dcerpc/security.$(SHLIBEXT)
739 PRIVATE_DEPENDENCIES = PYTALLOC python_dcerpc_misc python_dcerpc
740
741 python_dcerpc_security_OBJ_FILES = ../librpc/gen_ndr/py_security.o
742
743 $(IDL_HEADER_FILES) $(IDL_NDR_PARSE_H_FILES) $(IDL_NDR_PARSE_C_FILES) \
744         $(IDL_NDR_CLIENT_C_FILES) $(IDL_NDR_CLIENT_H_FILES) \
745         $(IDL_NDR_SERVER_C_FILES) $(IDL_SWIG_FILES) \
746         $(IDL_NDR_PY_C_FILES) $(IDL_NDR_PY_H_FILES): idl
747
748 idl_full:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
749         @PIDL_OUTPUTDIR="../librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" srcdir="$(srcdir)" PIDL="$(PIDL)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
750         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh FULL $(librpcsrcdir)/gen_ndr $(librpcsrcdir)/idl/*.idl
751
752 idl:: $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/lib/Parse/Pidl/Expr.pm 
753         @PIDL_OUTPUTDIR="../librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" srcdir="$(srcdir)" PIDL="$(PIDL)" ../librpc/build_idl.sh ../librpc/idl/*.idl
754         @CPP="$(CPP)" PIDL="$(PIDL)" $(librpcsrcdir)/scripts/build_idl.sh PARTIAL $(librpcsrcdir)/gen_ndr $(librpcsrcdir)/idl/*.idl
755
756 clean::
757         @echo "Remove ../librpc/gen_ndr files which are not commited to git"
758         @cat ../.gitignore | grep "^librpc/gen_ndr" | xargs rm -f