• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0
2CFLAGS += -D_FILE_OFFSET_BITS=64
3CFLAGS += -I../../../../include/uapi/
4CFLAGS += -I../../../../include/
5CFLAGS += -I../../../../usr/include/
6
7TEST_GEN_PROGS := memfd_test
8TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh
9TEST_GEN_FILES := fuse_test fuse_mnt
10
11VAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null)
12ifeq ($(VAR_CFLAGS),)
13VAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse
14endif
15
16VAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null)
17ifeq ($(VAR_LDLIBS),)
18VAR_LDLIBS := -lfuse -pthread
19endif
20
21fuse_mnt.o: CFLAGS += $(VAR_CFLAGS)
22
23include ../lib.mk
24
25$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS)
26
27$(OUTPUT)/memfd_test: memfd_test.c common.c
28$(OUTPUT)/fuse_test: fuse_test.c common.c
29
30EXTRA_CLEAN = $(OUTPUT)/common.o
31