projects/linux·blob master · refs

56 lines · 1.5 KiB

1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the ntfs3 filesystem support.
4#
5
6# Subset of W=1 warnings
7subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
8subdir-ccflags-y += -Wmissing-declarations
9subdir-ccflags-y += -Wmissing-format-attribute
10subdir-ccflags-y += -Wmissing-prototypes
11subdir-ccflags-y += -Wold-style-definition
12subdir-ccflags-y += -Wmissing-include-dirs
13condflags := \
14 $(call cc-option, -Wunused-but-set-variable) \
15 $(call cc-option, -Wunused-const-variable) \
16 $(call cc-option, -Wpacked-not-aligned) \
17 $(call cc-option, -Wstringop-truncation) \
18 $(call cc-option, -Wmaybe-uninitialized)
19subdir-ccflags-y += $(condflags)
20# The following turn off the warnings enabled by -Wextra
21subdir-ccflags-y += -Wno-missing-field-initializers
22subdir-ccflags-y += -Wno-sign-compare
23subdir-ccflags-y += -Wno-type-limits
24subdir-ccflags-y += -Wno-shift-negative-value
25
26# to check robot warnings
27ccflags-y += -Wint-to-pointer-cast \
28 $(call cc-option,-Wunused-but-set-variable,-Wunused-const-variable) \
29 $(call cc-option,-Wold-style-declaration,-Wout-of-line-declaration)
30
31obj-$(CONFIG_NTFS3_FS) += ntfs3.o
32
33ntfs3-y := attrib.o \
34 attrlist.o \
35 bitfunc.o \
36 bitmap.o \
37 dir.o \
38 fsntfs.o \
39 frecord.o \
40 file.o \
41 fslog.o \
42 inode.o \
43 index.o \
44 lznt.o \
45 namei.o \
46 record.o \
47 run.o \
48 super.o \
49 upcase.o \
50 xattr.o
51
52ntfs3-$(CONFIG_NTFS3_LZX_XPRESS) += $(addprefix lib/,\
53 decompress_common.o \
54 lzx_decompress.o \
55 xpress_decompress.o \
56 )