b24f3eb4af9311f43fd5bce1605d336aa95c44c1
[gd/samba/.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 $(libclisrcdir)/util/, doserr.o errormap.o nterr.o)
9
10 PUBLIC_HEADERS += $(addprefix $(libclisrcdir)/, util/error.h util/ntstatus.h util/doserr.h util/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 = $(libclisrcdir)/nbt/nbtname.o
44
45 $(eval $(call proto_header_template,$(libclisrcdir)/nbt/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 $(libclisrcdir)/nbt/, \
52         nbtsocket.o \
53         namequery.o \
54         nameregister.o \
55         namerefresh.o \
56         namerelease.o)
57
58 $(eval $(call proto_header_template,$(libclisrcdir)/nbt/nbt_proto.h,$(LIBCLI_NBT_OBJ_FILES:.o=.c)))
59
60 [SUBSYSTEM::LIBCLI_NDR_NETLOGON]
61 PUBLIC_DEPENDENCIES = LIBNDR  \
62         NDR_SECURITY    
63
64 LIBCLI_NDR_NETLOGON_OBJ_FILES = $(addprefix libcli/, \
65         ndr_netlogon.o)
66
67 $(eval $(call proto_header_template,$(libclisrcdir)/ndr_netlogon_proto.h,$(LIBCLI_NDR_NETLOGON_OBJ_FILES:.o=.c)))
68
69 [SUBSYSTEM::LIBCLI_NETLOGON]
70 PUBLIC_DEPENDENCIES = LIBSAMBA-UTIL LIBCLI_NDR_NETLOGON
71
72 LIBCLI_NETLOGON_OBJ_FILES = $(addprefix libcli/, \
73         netlogon.o)
74
75 $(eval $(call proto_header_template,$(libclisrcdir)/netlogon_proto.h,$(LIBCLI_NETLOGON_OBJ_FILES:.o=.c)))
76
77 [PYTHON::python_libcli_nbt]
78 LIBRARY_REALNAME = samba/_libcli_nbt.$(SHLIBEXT)
79 PUBLIC_DEPENDENCIES = LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG
80
81 python_libcli_nbt_OBJ_FILES = $(libclisrcdir)/swig/libcli_nbt_wrap.o
82
83 $(eval $(call python_py_module_template,samba/nbt.py,$(libclisrcdir)/swig/libcli_nbt.py))
84
85 $(python_libcli_nbt_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
86
87 [PYTHON::python_libcli_smb]
88 LIBRARY_REALNAME = samba/_libcli_smb.$(SHLIBEXT)
89 PUBLIC_DEPENDENCIES = LIBCLI_SMB DYNCONFIG LIBSAMBA-HOSTCONFIG
90
91 python_libcli_smb_OBJ_FILES = $(libclisrcdir)/swig/libcli_smb_wrap.o
92
93 $(eval $(call python_py_module_template,samba/smb.py,$(libclisrcdir)/swig/libcli_smb.py))
94
95 $(python_libcli_smb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
96
97
98 [SUBSYSTEM::LIBCLI_DGRAM]
99 PUBLIC_DEPENDENCIES = LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON
100
101 LIBCLI_DGRAM_OBJ_FILES = $(addprefix $(libclisrcdir)/dgram/, \
102         dgramsocket.o \
103         mailslot.o \
104         netlogon.o \
105         browse.o)
106
107 [SUBSYSTEM::LIBCLI_CLDAP]
108 PUBLIC_DEPENDENCIES = LIBCLI_LDAP
109 PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL LIBLDB LIBCLI_NETLOGON
110
111 LIBCLI_CLDAP_OBJ_FILES = $(libclisrcdir)/cldap/cldap.o
112 # PUBLIC_HEADERS += $(libclisrcdir)/cldap/cldap.h
113
114 [SUBSYSTEM::LIBCLI_WREPL]
115 PUBLIC_DEPENDENCIES = NDR_WINSREPL samba-socket LIBCLI_RESOLVE LIBEVENTS \
116                                           LIBPACKET LIBNDR
117
118 LIBCLI_WREPL_OBJ_FILES = $(libclisrcdir)/wrepl/winsrepl.o
119
120 $(eval $(call proto_header_template,$(libclisrcdir)/wrepl/winsrepl_proto.h,$(LIBCLI_WREPL_OBJ_FILES:.o=.c)))
121
122 [SUBSYSTEM::LIBCLI_RESOLVE]
123 PUBLIC_DEPENDENCIES = NDR_NBT
124
125 LIBCLI_RESOLVE_OBJ_FILES = $(libclisrcdir)/resolve/resolve.o
126
127 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/proto.h,$(LIBCLI_RESOLVE_OBJ_FILES:.o=.c)))
128
129 [SUBSYSTEM::LP_RESOLVE]
130 PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF 
131
132 LP_RESOLVE_OBJ_FILES = $(addprefix $(libclisrcdir)/resolve/, \
133                                           bcast.o nbtlist.o wins.o \
134                                           host.o resolve_lp.o)
135
136 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES:.o=.c)))
137
138 [SUBSYSTEM::LIBCLI_FINDDCS]
139 PUBLIC_DEPENDENCIES = LIBCLI_NBT MESSAGING
140
141 LIBCLI_FINDDCS_OBJ_FILES = $(libclisrcdir)/finddcs.o
142
143 $(eval $(call proto_header_template,$(libclisrcdir)/finddcs.h,$(LIBCLI_FINDDCS_OBJ_FILES:.o=.c)))
144
145 [SUBSYSTEM::LIBCLI_SMB]
146 PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
147         LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIBSECURITY LIBCLI_RESOLVE \
148         LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba-socket
149
150 LIBCLI_SMB_OBJ_FILES = $(addprefix $(libclisrcdir)/, \
151                 clireadwrite.o \
152                 cliconnect.o \
153                 clifile.o \
154                 clilist.o \
155                 clitrans2.o \
156                 climessage.o \
157                 clideltree.o)
158
159 $(eval $(call proto_header_template,$(libclisrcdir)/libcli_proto.h,$(LIBCLI_SMB_OBJ_FILES:.o=.c)))
160
161 # PUBLIC_HEADERS += $(libclisrcdir)/libcli.h
162
163 [SUBSYSTEM::LIBCLI_RAW]
164 PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
165 #LDFLAGS = $(LIBCLI_SMB_COMPOSITE_OUTPUT)
166 PUBLIC_DEPENDENCIES = samba-socket LIBPACKET gensec LIBCRYPTO CREDENTIALS 
167
168 LIBCLI_RAW_OBJ_FILES = $(addprefix $(libclisrcdir)/raw/, rawfile.o smb_signing.o clisocket.o \
169                                           clitransport.o clisession.o clitree.o clierror.o rawrequest.o \
170                                           rawreadwrite.o rawsearch.o rawsetfileinfo.o raweas.o rawtrans.o \
171                                           clioplock.o rawnegotiate.o rawfsinfo.o rawfileinfo.o rawnotify.o \
172                                           rawioctl.o rawacl.o rawdate.o rawlpq.o rawshadow.o)
173
174
175 $(eval $(call proto_header_template,$(libclisrcdir)/raw/raw_proto.h,$(LIBCLI_RAW_OBJ_FILES:.o=.c)))
176
177 mkinclude smb2/config.mk