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