18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciCFLAGS += -D_FILE_OFFSET_BITS=64 38c2ecf20Sopenharmony_ciCFLAGS += -I../../../../include/uapi/ 48c2ecf20Sopenharmony_ciCFLAGS += -I../../../../include/ 58c2ecf20Sopenharmony_ciCFLAGS += -I../../../../usr/include/ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciTEST_GEN_PROGS := memfd_test 88c2ecf20Sopenharmony_ciTEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh 98c2ecf20Sopenharmony_ciTEST_GEN_FILES := fuse_test fuse_mnt 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciVAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null) 128c2ecf20Sopenharmony_ciifeq ($(VAR_CFLAGS),) 138c2ecf20Sopenharmony_ciVAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse 148c2ecf20Sopenharmony_ciendif 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciVAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null) 178c2ecf20Sopenharmony_ciifeq ($(VAR_LDLIBS),) 188c2ecf20Sopenharmony_ciVAR_LDLIBS := -lfuse -pthread 198c2ecf20Sopenharmony_ciendif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cifuse_mnt.o: CFLAGS += $(VAR_CFLAGS) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciinclude ../lib.mk 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS) 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci$(OUTPUT)/memfd_test: memfd_test.c common.c 288c2ecf20Sopenharmony_ci$(OUTPUT)/fuse_test: fuse_test.c common.c 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciEXTRA_CLEAN = $(OUTPUT)/common.o 31