Move libcli/auth to the top level
[kai/samba.git] / source4 / libcli / config.mk
1 mkinclude ldap/config.mk
2 mkinclude security/config.mk
3 mkinclude wbclient/config.mk
4
5 [SUBSYSTEM::LIBSAMBA-ERRORS]
6
7 LIBSAMBA-ERRORS_OBJ_FILES = $(addprefix ../libcli/util/, doserr.o ) $(libclisrcdir)/util/errormap.o $(libclisrcdir)/util/nterr.o
8
9 PUBLIC_HEADERS += $(addprefix ../libcli/util/, error.h ntstatus.h doserr.h werror.h)
10
11 [SUBSYSTEM::LIBCLI_LSA]
12 PUBLIC_DEPENDENCIES = RPC_NDR_LSA
13 PRIVATE_DEPENDENCIES = LIBSECURITY
14
15 LIBCLI_LSA_OBJ_FILES = $(libclisrcdir)/util/clilsa.o
16
17 $(eval $(call proto_header_template,$(libclisrcdir)/util/clilsa.h,$(LIBCLI_LSA_OBJ_FILES:.o=.c)))
18
19 [SUBSYSTEM::LIBCLI_COMPOSITE]
20 PUBLIC_DEPENDENCIES = LIBEVENTS
21
22 LIBCLI_COMPOSITE_OBJ_FILES = $(libclisrcdir)/composite/composite.o
23 $(eval $(call proto_header_template,$(libclisrcdir)/composite/proto.h,$(LIBCLI_COMPOSITE_OBJ_FILES:.o=.c)))
24
25 [SUBSYSTEM::LIBCLI_SMB_COMPOSITE]
26 PUBLIC_DEPENDENCIES = LIBCLI_COMPOSITE CREDENTIALS gensec LIBCLI_RESOLVE
27
28 LIBCLI_SMB_COMPOSITE_OBJ_FILES = $(addprefix $(libclisrcdir)/smb_composite/, \
29         loadfile.o \
30         savefile.o \
31         connect.o \
32         sesssetup.o \
33         fetchfile.o \
34         appendacl.o \
35         fsinfo.o \
36         smb2.o)
37
38 $(eval $(call proto_header_template,$(libclisrcdir)/smb_composite/proto.h,$(LIBCLI_SMB_COMPOSITE_OBJ_FILES:.o=.c)))
39
40 [SUBSYSTEM::NDR_NBT_BUF]
41
42 NDR_NBT_BUF_OBJ_FILES = $(libclinbtsrcdir)/nbtname.o
43
44 $(eval $(call proto_header_template,$(libclinbtsrcdir)/nbtname.h,$(NDR_NBT_BUF_OBJ_FILES:.o=.c)))
45
46 [SUBSYSTEM::LIBCLI_NBT]
47 PUBLIC_DEPENDENCIES = LIBNDR NDR_NBT LIBCLI_COMPOSITE LIBEVENTS \
48         NDR_SECURITY samba_socket LIBSAMBA-UTIL
49
50 LIBCLI_NBT_OBJ_FILES = $(addprefix $(libclinbtsrcdir)/, \
51         nbtsocket.o \
52         namequery.o \
53         nameregister.o \
54         namerefresh.o \
55         namerelease.o)
56
57 [BINARY::nmblookup]
58 INSTALLDIR = BINDIR
59 PRIVATE_DEPENDENCIES = \
60                 LIBSAMBA-HOSTCONFIG \
61                 LIBSAMBA-UTIL \
62                 LIBCLI_NBT \
63                 LIBPOPT \
64                 POPT_SAMBA \
65                 LIBNETIF \
66                 LIBCLI_RESOLVE
67
68 nmblookup_OBJ_FILES = $(libclinbtsrcdir)/tools/nmblookup.o
69 MANPAGES += $(libclinbtsrcdir)/man/nmblookup.1
70
71 [SUBSYSTEM::LIBCLI_NDR_NETLOGON]
72 PUBLIC_DEPENDENCIES = LIBNDR  \
73         NDR_SECURITY    
74
75 LIBCLI_NDR_NETLOGON_OBJ_FILES = $(addprefix $(libclinbtsrcdir)/../, ndr_netlogon.o)
76
77 [SUBSYSTEM::LIBCLI_NETLOGON]
78 PUBLIC_DEPENDENCIES = LIBSAMBA-UTIL LIBCLI_NDR_NETLOGON
79
80 LIBCLI_NETLOGON_OBJ_FILES = $(addprefix $(libclinbtsrcdir)/, \
81         ../netlogon.o)
82
83 [PYTHON::python_netbios]
84 LIBRARY_REALNAME = samba/netbios.$(SHLIBEXT)
85 PUBLIC_DEPENDENCIES = LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG
86
87 python_netbios_OBJ_FILES = $(libclinbtsrcdir)/pynbt.o
88
89 [SUBSYSTEM::LIBCLI_DGRAM]
90 PUBLIC_DEPENDENCIES = LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON
91
92 LIBCLI_DGRAM_OBJ_FILES = $(addprefix $(libclisrcdir)/dgram/, \
93         dgramsocket.o \
94         mailslot.o \
95         netlogon.o \
96         browse.o)
97
98 [SUBSYSTEM::LIBCLI_WREPL]
99 PUBLIC_DEPENDENCIES = NDR_WINSREPL samba_socket LIBEVENTS LIBPACKET
100
101 LIBCLI_WREPL_OBJ_FILES = $(libclisrcdir)/wrepl/winsrepl.o
102
103 $(eval $(call proto_header_template,$(libclisrcdir)/wrepl/winsrepl_proto.h,$(LIBCLI_WREPL_OBJ_FILES:.o=.c)))
104
105 [SUBSYSTEM::LIBCLI_RESOLVE]
106 PUBLIC_DEPENDENCIES = NDR_NBT
107
108 LIBCLI_RESOLVE_OBJ_FILES = $(libclisrcdir)/resolve/resolve.o
109
110 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/proto.h,$(LIBCLI_RESOLVE_OBJ_FILES:.o=.c)))
111
112 [SUBSYSTEM::LP_RESOLVE]
113 PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF 
114
115 LP_RESOLVE_OBJ_FILES = $(addprefix $(libclisrcdir)/resolve/, \
116                                           bcast.o nbtlist.o wins.o \
117                                           dns_ex.o \
118                                           host.o resolve_lp.o)
119
120 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES:.o=.c)))
121
122 [SUBSYSTEM::LIBCLI_FINDDCS]
123 PUBLIC_DEPENDENCIES = LIBCLI_NBT MESSAGING
124
125 LIBCLI_FINDDCS_OBJ_FILES = $(libclisrcdir)/finddcs.o
126
127 $(eval $(call proto_header_template,$(libclisrcdir)/finddcs.h,$(LIBCLI_FINDDCS_OBJ_FILES:.o=.c)))
128
129 [SUBSYSTEM::LIBCLI_SMB]
130 PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
131         LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIBSECURITY LIBCLI_RESOLVE \
132         LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba_socket
133
134 LIBCLI_SMB_OBJ_FILES = $(addprefix $(libclisrcdir)/, \
135                 clireadwrite.o \
136                 cliconnect.o \
137                 clifile.o \
138                 clilist.o \
139                 clitrans2.o \
140                 climessage.o \
141                 clideltree.o)
142
143 $(eval $(call proto_header_template,$(libclisrcdir)/libcli_proto.h,$(LIBCLI_SMB_OBJ_FILES:.o=.c)))
144
145 # PUBLIC_HEADERS += $(libclisrcdir)/libcli.h
146
147 [SUBSYSTEM::LIBCLI_RAW]
148 PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
149 #LDFLAGS = $(LIBCLI_SMB_COMPOSITE_OUTPUT)
150 PUBLIC_DEPENDENCIES = samba_socket LIBPACKET gensec LIBCRYPTO CREDENTIALS 
151
152 LIBCLI_RAW_OBJ_FILES = $(addprefix $(libclisrcdir)/raw/, rawfile.o smb_signing.o clisocket.o \
153                                           clitransport.o clisession.o clitree.o clierror.o rawrequest.o \
154                                           rawreadwrite.o rawsearch.o rawsetfileinfo.o raweas.o rawtrans.o \
155                                           clioplock.o rawnegotiate.o rawfsinfo.o rawfileinfo.o rawnotify.o \
156                                           rawioctl.o rawacl.o rawdate.o rawlpq.o rawshadow.o)
157
158
159 $(eval $(call proto_header_template,$(libclisrcdir)/raw/raw_proto.h,$(LIBCLI_RAW_OBJ_FILES:.o=.c)))
160
161 mkinclude smb2/config.mk