Make the logic a lot clearer and fix the comment to match.
[Samba/fernandojvsilva.git] / source4 / libcli / config.mk
blob340cd2ae41822fa404681402ce396e8d50080215
1 mkinclude ldap/config.mk
2 mkinclude security/config.mk
3 mkinclude wbclient/config.mk
5 [SUBSYSTEM::LIBSAMBA-ERRORS]
7 LIBSAMBA-ERRORS_OBJ_FILES = $(addprefix ../libcli/util/, doserr.o ) $(libclisrcdir)/util/errormap.o $(libclisrcdir)/util/nterr.o
9 PUBLIC_HEADERS += $(addprefix ../libcli/util/, error.h ntstatus.h doserr.h werror.h)
11 [SUBSYSTEM::LIBCLI_LSA]
12 PUBLIC_DEPENDENCIES = RPC_NDR_LSA
13 PRIVATE_DEPENDENCIES = LIBSECURITY
15 LIBCLI_LSA_OBJ_FILES = $(libclisrcdir)/util/clilsa.o
17 $(eval $(call proto_header_template,$(libclisrcdir)/util/clilsa.h,$(LIBCLI_LSA_OBJ_FILES:.o=.c)))
19 [SUBSYSTEM::LIBCLI_COMPOSITE]
20 PUBLIC_DEPENDENCIES = LIBEVENTS
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)))
25 [SUBSYSTEM::LIBCLI_SMB_COMPOSITE]
26 PUBLIC_DEPENDENCIES = LIBCLI_COMPOSITE CREDENTIALS gensec LIBCLI_RESOLVE
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)
38 $(eval $(call proto_header_template,$(libclisrcdir)/smb_composite/proto.h,$(LIBCLI_SMB_COMPOSITE_OBJ_FILES:.o=.c)))
40 [PYTHON::python_netbios]
41 LIBRARY_REALNAME = samba/netbios.$(SHLIBEXT)
42 PUBLIC_DEPENDENCIES = LIBCLI_NBT DYNCONFIG LIBSAMBA-HOSTCONFIG
44 python_netbios_OBJ_FILES = $(libclinbtsrcdir)/pynbt.o
46 [SUBSYSTEM::LIBCLI_DGRAM]
47 PUBLIC_DEPENDENCIES = LIBCLI_NBT LIBNDR LIBCLI_RESOLVE LIBCLI_NETLOGON
49 LIBCLI_DGRAM_OBJ_FILES = $(addprefix $(libclisrcdir)/dgram/, \
50 dgramsocket.o \
51 mailslot.o \
52 netlogon.o \
53 browse.o)
55 [SUBSYSTEM::LIBCLI_WREPL]
56 PUBLIC_DEPENDENCIES = NDR_WINSREPL samba_socket LIBEVENTS LIBPACKET
58 LIBCLI_WREPL_OBJ_FILES = $(libclisrcdir)/wrepl/winsrepl.o
60 $(eval $(call proto_header_template,$(libclisrcdir)/wrepl/winsrepl_proto.h,$(LIBCLI_WREPL_OBJ_FILES:.o=.c)))
62 [SUBSYSTEM::LIBCLI_RESOLVE]
63 PUBLIC_DEPENDENCIES = NDR_NBT
65 LIBCLI_RESOLVE_OBJ_FILES = $(libclisrcdir)/resolve/resolve.o
67 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/proto.h,$(LIBCLI_RESOLVE_OBJ_FILES:.o=.c)))
69 [SUBSYSTEM::LP_RESOLVE]
70 PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF
72 LP_RESOLVE_OBJ_FILES = $(addprefix $(libclisrcdir)/resolve/, \
73 bcast.o nbtlist.o wins.o \
74 dns_ex.o \
75 host.o resolve_lp.o)
77 $(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES:.o=.c)))
79 [SUBSYSTEM::LIBCLI_FINDDCS]
80 PUBLIC_DEPENDENCIES = LIBCLI_NBT MESSAGING
82 LIBCLI_FINDDCS_OBJ_FILES = $(libclisrcdir)/finddcs.o
84 $(eval $(call proto_header_template,$(libclisrcdir)/finddcs.h,$(LIBCLI_FINDDCS_OBJ_FILES:.o=.c)))
86 [SUBSYSTEM::LIBCLI_SMB]
87 PUBLIC_DEPENDENCIES = LIBCLI_RAW LIBSAMBA-ERRORS LIBCLI_AUTH \
88 LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIBSECURITY LIBCLI_RESOLVE \
89 LIBCLI_DGRAM LIBCLI_SMB2 LIBCLI_FINDDCS samba_socket
91 LIBCLI_SMB_OBJ_FILES = $(addprefix $(libclisrcdir)/, \
92 clireadwrite.o \
93 cliconnect.o \
94 clifile.o \
95 clilist.o \
96 clitrans2.o \
97 climessage.o \
98 clideltree.o)
100 $(eval $(call proto_header_template,$(libclisrcdir)/libcli_proto.h,$(LIBCLI_SMB_OBJ_FILES:.o=.c)))
102 # PUBLIC_HEADERS += $(libclisrcdir)/libcli.h
104 [SUBSYSTEM::LIBCLI_RAW]
105 PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE LP_RESOLVE gensec LIBCLI_RESOLVE LIBSECURITY LIBNDR
106 #LDFLAGS = $(LIBCLI_SMB_COMPOSITE_OUTPUT)
107 PUBLIC_DEPENDENCIES = samba_socket LIBPACKET gensec LIBCRYPTO CREDENTIALS LIBCLI_SMB_COMMON
109 LIBCLI_RAW_OBJ_FILES = $(addprefix $(libclisrcdir)/raw/, rawfile.o smb_signing.o clisocket.o \
110 clitransport.o clisession.o clitree.o clierror.o rawrequest.o \
111 rawreadwrite.o rawsearch.o rawsetfileinfo.o raweas.o rawtrans.o \
112 clioplock.o rawnegotiate.o rawfsinfo.o rawfileinfo.o rawnotify.o \
113 rawioctl.o rawacl.o rawdate.o rawlpq.o rawshadow.o)
116 $(eval $(call proto_header_template,$(libclisrcdir)/raw/raw_proto.h,$(LIBCLI_RAW_OBJ_FILES:.o=.c)))
118 mkinclude smb2/config.mk