1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 287b2d440SDavid HerrmannCFLAGS += -D_FILE_OFFSET_BITS=64 3*a24ebb49SMathieu DesnoyersCFLAGS += $(KHDR_INCLUDES) 44f5ce5e8SDavid Herrmann 5ffa773e1SShuah KhanTEST_GEN_PROGS := memfd_test 68eecdd4dSShuah Khan (Samsung OSG)TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh 7ffa773e1SShuah KhanTEST_GEN_FILES := fuse_test fuse_mnt 855f4d731SBen Hutchings 993a4388bSShuah KhanVAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null) 1093a4388bSShuah Khanifeq ($(VAR_CFLAGS),) 1193a4388bSShuah KhanVAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse 1293a4388bSShuah Khanendif 1393a4388bSShuah Khan 1493a4388bSShuah KhanVAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null) 1593a4388bSShuah Khanifeq ($(VAR_LDLIBS),) 1693a4388bSShuah KhanVAR_LDLIBS := -lfuse -pthread 1793a4388bSShuah Khanendif 1893a4388bSShuah Khan 1993a4388bSShuah Khanfuse_mnt.o: CFLAGS += $(VAR_CFLAGS) 2087b2d440SDavid Herrmann 2188baa78dSbamvor.zhangjian@huawei.cominclude ../lib.mk 2287b2d440SDavid Herrmann 2393a4388bSShuah Khan$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS) 2429f34d1dSMarc-André Lureau 25d3fd949aSShuah Khan$(OUTPUT)/memfd_test: memfd_test.c common.c 26d3fd949aSShuah Khan$(OUTPUT)/fuse_test: fuse_test.c common.c 2729f34d1dSMarc-André Lureau 28d3fd949aSShuah KhanEXTRA_CLEAN = $(OUTPUT)/common.o 29