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