kdc: Build as shared module by default.
[metze/samba/wip.git] / source4 / kdc / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_MODULE('service_kdc',
4         source='kdc.c kpasswdd.c proxy.c',
5         subsystem='service',
6         init_function='server_service_kdc_init',
7         deps='kdc HDB_SAMBA4 WDC_SAMBA4 samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET com_err samba_server_gensec',
8         internal_module=False,
9         )
10
11
12 bld.SAMBA_SUBSYSTEM('HDB_SAMBA4',
13         source='hdb-samba4.c',
14         deps='ldb auth_sam auth_sam_reply credentials hdb db-glue samba-hostconfig com_err',
15         includes='../heimdal/kdc',
16         )
17
18
19 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
20         source='wdc-samba4.c',
21         includes='../heimdal/kdc',
22         deps='ldb auth_sam auth_sam_reply credentials hdb PAC_GLUE samba-hostconfig com_err'
23         )
24
25
26 bld.SAMBA_SUBSYSTEM('PAC_GLUE',
27         source='pac-glue.c',
28         includes='../heimdal/kdc',
29         deps='ldb auth_sam auth_sam_reply credentials hdb samba-hostconfig com_err'
30         )
31
32 bld.SAMBA_LIBRARY('pac',
33         source=[],
34         deps='PAC_GLUE',
35         private_library=True,
36         grouping_library=True)
37
38
39 bld.SAMBA_LIBRARY('db-glue',
40         source='db-glue.c',
41         deps='ldb auth_sam auth_sam_reply credentials hdb samba-hostconfig com_err',
42         private_library=True
43         )
44
45
46 bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
47         source='mit_samba.c',
48         deps='ldb auth_sam auth_sam_reply credentials hdb db-glue PAC_GLUE samba-hostconfig com_err'
49         )
50
51
52 bld.SAMBA_LIBRARY('mit-samba',
53         source='',
54         deps='MIT_SAMBA',
55         external_library=True,
56         realname='mit_samba.so'
57         )
58