1 # SPDX-License-Identifier: GPL-2.0 2 CFLAGS += -D_FILE_OFFSET_BITS=64 3 CFLAGS += $(KHDR_INCLUDES) 4 5 TEST_GEN_PROGS := memfd_test 6 TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh 7 TEST_GEN_FILES := fuse_test fuse_mnt 8 9 VAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null) 10 ifeq ($(VAR_CFLAGS),) 11 VAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse 12 endif 13 14 VAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null) 15 ifeq ($(VAR_LDLIBS),) 16 VAR_LDLIBS := -lfuse -pthread 17 endif 18 19 fuse_mnt.o: CFLAGS += $(VAR_CFLAGS) 20 21 include ../lib.mk 22 23 $(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS) 24 25 $(OUTPUT)/memfd_test: memfd_test.c common.c 26 $(OUTPUT)/fuse_test: fuse_test.c common.c 27 28 EXTRA_CLEAN = $(OUTPUT)/common.o
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.