5b50bdfcbec2a8b793a5b652305bf6f714de25eb
[kai/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 ../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 [SUBSYSTEM::LIBCLI_DGRAM]
91 PUBLIC_DEPENDENCIES = LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON
92
93 LIBCLI_DGRAM_OBJ_FILES = $(addprefix $(libclisrcdir)/dgram/, \
94         dgramsocket.o \
95         mailslot.o \
96         netlogon.o \
97         browse.o)
98
99 [SUBSYSTEM::LIBCLI_WREPL]
100 PUBLIC_DEPENDENCIES = NDR_WINSREPL samba_socket LIBEVENTS LIBPACKET
101
102 LIBCLI_WREPL_OBJ_FILES = $(libclisrcdir)/wrepl/winsrepl.o
103
104 $(eval $(call proto_header_template,$(libclisrcdir)/wrepl/winsrepl_proto.h,$(LIBCLI_WREPL_OBJ_FILES:.o=.c)))
105
106 [SUBSYSTEM::LIBCLI_RESOLVE]
107 PUBLIC_DEPENDENCIES = NDR_NBT
108
109 LIBCLI_RESOLVE_OBJ_FILES = $(libclisrcdir)/resolve/resolve.o
110
111 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/proto.h,$(LIBCLI_RESOLVE_OBJ_FILES:.o=.c)))
112
113 [SUBSYSTEM::LP_RESOLVE]
114 PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF 
115
116 LP_RESOLVE_OBJ_FILES = $(addprefix $(libclisrcdir)/resolve/, \
117                                           bcast.o nbtlist.o wins.o \
118                                           dns_ex.o \
119                                           host.o resolve_lp.o)
120
121 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES:.o=.c)))
122
123 [SUBSYSTEM::LIBCLI_FINDDCS]
124 PUBLIC_DEPENDENCIES = LIBCLI_NBT MESSAGING
125
126 LIBCLI_FINDDCS_OBJ_FILES = $(libclisrcdir)/finddcs.o
127
128 $(eval $(call proto_header_template,$(libclisrcdir)/finddcs.h,$(LIBCLI_FINDDCS_OBJ_FILES:.o=.c)))
129
130 [SUBSYSTEM::LIBCLI_SMB]
131 PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
132         LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIBSECURITY LIBCLI_RESOLVE \
133         LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba_socket
134
135 LIBCLI_SMB_OBJ_FILES = $(addprefix $(libclisrcdir)/, \
136                 clireadwrite.o \
137                 cliconnect.o \
138                 clifile.o \
139                 clilist.o \
140                 clitrans2.o \
141                 climessage.o \
142                 clideltree.o)
143
144 $(eval $(call proto_header_template,$(libclisrcdir)/libcli_proto.h,$(LIBCLI_SMB_OBJ_FILES:.o=.c)))
145
146 # PUBLIC_HEADERS += $(libclisrcdir)/libcli.h
147
148 [SUBSYSTEM::LIBCLI_RAW]
149 PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
150 #LDFLAGS = $(LIBCLI_SMB_COMPOSITE_OUTPUT)
151 PUBLIC_DEPENDENCIES = samba_socket LIBPACKET gensec LIBCRYPTO CREDENTIALS 
152
153 LIBCLI_RAW_OBJ_FILES = $(addprefix $(libclisrcdir)/raw/, rawfile.o smb_signing.o clisocket.o \
154                                           clitransport.o clisession.o clitree.o clierror.o rawrequest.o \
155                                           rawreadwrite.o rawsearch.o rawsetfileinfo.o raweas.o rawtrans.o \
156                                           clioplock.o rawnegotiate.o rawfsinfo.o rawfileinfo.o rawnotify.o \
157                                           rawioctl.o rawacl.o rawdate.o rawlpq.o rawshadow.o)
158
159
160 $(eval $(call proto_header_template,$(libclisrcdir)/raw/raw_proto.h,$(LIBCLI_RAW_OBJ_FILES:.o=.c)))
161
162 mkinclude smb2/config.mk