Debian Codegraph @

fs/smb/client/Makefile

raw
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Makefile for Linux CIFS/SMB2/SMB3 VFS client
4 #
5 ccflags-y += -I$(src) # needed for trace events
6 obj-$(CONFIG_CIFS) += cifs.o
7
8 cifs-y := trace.o cifsfs.o cifs_debug.o connect.o dir.o file.o \
9 inode.o link.o misc.o netmisc.o smbencrypt.o transport.o \
10 cached_dir.o cifs_unicode.o nterr.o cifsencrypt.o \
11 readdir.o ioctl.o sess.o export.o unc.o winucase.o \
12 smb2ops.o smb2maperror.o smb2transport.o \
13 smb2misc.o smb2pdu.o smb2inode.o smb2file.o cifsacl.o fs_context.o \
14 dns_resolve.o cifs_spnego_negtokeninit.asn1.o asn1.o \
15 namespace.o reparse.o
16
17 $(obj)/asn1.o: $(obj)/cifs_spnego_negtokeninit.asn1.h
18
19 $(obj)/cifs_spnego_negtokeninit.asn1.o: $(obj)/cifs_spnego_negtokeninit.asn1.c $(obj)/cifs_spnego_negtokeninit.asn1.h
20
21 cifs-$(CONFIG_CIFS_XATTR) += xattr.o
22
23 cifs-$(CONFIG_CIFS_UPCALL) += cifs_spnego.o
24
25 cifs-$(CONFIG_CIFS_DFS_UPCALL) += dfs_cache.o dfs.o
26
27 cifs-$(CONFIG_CIFS_SWN_UPCALL) += netlink.o cifs_swn.o
28
29 cifs-$(CONFIG_CIFS_FSCACHE) += fscache.o
30
31 cifs-$(CONFIG_CIFS_SMB_DIRECT) += smbdirect.o
32
33 cifs-$(CONFIG_CIFS_ROOT) += cifsroot.o
34
35 cifs-$(CONFIG_CIFS_ALLOW_INSECURE_LEGACY) += \
36 cifssmb.o \
37 smb1debug.o \
38 smb1encrypt.o \
39 smb1maperror.o \
40 smb1misc.o \
41 smb1ops.o \
42 smb1session.o \
43 smb1transport.o
44
45 cifs-$(CONFIG_CIFS_COMPRESSION) += compress.o compress/lz77.o
46
47 #
48 # Build the SMB2 error mapping table from smb2status.h
49 #
50 $(obj)/smb2_mapping_table.c: $(src)/../common/smb2status.h \
51 $(src)/gen_smb2_mapping FORCE
52 $(call if_changed,gen_smb2_mapping)
53
54 $(obj)/smb2maperror.o: $(obj)/smb2_mapping_table.c
55
56 quiet_cmd_gen_smb2_mapping = GEN $@
57 cmd_gen_smb2_mapping = perl $(src)/gen_smb2_mapping $< $@
58
59 obj-$(CONFIG_SMB_KUNIT_TESTS) += smb2maperror_test.o
60
61 # Let Kbuild handle tracking and cleaning
62 targets += smb2_mapping_table.c